第8章現代の畳み込みニューラルネットワーク
8.1.5. Exercises8.1.5 練習問題
- Following up on the discussion above, analyze the computational properties of AlexNet.
英語のヒント
上の議論に続けて、AlexNetの計算上の性質を分析せよ。- Compute the memory footprint for convolutions and fully connected layers, respectively. Which one dominates?
英語のヒント
畳み込みと全結合層の使用メモリ量をそれぞれ計算せよ。どちらが大部分を占めるか。 - Calculate the computational cost for the convolutions and the fully connected layers.
英語のヒント
畳み込みと全結合層の計算の費用を計算せよ。 - How does the memory (read and write bandwidth, latency, size) affect computation? Is there any difference in its effects for training and inference?
英語のヒント
メモリ(読み書きの帯域幅、遅延、大きさ)は計算にどう影響するか。その影響に、訓練と推論で違いはあるか。
- You are a chip designer and need to trade off computation and memory bandwidth. For example, a faster chip requires more power and possibly a larger chip area. More memory bandwidth requires more pins and control logic, thus also more area. How do you optimize?
英語のヒント
あなたはチップの設計者で、計算とメモリの帯域幅の釣り合いをとる必要がある。たとえば、もっと速いチップには、もっと多くの電力と、ことによるともっと大きなチップの面積が必要になる。もっと大きなメモリ帯域幅には、もっと多くのピンと制御の論理回路が必要で、したがってやはり面積も必要になる。どう最適化するか。 - Why do engineers no longer report performance benchmarks on AlexNet?
英語のヒント
技術者がもはやAlexNetで性能のベンチマークを報告しないのはなぜか。 - Try increasing the number of epochs when training AlexNet. Compared with LeNet, how do the results differ? Why?
英語のヒント
AlexNetを訓練するときにエポック数を増やしてみよ。LeNetと比べて、結果はどう違うか。それはなぜか。 - AlexNet may be too complex for the Fashion-MNIST dataset, in particular due to the low resolution of the initial images.
英語のヒント
AlexNetは、特に元の画像の解像度が低いために、Fashion-MNISTデータセットには複雑すぎるかもしれない。- Try simplifying the model to make the training faster, while ensuring that the accuracy does not drop significantly.
英語のヒント
正解率が大きく下がらないようにしながら、モデルを単純にして訓練を速くしてみよ。 - Design a better model that works directly on images.
英語のヒント
の画像で直接うまく働く、よりよいモデルを設計せよ。
- Modify the batch size, and observe the changes in throughput (images/s), accuracy, and GPU memory.
英語のヒント
バッチサイズを変えて、スループット(画像/秒)、正解率、GPUのメモリの変化を観察せよ。 - Apply dropout and ReLU to LeNet-5. Does it improve? Can you improve things further by preprocessing to take advantage of the invariances inherent in the images?
英語のヒント
LeNet-5にドロップアウトとReLUを当てはめよ。改善するか。画像に本来備わる不変性を活用する前処理によって、さらに改善できるか。 - Can you make AlexNet overfit? Which feature do you need to remove or change to break training?
英語のヒント
AlexNetを過学習させられるか。訓練を壊すには、どの機能を取り除くか変える必要があるか。