第12章最適化アルゴリズム
12.4.3. Convergence Analysis for Convex Objectives12.4.3 凸の目的関数に対する収束の解析
The following convergence analysis of stochastic gradient descent for convex objective functions is optional and primarily serves to convey more intuition about the problem. We limit ourselves to one of the simplest proofs (Nesterov and Vial, 2000). Significantly more advanced proof techniques exist, e.g., whenever the objective function is particularly well behaved.
英語のヒント
以下の、凸の目的関数に対する確率的勾配降下法の収束の解析は、読まなくてもよく、主に問題についての直観をもっと伝えるためのものである。ここでは最も単純な証明の一つに限る(Nesterov and Vial, 2000)。もっとずっと高度な証明の技法もある。たとえば、目的関数が特に行儀がよい場合である。
Suppose that the objective function is convex in for all . More concretely, we consider the stochastic gradient descent update:
英語のヒント
目的関数が、すべてのについてに関して凸であるとする。もっと具体的には、次の確率的勾配降下法の更新を考える。
(12.4.6)
where is the objective function with respect to the training example drawn from some distribution at step and is the model parameter. Denote by
英語のヒント
ここで、は、ステップである分布から引かれた訓練事例についての目的関数であり、はモデルのパラメータである。また、
(12.4.7)
the expected risk and by its minimum with regard to . Last let be the minimizer (we assume that it exists within the domain where is defined). In this case we can track the distance between the current parameter at time and the risk minimizer and see whether it improves over time:
英語のヒント
を期待リスクとし、についてのその最小値をで表す。最後に、を最小化点とする(それはが定義される定義域の中に存在すると仮定する)。この場合、時刻での現在のパラメータとリスクの最小化点との距離を追い、それが時間とともに改善するかどうかを見ることができる。
(12.4.8)
We assume that the norm of stochastic gradient is bounded by some constant , hence we have that
英語のヒント
確率的勾配のノルムは、ある定数で上から押さえられると仮定する。したがって、次が成り立つ。
(12.4.9)
We are mostly interested in how the distance between and changes in expectation. In fact, for any specific sequence of steps the distance might well increase, depending on whichever we encounter. Hence we need to bound the dot product. Since for any convex function it holds that for all and , by convexity we have
英語のヒント
主に関心があるのは、との距離が期待値としてどう変わるかである。実際、どのに出会うかによっては、特定のステップの列について距離が増えることも十分ありうる。したがって、内積を押さえる必要がある。どの凸関数についても、すべてのとについてが成り立つので、凸性により次が成り立つ。
(12.4.10)
Plugging both inequalities (12.4.9) and (12.4.10) into (12.4.8) we obtain a bound on the distance between parameters at time as follows:
英語のヒント
(12.4.11)
This means that we make progress as long as the difference between current loss and the optimal loss outweighs . Since this difference is bound to converge to zero it follows that the learning rate also needs to vanish.
英語のヒント
これは、現在の損失と最適な損失との差がを上回る限り、前進することを意味する。この差はゼロに収束するはずなので、学習率も消えていく必要があることがわかる。
(12.4.12)
The last step involves summing over the inequalities for . Since the sum telescopes and by dropping the lower term we obtain
英語のヒント
最後のステップでは、についての不等式を足し合わせる。和の途中の項は打ち消し合うので、低い方の項を落とすと、次が得られる。
(12.4.13)
Note that we exploited that is given and thus the expectation can be dropped. Last define
英語のヒント
が与えられているので期待値を落とせることを利用した点に注意してほしい。最後に、次のように定義する。
(12.4.14)
Since
英語のヒント
次が成り立つ。
(12.4.15)
by Jensen’s inequality (setting , in (12.2.3)) and convexity of it follows that , thus
英語のヒント
これと、イェンセンの不等式((12.2.3)で、とおく)およびの凸性から、が導かれる。したがって、次が成り立つ。
(12.4.16)
(12.4.17)
where is a bound on the distance between the initial choice of parameters and the final outcome. In short, the speed of convergence depends on how the norm of stochastic gradient is bounded () and how far away from optimality the initial parameter value is (). Note that the bound is in terms of rather than . This is the case since is a smoothed version of the optimization path. Whenever , and are known we can pick the learning rate . This yields as upper bound . That is, we converge with rate to the optimal solution.
英語のヒント
ここで、は、パラメータの最初の選択と最終的な結果とのあいだの距離の上界である。手短に言えば、収束の速さは、確率的勾配のノルムがどう押さえられるか()と、パラメータの初期値が最適からどれだけ離れているか()に依存する。界がではなくで表されていることに注意してほしい。は最適化の経路をなめらかにしたものだからである。、がわかっているときはいつでも、学習率をと選べる。これにより、上界としてが得られる。つまり、の速さで最適解に収束する。