第8章現代の畳み込みニューラルネットワーク
8.2. Networks Using Blocks (VGG)8.2 ブロックを使うネットワーク(VGG)
While AlexNet offered empirical evidence that deep CNNs can achieve good results, it did not provide a general template to guide subsequent researchers in designing new networks. In the following sections, we will introduce several heuristic concepts commonly used to design deep networks.
英語のヒント
AlexNetは、深いCNNがよい結果を出せるという経験的な証拠を示したが、後に続く研究者が新しいネットワークを設計するときの手引きとなる一般的なひな形は示さなかった。以下の節では、深いネットワークの設計によく使われる、経験則にもとづくいくつかの考え方を紹介する。
Progress in this field mirrors that of VLSI (very large scale integration) in chip design where engineers moved from placing transistors to logical elements to logic blocks (Mead, 1980). Similarly, the design of neural network architectures has grown progressively more abstract, with researchers moving from thinking in terms of individual neurons to whole layers, and now to blocks, repeating patterns of layers. A decade later, this has now progressed to researchers using entire trained models to repurpose them for different, albeit related, tasks. Such large pretrained models are typically called foundation models (Bommasani et al., 2021).
英語のヒント
この分野の進歩は、チップ設計におけるVLSI(超大規模集積回路)の進歩をなぞっている。そこでは技術者は、トランジスタを配置することから、論理素子、さらに論理ブロックへと移っていった(Mead, 1980)。同じように、ニューラルネットワークの構造の設計もしだいに抽象的になり、研究者は、個々のニューロンの単位で考えることから、層全体、そして今では層の繰り返しパターンであるブロックの単位で考えるように移ってきた。10年後の今では、これがさらに進み、研究者は訓練済みのモデル全体を使って、関連はあるが異なる課題に転用するようになっている。こうした大きな事前学習済みモデルは、ふつう基盤モデルと呼ばれる(Bommasani et al., 2021)。
Back to network design. The idea of using blocks first emerged from the Visual Geometry Group (VGG) at Oxford University, in their eponymously-named VGG network (Simonyan and Zisserman, 2014). It is easy to implement these repeated structures in code with any modern deep learning framework by using loops and subroutines.
英語のヒント
ネットワークの設計に話を戻そう。ブロックを使う考えは、オックスフォード大学のVisual Geometry Group(VGG)が、その名を冠したVGGネットワーク(Simonyan and Zisserman, 2014)で初めて打ち出したものである。どんな現代の深層学習のフレームワークでも、ループとサブルーチンを使えば、こうした繰り返しの構造をコードで簡単に実装できる。
import torch
from torch import nn
from d2l import torch as d2l