第2章準備
2.4.5. Discussion2.4.5 考察
While we have just scratched the surface of a deep topic, a number of concepts already come into focus: first, the composition rules for differentiation can be applied routinely, enabling us to compute gradients automatically. This task requires no creativity and thus we can focus our cognitive powers elsewhere. Second, computing the derivatives of vector-valued functions requires us to multiply matrices as we trace the dependency graph of variables from output to input. In particular, this graph is traversed in a forward direction when we evaluate a function and in a backwards direction when we compute gradients. Later chapters will formally introduce backpropagation, a computational procedure for applying the chain rule.
英語のヒント
深い話題の表面をなでただけだが、すでにいくつかの概念がはっきりしてきた。第一に、微分の合成の規則は機械的に当てはめられるので、勾配を自動で計算できる。この作業に創造性は要らないので、認知の力をほかに向けられる。第二に、ベクトル値の関数の導関数を計算するには、変数の依存グラフを出力から入力へとたどりながら、行列を掛ける必要がある。特に、関数を評価するときにはこのグラフを順方向にたどり、勾配を計算するときには逆方向にたどる。後の章では、連鎖律を当てはめる計算手続きである誤差逆伝播法を正式に紹介する。
From the viewpoint of optimization, gradients allow us to determine how to move the parameters of a model in order to lower the loss, and each step of the optimization algorithms used throughout this book will require calculating the gradient.
英語のヒント
最適化の観点からは、勾配によって、損失を下げるにはモデルのパラメータをどう動かせばよいかを決められる。そして、この本を通じて使う最適化アルゴリズムの各ステップでは、勾配の計算が必要になる。