プリンキピア

第12章最適化アルゴリズム

12.9.1. The Algorithm12.9.1 アルゴリズム

In a nutshell, Adadelta uses two state variables, 𝐬t to store a leaky average of the second moment of the gradient and Δ𝐱t to store a leaky average of the second moment of the change of parameters in the model itself. Note that we use the original notation and naming of the authors for compatibility with other publications and implementations (there is no other real reason why one should use different Greek variables to indicate a parameter serving the same purpose in momentum, Adagrad, RMSProp, and Adadelta).
英語のヒント
手短に言えば、Adadeltaは二つの状態変数を使う。勾配の2次モーメントの漏れのある平均を格納する𝐬tと、モデル自体のパラメータの変化の2次モーメントの漏れのある平均を格納するΔ𝐱tである。ほかの文献や実装との互換性のため、著者の元の記法と名前を使うことに注意してほしい(モメンタム、Adagrad、RMSProp、Adadeltaで同じ目的を果たすパラメータを表すのに違うギリシャ文字の変数を使うべき本当の理由は、ほかにない)。
Here are the technical details of Adadelta. Given the parameter du jour is ρ, we obtain the following leaky updates similarly to Section 12.8:
英語のヒント
Adadeltaの技術的な詳細は次のとおりである。今回のパラメータをρとすると、12.8節と同じように、次の漏れのある更新が得られる。
𝐬t=ρ𝐬t−1+(1−ρ)𝐠t2.(12.9.1)
The difference to Section 12.8 is that we perform updates with the rescaled gradient 𝐠t′, i.e.,
英語のヒント
12.8節との違いは、再スケールした勾配𝐠t′で更新を行うことである。つまり次のとおりである。
𝐱t=𝐱t−1−𝐠t′.(12.9.2)
So what is the rescaled gradient 𝐠t′? We can calculate it as follows:
英語のヒント
では、再スケールした勾配𝐠t′とは何か。次のように計算できる。
𝐠t′=Δ𝐱t−1+ϵ𝐬t+ϵ⊙𝐠t,(12.9.3)
where Δ𝐱t−1 is the leaky average of the squared rescaled gradients 𝐠t′. We initialize Δ𝐱0 to be 0 and update it at each step with 𝐠t′, i.e.,
英語のヒント
ここでΔ𝐱t−1は、再スケールした勾配𝐠t′の2乗の漏れのある平均である。Δ𝐱0を0に初期化し、各ステップで𝐠t′を使って次のように更新する。
Δ𝐱t=ρΔ𝐱t−1+(1−ρ)𝐠t′2,(12.9.4)
and ϵ (a small value such as 10−5) is added to maintain numerical stability.
英語のヒント
また、数値的な安定性を保つため、ϵ(10−5のような小さな値)を加える。