第5章多層パーセプトロン
5.3. Forward Propagation, Backward Propagation, and Computational Graphs5.3 順伝播、逆伝播、計算グラフ
So far, we have trained our models with minibatch stochastic gradient descent. However, when we implemented the algorithm, we only worried about the calculations involved in forward propagation through the model. When it came time to calculate the gradients, we just invoked the backpropagation function provided by the deep learning framework.
英語のヒント
ここまで、ミニバッチ確率的勾配降下法でモデルを訓練してきた。しかし、アルゴリズムを実装したときには、モデルを通る順伝播に伴う計算のことしか気にしなかった。勾配を計算する段になると、深層学習のフレームワークが提供する逆伝播の関数を呼び出しただけだった。
The automatic calculation of gradients profoundly simplifies the implementation of deep learning algorithms. Before automatic differentiation, even small changes to complicated models required recalculating complicated derivatives by hand. Surprisingly often, academic papers had to allocate numerous pages to deriving update rules. While we must continue to rely on automatic differentiation so we can focus on the interesting parts, you ought to know how these gradients are calculated under the hood if you want to go beyond a shallow understanding of deep learning.
英語のヒント
勾配の自動計算は、深層学習のアルゴリズムの実装を大幅に簡単にする。自動微分が登場する前は、複雑なモデルにちょっとした変更を加えるだけでも、複雑な導関数を手で計算し直す必要があった。学術論文が、更新規則の導出に何ページも割かなければならないことが、驚くほど多かった。おもしろい部分に集中できるよう、これからも自動微分に頼り続けなければならないが、深層学習についての浅い理解を超えたいなら、こうした勾配が内部でどう計算されているかを知っておくべきである。
In this section, we take a deep dive into the details of backward propagation (more commonly called backpropagation). To convey some insight for both the techniques and their implementations, we rely on some basic mathematics and computational graphs. To start, we focus our exposition on a one-hidden-layer MLP with weight decay ( regularization, to be described in subsequent chapters).
英語のヒント
この節では、後ろ向きの伝播(ふつうは逆伝播と呼ばれる)の詳細に深く踏み込む。手法とその実装の両方について見通しを伝えるため、いくつかの基本的な数学と計算グラフに頼る。手始めに、重み減衰(正則化。以降の章で説明する)を伴う、隠れ層が一つのMLPに絞って説明する。