第4章分類のための線形ニューラルネットワーク
4.5.5. Exercises4.5.5 練習問題
- Deep learning uses many different number formats, including FP64 double precision (used extremely rarely), FP32 single precision, BFLOAT16 (good for compressed representations), FP16 (very unstable), TF32 (a new format from NVIDIA), and INT8. Compute the smallest and largest argument of the exponential function for which the result does not lead to numerical underflow or overflow.
英語のヒント
深層学習では、多くの異なる数値形式が使われる。FP64倍精度(ごくまれにしか使われない)、FP32単精度、BFLOAT16(圧縮した表現に向く)、FP16(非常に不安定)、TF32(NVIDIAの新しい形式)、INT8などである。結果が数値のアンダーフローやオーバーフローにつながらない、指数関数の引数の最小値と最大値を計算せよ。 - INT8 is a very limited format consisting of nonzero numbers from to . How could you extend its dynamic range without using more bits? Do standard multiplication and addition still work?
英語のヒント
INT8は、からまでの0でない数からなる、とても限られた形式である。ビットを増やさずに、そのダイナミックレンジを広げるにはどうすればよいか。標準的な掛け算と足し算はそれでも成り立つか。 - Increase the number of epochs for training. Why might the validation accuracy decrease after a while? How could we fix this?
英語のヒント
訓練のエポック数を増やせ。しばらくすると検証の正解率が下がることがあるのはなぜか。これはどうすれば直せるか。 - What happens as you increase the learning rate? Compare the loss curves for several learning rates. Which one works better? When?
英語のヒント
学習率を上げていくと何が起きるか。いくつかの学習率について損失の曲線を比べよ。どれがうまく働くか。それはどんなときか。