第8章現代の畳み込みニューラルネットワーク
8.6.6. Summary and Discussion8.6.6 まとめと考察
Nested function classes are desirable since they allow us to obtain strictly more powerful rather than also subtly different function classes when adding capacity. One way of accomplishing this is by letting additional layers to simply pass through the input to the output. Residual connections allow for this. As a consequence, this changes the inductive bias from simple functions being of the form to simple functions looking like .
英語のヒント
入れ子の関数のクラスが望ましいのは、容量を加えるときに、微妙に違うものではなく厳密にもっと強力な関数のクラスを得られるからである。これを実現する一つの方法は、追加の層が単に入力を出力へ素通りさせるようにすることである。残差接続はこれを可能にする。その結果、帰納バイアスは、単純な関数がの形のものから、単純な関数がのように見えるものへと変わる。
The residual mapping can learn the identity function more easily, such as pushing parameters in the weight layer to zero. We can train an effective deep neural network by having residual blocks. Inputs can forward propagate faster through the residual connections across layers. As a consequence, we can thus train much deeper networks. For instance, the original ResNet paper (He et al., 2016) allowed for up to 152 layers. Another benefit of residual networks is that it allows us to add layers, initialized as the identity function, during the training process. After all, the default behavior of a layer is to let the data pass through unchanged. This can accelerate the training of very large networks in some cases.
英語のヒント
残差写像は、重みの層のパラメータを0に押しやるなどして、恒等関数をもっと簡単に学習できる。残差ブロックをもたせることで、効果的な深いニューラルネットワークを訓練できる。入力は、層をまたぐ残差接続を通じて、より速く順伝播できる。その結果、ずっと深いネットワークを訓練できる。たとえば、元のResNetの論文(He et al., 2016)では、最大152層まで可能になった。残差ネットワークのもう一つの利点は、訓練の過程で、恒等関数として初期化した層を加えられることである。結局のところ、層の既定のふるまいはデータを変えずに通すことである。これは、場合によってはとても大きなネットワークの訓練を速められる。
Prior to residual connections, bypassing paths with gating units were introduced to effectively train highway networks with over 100 layers (Srivastava et al., 2015). Using identity functions as bypassing paths, ResNet performed remarkably well on multiple computer vision tasks. Residual connections had a major influence on the design of subsequent deep neural networks, of either convolutional or sequential nature. As we will introduce later, the Transformer architecture (Vaswani et al., 2017) adopts residual connections (together with other design choices) and is pervasive in areas as diverse as language, vision, speech, and reinforcement learning.
英語のヒント
残差接続より前には、100層を超えるハイウェイネットワークを効果的に訓練するために、ゲートのユニットをもつ迂回路が導入されていた(Srivastava et al., 2015)。恒等関数を迂回路として使うことで、ResNetは複数のコンピュータビジョンの課題で目覚ましい性能を出した。残差接続は、畳み込みのものであれ系列のものであれ、その後の深いニューラルネットワークの設計に大きな影響を与えた。後で紹介するように、Transformerの構造(Vaswani et al., 2017)は(ほかの設計上の選択とともに)残差接続を採用しており、言語、視覚、音声、強化学習といった多様な分野に広く行き渡っている。
ResNeXt is an example for how the design of convolutional neural networks has evolved over time: by being more frugal with computation and trading it off against the size of the activations (number of channels), it allows for faster and more accurate networks at lower cost. An alternative way of viewing grouped convolutions is to think of a block-diagonal matrix for the convolutional weights. Note that there are quite a few such “tricks” that lead to more efficient networks. For instance, ShiftNet (Wu et al., 2018) mimicks the effects of a convolution, simply by adding shifted activations to the channels, offering increased function complexity, this time without any computational cost.
英語のヒント
ResNeXtは、畳み込みニューラルネットワークの設計が時とともにどう進化してきたかを示す例である。計算をもっと切り詰め、それを活性値の大きさ(チャネルの数)と釣り合わせることで、より低い費用でより速く正確なネットワークを可能にする。グループ化畳み込みの別の見方は、畳み込みの重みをブロック対角行列と考えることである。より効率的なネットワークにつながるこうした「工夫」はかなりたくさんあることに注意してほしい。たとえば、ShiftNet(Wu et al., 2018)は、単にずらした活性値をチャネルに加えるだけでの畳み込みの効果をまね、関数の複雑さを増やしながら、今度は計算の費用がまったくかからない。
A common feature of the designs we have discussed so far is that the network design is fairly manual, primarily relying on the ingenuity of the designer to find the “right” network hyperparameters. While clearly feasible, it is also very costly in terms of human time and there is no guarantee that the outcome is optimal in any sense. In Section 8.8 we will discuss a number of strategies for obtaining high quality networks in a more automated fashion. In particular, we will review the notion of network design spaces that led to the RegNetX/Y models (Radosavovic et al., 2020).
英語のヒント
これまで論じてきた設計に共通する特徴は、ネットワークの設計がかなり手作業で、「正しい」ネットワークのハイパーパラメータを見つけるのを主に設計者の創意に頼っていることである。それは明らかに実行可能ではあるが、人間の時間の点でとても費用がかかり、その結果がどんな意味でも最適だという保証はない。8.8節では、もっと自動化されたやり方で質の高いネットワークを得るための戦略をいくつか論じる。特に、RegNetX/Yのモデル(Radosavovic et al., 2020)につながったネットワーク設計空間という概念を振り返る。