プリンキピア

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

12.11. Learning Rate Scheduling12.11 学習率のスケジューリング

So far we primarily focused on optimization algorithms for how to update the weight vectors rather than on the rate at which they are being updated. Nonetheless, adjusting the learning rate is often just as important as the actual algorithm. There are a number of aspects to consider:
英語のヒント
ここまでは主に、重みベクトルをどう更新するかについての最適化アルゴリズムに焦点を当て、それらが更新される速さには焦点を当ててこなかった。それでも、学習率の調整は、実際のアルゴリズムと同じくらい重要であることが多い。考えるべき面がいくつかある。
  • Most obviously the magnitude of the learning rate matters. If it is too large, optimization diverges, if it is too small, it takes too long to train or we end up with a suboptimal result. We saw previously that the condition number of the problem matters (see e.g., Section 12.6 for details). Intuitively it is the ratio of the amount of change in the least sensitive direction vs. the most sensitive one.
    英語のヒント
    最も明らかなのは、学習率の大きさが重要であることである。大きすぎると最適化は発散し、小さすぎると訓練に時間がかかりすぎるか、最適でない結果に終わる。前に、問題の条件数が重要であることを見た(詳しくは、たとえば12.6節を参照)。直観的には、それは、最も鈍感な向きでの変化の量と最も敏感な向きでの変化の量との比である。
  • Secondly, the rate of decay is just as important. If the learning rate remains large we may simply end up bouncing around the minimum and thus not reach optimality. Section 12.5 discussed this in some detail and we analyzed performance guarantees in Section 12.4. In short, we want the rate to decay, but probably more slowly than 𝒪(t−12) which would be a good choice for convex problems.
    英語のヒント
    第二に、減衰の速さも同じくらい重要である。学習率が大きいままだと、最小値のまわりで跳ね回るだけで、最適に到達しないかもしれない。12.5節ではこれをいくらか詳しく論じ、12.4節では性能の保証を解析した。手短に言えば、学習率を減衰させたいが、おそらく、凸の問題にはよい選択になる𝒪(t−12)よりもゆっくりと減衰させたい。
  • Another aspect that is equally important is initialization. This pertains both to how the parameters are set initially (review Section 5.4 for details) and also how they evolve initially. This goes under the moniker of warmup, i.e., how rapidly we start moving towards the solution initially. Large steps in the beginning might not be beneficial, in particular since the initial set of parameters is random. The initial update directions might be quite meaningless, too.
    英語のヒント
    同じくらい重要なもう一つの面は初期化である。これは、パラメータを最初にどう設定するか(詳しくは5.4節を見直してほしい)と、それらが最初にどう変化していくかの両方にかかわる。これはウォームアップという名で呼ばれ、最初に解に向かってどれくらい速く動き始めるかということである。特に、パラメータの最初の組はランダムなので、最初に大きなステップをとるのは役に立たないかもしれない。最初の更新の向きも、まったく意味がないかもしれない。
  • Lastly, there are a number of optimization variants that perform cyclical learning rate adjustment. This is beyond the scope of the current chapter. We recommend the reader to review details in Izmailov et al. (2018), e.g., how to obtain better solutions by averaging over an entire path of parameters.
    英語のヒント
    最後に、学習率を周期的に調整する最適化の変種がいくつもある。これはこの章の範囲を超える。たとえばパラメータの経路全体で平均してよりよい解を得る方法など、詳しくはIzmailov et al. (2018)を見直すことを読者に勧める。
Given the fact that there is a lot of detail needed to manage learning rates, most deep learning frameworks have tools to deal with this automatically. In the current chapter we will review the effects that different schedules have on accuracy and also show how this can be managed efficiently via a learning rate scheduler.
英語のヒント
学習率を管理するには多くの細かいことが必要なので、ほとんどの深層学習のフレームワークには、これを自動的に扱う道具がある。この章では、さまざまなスケジュールが正解率に与える効果を振り返り、学習率スケジューラでこれをどう効率よく管理できるかも示す。