第2章準備
2.4.4. Chain Rule2.4.4 連鎖律
In deep learning, the gradients of concern are often difficult to calculate because we are working with deeply nested functions (of functions (of functions…)). Fortunately, the chain rule takes care of this. Returning to functions of a single variable, suppose that and that the underlying functions and are both differentiable. The chain rule states that
英語のヒント
深層学習では、関心のある勾配を計算するのが難しいことが多い。深く入れ子になった関数(の関数(の関数……))を扱っているからである。幸い、連鎖律がこれを引き受けてくれる。一変数の関数に戻って、であり、その元になる関数とがどちらも微分可能だとしよう。連鎖律は次のことを述べる。
(2.4.9)
Turning back to multivariate functions, suppose that has variables , where each has variables , i.e., . Then the chain rule states that
英語のヒント
多変数関数に話を戻して、が変数をもち、各が変数をもつ、つまりだとしよう。このとき連鎖律は次のことを述べる。
(2.4.10)
where is a matrix that contains the derivative of vector with respect to vector . Thus, evaluating the gradient requires computing a vector–matrix product. This is one of the key reasons why linear algebra is such an integral building block in building deep learning systems.
英語のヒント
ここでは、ベクトルについてのベクトルの導関数を含む行列である。したがって、勾配を評価するには、ベクトルと行列の積を計算する必要がある。これが、深層学習のシステムを作るうえで線形代数がこれほど欠かせない構成要素である、鍵となる理由の一つである。