プリンキピア

第5章多層パーセプトロン

5.3.6. Exercises5.3.6 練習問題

  1. Assume that the inputs 𝐗 to some scalar function f are n×m matrices. What is the dimensionality of the gradient of f with respect to 𝐗?
    英語のヒント
    あるスカラー関数fへの入力𝐗がn×mの行列だとする。𝐗についてのfの勾配の次元はいくつか。
  2. Add a bias to the hidden layer of the model described in this section (you do not need to include bias in the regularization term).
    英語のヒント
    この節で説明したモデルの隠れ層にバイアスを加えよ(正則化項にバイアスを含める必要はない)。
    1. Draw the corresponding computational graph.
      英語のヒント
      対応する計算グラフを描け。
    2. Derive the forward and backward propagation equations.
      英語のヒント
      順伝播と逆伝播の式を導出せよ。
  3. Compute the memory footprint for training and prediction in the model described in this section.
    英語のヒント
    この節で説明したモデルについて、訓練と予測に必要なメモリ量を計算せよ。
  4. Assume that you want to compute second derivatives. What happens to the computational graph? How long do you expect the calculation to take?
    英語のヒント
    2階導関数を計算したいとする。計算グラフはどうなるか。計算にはどれくらい時間がかかると予想されるか。
  5. Assume that the computational graph is too large for your GPU.
    英語のヒント
    計算グラフがGPUにとって大きすぎるとする。
    1. Can you partition it over more than one GPU?
      英語のヒント
      それを複数のGPUに分割できるか。
    2. What are the advantages and disadvantages over training on a smaller minibatch?
      英語のヒント
      より小さいミニバッチで訓練するのと比べて、利点と欠点は何か。