プリンキピア

第8章現代の畳み込みニューラルネットワーク

8.4. Multi-Branch Networks (GoogLeNet)8.4 多分岐のネットワーク(GoogLeNet)

In 2014, GoogLeNet won the ImageNet Challenge (Szegedy et al., 2015), using a structure that combined the strengths of NiN (Lin et al., 2013), repeated blocks (Simonyan and Zisserman, 2014), and a cocktail of convolution kernels. It was arguably also the first network that exhibited a clear distinction among the stem (data ingest), body (data processing), and head (prediction) in a CNN. This design pattern has persisted ever since in the design of deep networks: the stem is given by the first two or three convolutions that operate on the image. They extract low-level features from the underlying images. This is followed by a body of convolutional blocks. Finally, the head maps the features obtained so far to the required classification, segmentation, detection, or tracking problem at hand.
英語のヒント
2014年、GoogLeNetは、NiN(Lin et al., 2013)の強み、繰り返しのブロック(Simonyan and Zisserman, 2014)、そしていろいろな畳み込みカーネルの取り合わせを組み合わせた構造を使って、ImageNetのコンテストで優勝した(Szegedy et al., 2015)。これはまた、CNNにおけるステム(データの取り込み)、ボディ(データの処理)、ヘッド(予測)をはっきり区別した最初のネットワークだとも言える。この設計パターンはそれ以来、深いネットワークの設計で受け継がれてきた。ステムは、画像に働く最初の二つか三つの畳み込みからなる。それらは、もとの画像から低い水準の特徴量を抽出する。その後に、畳み込みブロックからなるボディが続く。最後に、ヘッドが、それまでに得られた特徴量を、目の前の分類、セグメンテーション、検出、追跡といった求められる問題へと写す。
The key contribution in GoogLeNet was the design of the network body. It solved the problem of selecting convolution kernels in an ingenious way. While other works tried to identify which convolution, ranging from 1×1 to 11×11 would be best, it simply concatenated multi-branch convolutions. In what follows we introduce a slightly simplified version of GoogLeNet: the original design included a number of tricks for stabilizing training through intermediate loss functions, applied to multiple layers of the network. They are no longer necessary due to the availability of improved training algorithms.
英語のヒント
GoogLeNetの鍵となる貢献は、ネットワークのボディの設計だった。それは、畳み込みカーネルを選ぶという問題を巧みなやり方で解いた。ほかの研究が、1×1から11×11までの畳み込みのどれが最もよいかを突き止めようとしたのに対し、GoogLeNetは単に多分岐の畳み込みを連結した。以下では、少し単純にした版のGoogLeNetを紹介する。元の設計には、ネットワークの複数の層に当てはめる中間の損失関数を通じて訓練を安定させるための工夫がいくつも含まれていた。改良された訓練アルゴリズムが使えるようになったので、それらはもはや必要ない。
import torch
from torch import nn
from torch.nn import functional as F
from d2l import torch as d2l