第5章多層パーセプトロン
5.5.3. Early Stopping5.5.3 早期終了
While deep neural networks are capable of fitting arbitrary labels, even when labels are assigned incorrectly or randomly (Zhang et al., 2021), this capability only emerges over many iterations of training. A new line of work (Rolnick et al., 2017) has revealed that in the setting of label noise, neural networks tend to fit cleanly labeled data first and only subsequently to interpolate the mislabeled data. Moreover, it has been established that this phenomenon translates directly into a guarantee on generalization: whenever a model has fitted the cleanly labeled data but not randomly labeled examples included in the training set, it has in fact generalized (Garg et al., 2021).
英語のヒント
深いニューラルネットワークは、ラベルが誤って、あるいは無作為に割り当てられているときでさえ、任意のラベルに当てはまることができる(Zhang et al., 2021)が、この能力は訓練を何回も反復して初めて現れる。新しい一連の研究(Rolnick et al., 2017)は、ラベルにノイズがある設定では、ニューラルネットワークはまずきれいにラベル付けされたデータに当てはまり、その後になって初めて誤ってラベル付けされたデータを補間する傾向があることを明らかにした。さらに、この現象は汎化の保証に直結することが確立されている。モデルが、訓練集合に含まれる、きれいにラベル付けされたデータには当てはまったが、無作為にラベル付けされた事例には当てはまっていないときには、いつでも実際に汎化しているのである(Garg et al., 2021)。
Together these findings help to motivate early stopping, a classic technique for regularizing deep neural networks. Here, rather than directly constraining the values of the weights, one constrains the number of epochs of training. The most common way to determine the stopping criterion is to monitor validation error throughout training (typically by checking once after each epoch) and to cut off training when the validation error has not decreased by more than some small amount for some number of epochs. This is sometimes called a patience criterion. As well as the potential to lead to better generalization in the setting of noisy labels, another benefit of early stopping is the time saved. Once the patience criterion is met, one can terminate training. For large models that might require days of training simultaneously across eight or more GPUs, well-tuned early stopping can save researchers days of time and can save their employers many thousands of dollars.
英語のヒント
これらの発見は合わせて、深いニューラルネットワークを正則化する古典的な手法である早期終了の動機づけになる。ここでは、重みの値を直接制約するのではなく、訓練のエポック数を制約する。停止の基準を決める最も一般的な方法は、訓練全体を通じて検証誤差を監視し(ふつうは各エポックの後に一度確かめる)、ある回数のエポックのあいだ検証誤差がある小さな量以上減らなかったら訓練を打ち切ることである。これは我慢の基準と呼ばれることもある。ノイズのあるラベルの設定でよりよい汎化につながる可能性に加えて、早期終了のもう一つの利点は、節約できる時間である。我慢の基準が満たされたら、訓練を終えられる。8台以上のGPUで同時に何日も訓練する必要がある大きなモデルでは、よく調整された早期終了によって、研究者は何日もの時間を節約でき、雇い主は何千ドルも節約できる。
Notably, when there is no label noise and datasets are realizable (the classes are truly separable, e.g., distinguishing cats from dogs), early stopping tends not to lead to significant improvements in generalization. On the other hand, when there is label noise, or intrinsic variability in the label (e.g., predicting mortality among patients), early stopping is crucial. Training models until they interpolate noisy data is typically a bad idea.
英語のヒント
注目すべきことに、ラベルにノイズがなく、データセットが実現可能である(クラスが本当に分離できる。たとえば猫と犬を見分ける)ときには、早期終了は汎化を大きく改善しない傾向がある。他方、ラベルにノイズがあったり、ラベルに本質的なばらつきがあったりする(たとえば患者の死亡を予測する)ときには、早期終了は決定的に重要である。ノイズのあるデータを補間するまでモデルを訓練するのは、たいていよくない考えである。