プリンキピア

第7章畳み込みニューラルネットワーク

7.4.4. Discussion7.4.4 考察

Channels allow us to combine the best of both worlds: MLPs that allow for significant nonlinearities and convolutions that allow for localized analysis of features. In particular, channels allow the CNN to reason with multiple features, such as edge and shape detectors at the same time. They also offer a practical trade-off between the drastic parameter reduction arising from translation invariance and locality, and the need for expressive and diverse models in computer vision.
英語のヒント
チャネルを使えば、両方のよいところを組み合わせられる。大きな非線形性を許すMLPと、特徴量の局所的な分析を許す畳み込みである。特に、チャネルによって、CNNは縁の検出器と形の検出器のような複数の特徴量を同時に扱って推論できる。また、チャネルは、並進不変性と局所性から生じるパラメータの劇的な削減と、コンピュータビジョンで表現力が高く多様なモデルが必要なこととのあいだで、実用的な釣り合いをとる。
Note, though, that this flexibility comes at a price. Given an image of size (h×w), the cost for computing a k×k convolution is 𝒪(h⋅w⋅k2). For ci and co input and output channels respectively this increases to 𝒪(h⋅w⋅k2⋅ci⋅co). For a 256×256 pixel image with a 5×5 kernel and 128 input and output channels respectively this amounts to over 53 billion operations (we count multiplications and additions separately). Later on we will encounter effective strategies to cut down on the cost, e.g., by requiring the channel-wise operations to be block-diagonal, leading to architectures such as ResNeXt (Xie et al., 2017).
英語のヒント
ただし、この柔軟性には代価が伴うことに注意してほしい。大きさ(h×w)の画像が与えられたとき、k×kの畳み込みを計算する費用は𝒪(h⋅w⋅k2)である。入力チャネルと出力チャネルがそれぞれci個とco個なら、これは𝒪(h⋅w⋅k2⋅ci⋅co)に増える。256×256画素の画像に5×5のカーネルを使い、入力チャネルと出力チャネルがそれぞれ128個なら、これは530億回を超える演算になる(掛け算と足し算は別々に数える)。後で、費用を削る効果的な戦略に出会う。たとえば、チャネルごとの演算をブロック対角に制限することで、ResNeXt(Xie et al., 2017)のような構造につながる。