プリンキピア

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

12. Optimization Algorithms12 最適化アルゴリズム

If you read the book in sequence up to this point you already used a number of optimization algorithms to train deep learning models. They were the tools that allowed us to continue updating model parameters and to minimize the value of the loss function, as evaluated on the training set. Indeed, anyone content with treating optimization as a black box device to minimize objective functions in a simple setting might well content oneself with the knowledge that there exists an array of incantations of such a procedure (with names such as “SGD” and “Adam”).
英語のヒント
ここまで本を順に読んできたなら、深層学習のモデルを訓練するために、すでにいくつもの最適化アルゴリズムを使ってきた。それらは、モデルのパラメータを更新し続け、訓練集合で評価した損失関数の値を最小化するための道具だった。実際、単純な設定で目的関数を最小化するブラックボックスの装置として最適化を扱うことに満足する人なら、そうした手続きには(「SGD」や「Adam」のような名前の)一連の呪文があると知っているだけで満足してもおかしくない。
To do well, however, some deeper knowledge is required. Optimization algorithms are important for deep learning. On the one hand, training a complex deep learning model can take hours, days, or even weeks. The performance of the optimization algorithm directly affects the model’s training efficiency. On the other hand, understanding the principles of different optimization algorithms and the role of their hyperparameters will enable us to tune the hyperparameters in a targeted manner to improve the performance of deep learning models.
英語のヒント
しかし、うまくやるには、もっと深い知識が要る。最適化アルゴリズムは深層学習にとって重要である。一方で、複雑な深層学習のモデルの訓練には、数時間、数日、あるいは数週間かかることもある。最適化アルゴリズムの性能は、モデルの訓練の効率に直接影響する。他方で、さまざまな最適化アルゴリズムの原理とそのハイパーパラメータの役割を理解すれば、狙いを定めてハイパーパラメータを調整し、深層学習のモデルの性能を改善できるようになる。
In this chapter, we explore common deep learning optimization algorithms in depth. Almost all optimization problems arising in deep learning are nonconvex. Nonetheless, the design and analysis of algorithms in the context of convex problems have proven to be very instructive. It is for that reason that this chapter includes a primer on convex optimization and the proof for a very simple stochastic gradient descent algorithm on a convex objective function.
英語のヒント
この章では、深層学習でよく使われる最適化アルゴリズムを詳しく探る。深層学習で生じる最適化問題は、ほとんどすべて非凸である。それでも、凸の問題という文脈でのアルゴリズムの設計と解析は、とても有益であることがわかってきた。そのため、この章には、凸最適化の入門と、凸の目的関数に対するとても単純な確率的勾配降下法のアルゴリズムの証明を入れてある。