プリンキピア

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

12.10. Adam12.10 Adam

In the discussions leading up to this section we encountered a number of techniques for efficient optimization. Let’s recap them in detail here:
英語のヒント
この節に至るまでの議論で、効率的な最適化のための技法にいくつも出会った。ここでそれらを詳しくおさらいしよう。
  • We saw that Section 12.4 is more effective than Gradient Descent when solving optimization problems, e.g., due to its inherent resilience to redundant data.
    英語のヒント
    最適化問題を解くとき、12.4節は、たとえば冗長なデータに対する本来の強さのために、勾配降下法より効果的であることを見た。
  • We saw that Section 12.5 affords significant additional efficiency arising from vectorization, using larger sets of observations in one minibatch. This is the key to efficient multi-machine, multi-GPU and overall parallel processing.
    英語のヒント
    12.5節は、一つのミニバッチでもっと大きな観測の集合を使うことによるベクトル化から生じる、大きな追加の効率をもたらすことを見た。これが、効率的な複数マシン、複数GPU、そして全体として並列な処理の鍵である。
  • Section 12.6 added a mechanism for aggregating a history of past gradients to accelerate convergence.
    英語のヒント
    12.6節は、収束を加速するため、過去の勾配の履歴を集める仕組みを加えた。
  • Section 12.7 used per-coordinate scaling to allow for a computationally efficient preconditioner.
    英語のヒント
    12.7節は、座標ごとのスケーリングを使って、計算の効率がよい前条件づけの行列を可能にした。
  • Section 12.8 decoupled per-coordinate scaling from a learning rate adjustment.
    英語のヒント
    12.8節は、座標ごとのスケーリングを学習率の調整から切り離した。
Adam (Kingma and Ba, 2014) combines all these techniques into one efficient learning algorithm. As expected, this is an algorithm that has become rather popular as one of the more robust and effective optimization algorithms to use in deep learning. It is not without issues, though. In particular, (Reddi et al., 2019) show that there are situations where Adam can diverge due to poor variance control. In a follow-up work Zaheer et al. (2018) proposed a hotfix to Adam, called Yogi which addresses these issues. More on this later. For now let’s review the Adam algorithm.
英語のヒント
Adam(Kingma and Ba, 2014)は、これらの技法をすべて一つの効率的な学習アルゴリズムにまとめる。予想されるとおり、これは、深層学習で使う、より頑健で効果的な最適化アルゴリズムの一つとして、かなり人気になったアルゴリズムである。とはいえ、問題がないわけではない。特に、(Reddi et al., 2019)は、分散の制御がまずいためにAdamが発散しうる状況があることを示している。続く研究で、Zaheer et al. (2018)は、これらの問題に対処する、Yogiと呼ばれるAdamの応急の修正を提案した。これについては後で詳しく述べる。いまは、Adamのアルゴリズムを振り返ろう。