第8章現代の畳み込みニューラルネットワーク
8.5.6. Discussion8.5.6 考察
Intuitively, batch normalization is thought to make the optimization landscape smoother. However, we must be careful to distinguish between speculative intuitions and true explanations for the phenomena that we observe when training deep models. Recall that we do not even know why simpler deep neural networks (MLPs and conventional CNNs) generalize well in the first place. Even with dropout and weight decay, they remain so flexible that their ability to generalize to unseen data likely needs significantly more refined learning-theoretic generalization guarantees.
英語のヒント
直観的には、バッチ正規化は最適化の地形をなめらかにすると考えられている。しかし、深いモデルを訓練するときに観察する現象について、推測的な直観と本当の説明とを注意して区別しなければならない。そもそも、もっと単純な深いニューラルネットワーク(MLPや従来のCNN)がなぜよく汎化するのかさえわかっていないことを思い出そう。ドロップアウトと重み減衰を使っても、それらはとても柔軟なままなので、見たことのないデータへ汎化する能力を説明するには、学習理論にもとづくずっと洗練された汎化の保証がおそらく必要になる。
The original paper proposing batch normalization (Ioffe and Szegedy, 2015), in addition to introducing a powerful and useful tool, offered an explanation for why it works: by reducing internal covariate shift. Presumably by internal covariate shift they meant something like the intuition expressed above—the notion that the distribution of variable values changes over the course of training. However, there were two problems with this explanation: i) This drift is very different from covariate shift, rendering the name a misnomer. If anything, it is closer to concept drift. ii) The explanation offers an under-specified intuition but leaves the question of why precisely this technique works an open question wanting for a rigorous explanation. Throughout this book, we aim to convey the intuitions that practitioners use to guide their development of deep neural networks. However, we believe that it is important to separate these guiding intuitions from established scientific fact. Eventually, when you master this material and start writing your own research papers you will want to be clear to delineate between technical claims and hunches.
英語のヒント
バッチ正規化を提案した元の論文(Ioffe and Szegedy, 2015)は、強力で有用な道具を紹介しただけでなく、それがなぜ働くのかの説明も示した。内部共変量シフトを減らすから、というものである。内部共変量シフトという言葉で、彼らはおそらく、上で述べた直観のようなもの、つまり変数の値の分布が訓練の過程で変わるという考えを意味していた。しかし、この説明には二つの問題があった。i)このずれは共変量シフトとはまったく違うので、この名前は誤った名前になっている。どちらかと言えば、概念ドリフトに近い。ii)この説明は、詳細の詰められていない直観を与えるだけで、まさにこの手法がなぜ働くのかという問いを、厳密な説明を待つ未解決の問いのまま残している。この本全体を通じて、実践者が深いニューラルネットワークの開発の指針にしている直観を伝えることを目指している。しかし、こうした指針となる直観を、確立した科学的事実から切り分けることが重要だと考えている。いずれこの内容を身につけ、自分の研究論文を書き始めたら、技術的な主張と勘とをはっきり区別したくなるだろう。
Following the success of batch normalization, its explanation in terms of internal covariate shift has repeatedly surfaced in debates in the technical literature and broader discourse about how to present machine learning research. In a memorable speech given while accepting a Test of Time Award at the 2017 NeurIPS conference, Ali Rahimi used internal covariate shift as a focal point in an argument likening the modern practice of deep learning to alchemy. Subsequently, the example was revisited in detail in a position paper outlining troubling trends in machine learning (Lipton and Steinhardt, 2018). Other authors have proposed alternative explanations for the success of batch normalization, some (Santurkar et al., 2018) claiming that batch normalization’s success comes despite exhibiting behavior that is in some ways opposite to those claimed in the original paper.
英語のヒント
バッチ正規化が成功した後、内部共変量シフトによるその説明は、技術文献での論争や、機械学習の研究をどう示すべきかについてのより広い議論の中で、繰り返し浮上してきた。2017年のNeurIPSの会議でTest of Time Awardを受けたときの記憶に残るスピーチで、Ali Rahimiは、現代の深層学習の実践を錬金術になぞらえる議論の焦点として、内部共変量シフトを使った。その後、この例は、機械学習における憂慮すべき傾向を概説した意見論文(Lipton and Steinhardt, 2018)で詳しく取り上げ直された。ほかの著者たちは、バッチ正規化の成功について別の説明を提案しており、中には(Santurkar et al., 2018)、バッチ正規化は、いくつかの点で元の論文の主張とは逆のふるまいを示すにもかかわらず成功しているのだ、と主張するものもある。
We note that the internal covariate shift is no more worthy of criticism than any of thousands of similarly vague claims made every year in the technical machine learning literature. Likely, its resonance as a focal point of these debates owes to its broad recognizability for the target audience. Batch normalization has proven an indispensable method, applied in nearly all deployed image classifiers, earning the paper that introduced the technique tens of thousands of citations. We conjecture, though, that the guiding principles of regularization through noise injection, acceleration through rescaling and lastly preprocessing may well lead to further inventions of layers and techniques in the future.
英語のヒント
内部共変量シフトは、技術的な機械学習の文献で毎年なされる、同じように曖昧な何千もの主張のどれと比べても、ことさら批判に値するわけではないことを指摘しておく。これがこうした論争の焦点として反響を呼んだのは、おそらく、対象とする読者にとって広く見覚えのあるものだったからだろう。バッチ正規化は不可欠な手法であることが示され、実運用されているほぼすべての画像分類器で使われ、この手法を導入した論文には何万もの引用がもたらされた。とはいえ、ノイズの注入による正則化、スケールのし直しによる加速、そして最後に前処理という指針となる原理は、将来、層や手法のさらなる発明につながるかもしれないと推測している。
On a more practical note, there are a number of aspects worth remembering about batch normalization:
英語のヒント
もっと実践的な話として、バッチ正規化について覚えておく価値のある点がいくつかある。
- During model training, batch normalization continuously adjusts the intermediate output of the network by utilizing the mean and standard deviation of the minibatch, so that the values of the intermediate output in each layer throughout the neural network are more stable.
英語のヒント
モデルの訓練中、バッチ正規化は、ミニバッチの平均と標準偏差を利用してネットワークの中間出力を絶えず調整し、ニューラルネットワーク全体の各層の中間出力の値がより安定するようにする。 - Batch normalization is slightly different for fully connected layers than for convolutional layers. In fact, for convolutional layers, layer normalization can sometimes be used as an alternative.
英語のヒント
バッチ正規化は、全結合層と畳み込み層とで少し異なる。実際、畳み込み層では、代わりに層正規化を使えることもある。 - Like a dropout layer, batch normalization layers have different behaviors in training mode than in prediction mode.
英語のヒント
ドロップアウト層と同じように、バッチ正規化層は訓練モードと予測モードとで違うふるまいをする。 - Batch normalization is useful for regularization and improving convergence in optimization. By contrast, the original motivation of reducing internal covariate shift seems not to be a valid explanation.
英語のヒント
バッチ正規化は、正則化と、最適化での収束の改善に役立つ。これに対して、内部共変量シフトを減らすという元の動機は、妥当な説明ではないようである。 - For more robust models that are less sensitive to input perturbations, consider removing batch normalization (Wang et al., 2022).
英語のヒント
入力の摂動に影響されにくい、より頑健なモデルにするには、バッチ正規化を取り除くことを検討せよ(Wang et al., 2022)。