プリンキピア

第19章ハイパーパラメータ最適化

19.2.6. Comparing HPO Algorithms19.2.6 HPOのアルゴリズムを比較する

Just as with training algorithms or model architectures, it is important to understand how to best compare different HPO algorithms. Each HPO run depends on two major sources of randomness: the random effects of the training process, such as random weight initialization or mini-batch ordering, and the intrinsic randomness of the HPO algorithm itself, such as the random sampling of random search. Hence, when comparing different algorithms, it is crucial to run each experiment several times and report statistics, such as mean or median, across a population of multiple repetitions of an algorithm based on different seeds of the random number generator.
英語のヒント
訓練アルゴリズムやモデルのアーキテクチャと同じように、異なるHPOのアルゴリズムをどう比較するのが最もよいかを理解することは大切である。HPOの各実行は、ランダムさの二つの大きな源に左右される。重みのランダムな初期化やミニバッチの順序のような訓練の過程のランダムな効果と、ランダム探索のランダムなサンプリングのような、HPOのアルゴリズムそのものに内在するランダムさである。したがって、異なるアルゴリズムを比較するときは、各実験を何度も実行し、乱数生成器の異なるシードにもとづくアルゴリズムの多数の繰り返しの集団にわたって、平均や中央値のような統計量を報告することが決定的に重要である。
To illustrate this, we compare random search (see Section 19.1.2) and Bayesian optimization (Snoek et al., 2012) on tuning the hyperparameters of a feed-forward neural network. Each algorithm was evaluated 50 times with a different random seed. The solid line indicates the average performance of the incumbent across these 50 repetitions and the dashed line the standard deviation. We can see that random search and Bayesian optimization perform roughly the same up to ~1000 seconds, but Bayesian optimization can make use of the past observation to identify better configurations and thus quickly outperforms random search afterwards.
英語のヒント
これを示すため、順伝播型ニューラルネットワークのハイパーパラメータの調整について、ランダム探索(19.1.2節を参照)とベイズ最適化(Snoek et al., 2012)を比較する。各アルゴリズムは、異なるランダムシードで50回評価した。実線はこれらの50回の繰り返しにわたる暫定最良解の平均の性能を、破線は標準偏差を示す。ランダム探索とベイズ最適化は約1000秒まではほぼ同じ性能だが、ベイズ最適化は過去の観測を使ってよりよい設定を見つけられるので、その後すぐにランダム探索を上回ることがわかる。
Fig. 19.2.1図19.2.1
Example any-time performance plot to compare two algorithms A and B.
英語のヒント
二つのアルゴリズムAとBを比較する、任意時点での性能のプロットの例。