第8章現代の畳み込みニューラルネットワーク
8.7.1. From ResNet to DenseNet8.7.1 ResNetからDenseNetへ
Recall the Taylor expansion for functions. At the point it can be written as
英語のヒント
関数のテイラー展開を思い出そう。点では、それは次のように書ける。
(8.7.1)
The key point is that it decomposes a function into terms of increasingly higher order. In a similar vein, ResNet decomposes functions into
英語のヒント
要点は、テイラー展開が関数をしだいに高い次数の項へと分解することである。同じように、ResNetは関数を次のように分解する。
(8.7.2)
That is, ResNet decomposes into a simple linear term and a more complex nonlinear one. What if we wanted to capture (not necessarily add) information beyond two terms? One such solution is DenseNet (Huang et al., 2017).
英語のヒント
つまり、ResNetはを、単純な線形の項と、もっと複雑な非線形の項に分解する。二つの項を超えて情報を(必ずしも足すのではなく)とらえたいとしたら、どうなるだろうか。そうした解決策の一つがDenseNet(Huang et al., 2017)である。
Fig. 8.7.1図8.7.1
The main difference between ResNet (left) and DenseNet (right) in cross-layer connections: use of addition and use of concatenation.
英語のヒント
層をまたぐ接続における、ResNet(左)とDenseNet(右)の主な違い。加算を使うか、連結を使うか。
As shown in Fig. 8.7.1, the key difference between ResNet and DenseNet is that in the latter case outputs are concatenated (denoted by ) rather than added. As a result, we perform a mapping from to its values after applying an increasingly complex sequence of functions:
英語のヒント
図8.7.1に示すように、ResNetとDenseNetの鍵となる違いは、後者では出力が加えられるのではなく連結される(で表す)ことである。その結果、しだいに複雑になる一連の関数を当てはめた後の値へと、からの写像を行うことになる。
(8.7.3)
In the end, all these functions are combined in MLP to reduce the number of features again. In terms of implementation this is quite simple: rather than adding terms, we concatenate them. The name DenseNet arises from the fact that the dependency graph between variables becomes quite dense. The final layer of such a chain is densely connected to all previous layers. The dense connections are shown in Fig. 8.7.2.
英語のヒント
最後に、これらの関数はすべてMLPで組み合わされ、特徴量の数を再び減らす。実装の面では、これはごく単純である。項を足すのではなく、連結するのである。DenseNetという名前は、変数のあいだの依存グラフがかなり密になることに由来する。こうした連鎖の最後の層は、前のすべての層と密につながっている。密な接続を図8.7.2に示す。
Fig. 8.7.2図8.7.2
Dense connections in DenseNet. Note how the dimensionality increases with depth.
英語のヒント
DenseNetにおける密な接続。深さとともに次元がどう増えるかに注意してほしい。
The main components that comprise a DenseNet are dense blocks and transition layers. The former define how the inputs and outputs are concatenated, while the latter control the number of channels so that it is not too large, since the expansion can be quite high-dimensional.
英語のヒント
DenseNetを構成する主な部品は、密なブロックと遷移層である。前者は入力と出力をどう連結するかを定め、後者はチャネルの数を制御して大きくなりすぎないようにする。展開はかなり高次元になりうるからである。