This is the fourth piece in the Daily Paper series, after the 1986 back-propagation letter, the 1997 LSTM paper, and yesterday’s 1998 LeNet document-recognition survey. Fourteen years after LeNet showed that convolutional nets can learn from pixels, this NeurIPS 2012 paper scaled that idea to 1.2 million ImageNet photographs and 1000 classes. The leap came from depth, ReLU units, two-GPU training, data augmentation, and dropout. Only the abstract is translated in full; the rest is a bilingual reading guide, not a line-by-line translation of the paper. The official source is the NeurIPS 2012 proceedings PDF hosted by the conference; this guide does not claim an open adaptation licence for the body text.
这是「每日论文」的第 4 篇,接在 1986 年反向传播短文、1997 年 LSTM 长文和昨天的 1998 年 LeNet 文档识别综述之后。在 LeNet 证明卷积网能从像素学习之后十四年,这篇 NeurIPS 2012 论文把同一思路放大到 120 万张 ImageNet 照片和 1000 个类别。跨越来自深度、ReLU 单元、双 GPU 训练、数据增广和 dropout。下面只对摘要做完整的中英对照,其余是导读,不逐段翻译全文。官方来源是会议托管的 NeurIPS 2012 论文集 PDF;本导读不对正文主张可自由改编的开放许可。
Bibliographic details 论文信息
- Title 标题:ImageNet Classification with Deep Convolutional Neural Networks
- Authors 作者:Alex Krizhevsky、Ilya Sutskever、Geoffrey E. Hinton
- Affiliations 单位:University of Toronto 多伦多大学(三位作者)
- Venue 会议:Advances in Neural Information Processing Systems 25(NeurIPS 2012,旧称 NIPS)
- Year 年份:2012
- Pages 页数:9 pages in the proceedings PDF 论文集 PDF 共 9 页
- Official PDF 官方 PDF:https://proceedings.neurips.cc/paper_files/paper/2012/file/c399862d3b9d6b76c8436e924a68c45b-Paper.pdf
- Abstract page 摘要页:https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html
The bibliographic details above were checked against the NeurIPS proceedings PDF and the conference abstract page. Authors, title, year, and the 1000-way ImageNet setting match the PDF. Note that the live abstract HTML page currently shows slightly different numeric wording (for example top-1 and top-5 rates of 39.7% and 18.9%, and 500,000 neurons); those figures do not match the camera-ready PDF abstract, which reports 37.5% and 17.0% top-1 and top-5 test error and 650,000 neurons. This guide follows the PDF.
以上著录已对照 NeurIPS 论文集 PDF 与会议摘要页核对。作者、标题、年份以及 1000 类 ImageNet 设定均与 PDF 一致。请注意:目前线上摘要 HTML 页上的数字措辞略有不同(例如 top-1 与 top-5 误差写成 39.7% 和 18.9%,神经元数写成 500,000);这些数字与正式 PDF 摘要不符,PDF 摘要报告的是 top-1 与 top-5 测试误差 37.5% 和 17.0%,以及 650,000 个神经元。本导读以 PDF 为准。
Abstract 摘要
The English text below is the published abstract, quoted after checking the official NeurIPS PDF. Line-end hyphenation has been removed so the wording can be read as continuous prose; no other wording has been changed. The Chinese that follows is a complete translation.
下面的英文是正式刊出摘要,已对照官方 NeurIPS PDF 核对后引出。为便于阅读,只去掉了行末断词连字符,其余措辞未改。中文为对应全译。
We trained a large, deep convolutional neural network to classify the 1.2 million high-resolution images in the ImageNet LSVRC-2010 contest into the 1000 different classes. On the test data, we achieved top-1 and top-5 error rates of 37.5% and 17.0% which is considerably better than the previous state-of-the-art. The neural network, which has 60 million parameters and 650,000 neurons, consists of five convolutional layers, some of which are followed by max-pooling layers, and three fully-connected layers with a final 1000-way softmax. To make training faster, we used non-saturating neurons and a very efficient GPU implementation of the convolution operation. To reduce overfitting in the fully-connected layers we employed a recently-developed regularization method called “dropout” that proved to be very effective. We also entered a variant of this model in the ILSVRC-2012 competition and achieved a winning top-5 test error rate of 15.3%, compared to 26.2% achieved by the second-best entry.
我们训练了一个大型深度卷积神经网络,把 ImageNet LSVRC-2010 竞赛中的 120 万张高分辨率图像分到 1000 个不同类别。在测试数据上,我们达到了 37.5% 的 top-1 误差率和 17.0% 的 top-5 误差率,明显优于此前的最好结果。该网络有 6000 万参数和 65 万个神经元,由五个卷积层(其中一些后面接最大池化层)和三个全连接层组成,最后是 1000 路 softmax。为加快训练,我们使用了非饱和神经元,以及对卷积运算做了非常高效的 GPU 实现。为减轻全连接层的过拟合,我们采用了一种新近提出的、事后证明非常有效的正则化方法,称为「dropout」。我们还把该模型的一个变体送入 ILSVRC-2012 竞赛,以 15.3% 的 top-5 测试误差率夺冠,而第二名是 26.2%。
Background 背景
By 2012, object recognition already leaned on machine learning, but most labelled image sets were still small—tens of thousands of examples, as in NORB, Caltech-101/256, or CIFAR-10/100. Such sizes can support strong results on narrow tasks (MNIST digit error was already below 0.3%), yet realistic objects vary too much for small data. New collections finally offered scale: LabelMe with hundreds of thousands of segmented images, and ImageNet with over 15 million labelled high-resolution images in over 22,000 categories. Learning thousands of objects from millions of images, the authors argue, needs both large capacity and useful prior structure. Convolutional neural networks supply that prior: they assume local stationarity and local pixel dependencies, so they need far fewer connections than a similarly sized fully connected net, while remaining expressive enough for images.
到 2012 年,物体识别已经大量依靠机器学习,但多数带标注的图像集仍然很小——只有数万例,如 NORB、Caltech-101/256 或 CIFAR-10/100。这样的规模在窄任务上可以很强(MNIST 数字误差已低于 0.3%),但真实物体变化太大,小数据撑不住。新数据集终于带来了规模:LabelMe 有数十万张分割图像,ImageNet 则有超过 1500 万张、覆盖 2.2 万以上类别的高分辨率标注图像。作者主张:要从数百万图像中学习数千物体,既需要大容量,也需要有用的先验结构。卷积神经网络恰好提供这种先验:它假定局部平稳性和局部像素依赖,因此比同等规模的全连接网少得多的连接,同时仍足以表达图像。
Even so, CNNs had been too expensive for large high-resolution images. The paper’s bet is that modern GPUs plus a carefully engineered 2D convolution implementation can train interestingly large nets, and that ImageNet finally provides enough labels to do so without catastrophic overfitting. Their concrete contributions, as stated in the introduction, are: training one of the largest CNNs of the time on the ILSVRC-2010 and ILSVRC-2012 subsets and reporting by far the best numbers then available; releasing a public GPU convolution stack (cuda-convnet); introducing several architectural and regularisation choices detailed in Sections 3 and 4; and showing that depth matters—removing any convolutional layer hurt performance even though each such layer held no more than about 1% of the parameters.
即便如此,CNN 对大规模高分辨率图像一直过于昂贵。本文的赌注是:现代 GPU 加上精心实现的二维卷积,足以训练「有意思地大」的网络,而 ImageNet 终于提供了足够标注,使这样的训练不会灾难性地过拟合。引言中写明的具体贡献包括:在 ILSVRC-2010 与 ILSVRC-2012 子集上训练当时最大的 CNN 之一并报告远优于以往的数字;公开一套 GPU 卷积实现(cuda-convnet);在第 3、4 节给出若干结构与正则化选择;并表明深度确实重要——去掉任意一个卷积层都会损害性能,尽管每个卷积层的参数不超过总数的约 1%。
Core method 核心方法
Dataset and inputs 数据与输入
ILSVRC uses about 1000 images per class across 1000 classes: roughly 1.2 million training images, 50,000 validation images, and 150,000 test images. Most experiments use ILSVRC-2010, whose test labels were available; ILSVRC-2012 results are also reported for the competition entry. Errors are top-1 and top-5. Variable-resolution images are resized so the short side is 256, then a central 256×256 crop is taken; the only further preprocessing is subtracting the training-set mean per pixel. Training therefore runs on centred raw RGB.
ILSVRC 在 1000 个类别上大约每类 1000 张图:约 120 万训练、5 万验证、15 万测试。多数实验用可获得测试标签的 ILSVRC-2010;竞赛提交另报 ILSVRC-2012。误差用 top-1 与 top-5。可变分辨率图像先把短边缩到 256,再取中心 256×256;除此之外只减去训练集每像素均值。因此训练是在中心化后的原始 RGB 上进行。
ReLU, two GPUs, local response normalisation, overlapping pooling ReLU、双 GPU、局部响应归一化、重叠池化
The authors rank four architectural choices by importance. First, Rectified Linear Units, f(x) = max(0, x), replace saturating tanh or sigmoid units. On a four-layer CIFAR-10 net, a ReLU version reached 25% training error about six times faster than a matched tanh net, which made large-scale experiments feasible. Second, because a single GTX 580 had only 3 GB of memory, they split the net across two GPUs, placing half the kernels on each and allowing communication only in selected layers; relative to a one-GPU net with half as many kernels per convolutional layer, this cut top-1 and top-5 error by 1.7% and 1.2%. Third, local response normalisation after some ReLU layers implements a brightness-style lateral competition among nearby kernel maps (with k = 2, n = 5, α = 10^{-4}, β = 0.75) and reduced top-1 and top-5 error by 1.4% and 1.2%. Fourth, overlapping max-pooling with stride s = 2 and window z = 3 (instead of non-overlapping s = z = 2) reduced those errors by a further 0.4% and 0.3% and slightly resisted overfitting.
作者按重要性排列了四项结构选择。第一,用整流线性单元 f(x) = max(0, x) 取代饱和的 tanh 或 sigmoid。在一个四层 CIFAR-10 网上,ReLU 版本达到 25% 训练误差大约比匹配的 tanh 网快六倍,这使大规模实验变得可行。第二,单块 GTX 580 只有 3 GB 显存,于是把网络拆到两块 GPU 上,每块放一半卷积核,且只在选定层互通;相对「每层卷积核减半」的单 GPU 网,top-1 与 top-5 误差分别再降 1.7% 和 1.2%。第三,在部分 ReLU 层后做局部响应归一化,在相邻核图之间形成类似亮度竞争的侧抑制(k = 2,n = 5,α = 10^{-4},β = 0.75),使 top-1 与 top-5 再降 1.4% 和 1.2%。第四,用步长 s = 2、窗口 z = 3 的重叠最大池化(而非不重叠的 s = z = 2),再降 0.4% 和 0.3%,并略微抑制过拟合。
Overall architecture 整体结构
The net has eight weighted layers: five convolutional and three fully connected, ending in a 1000-way softmax trained with multinomial logistic regression. Input patches used in training are 224×224×3. Layer 1: 96 kernels of size 11×11×3 with stride 4. Layer 2: 256 kernels of size 5×5×48. Layers 3–5: 384, 384, and 256 kernels of size 3×3 (with channel depths 256, 192, and 192 as stated). Response normalisation follows the first and second convolutional layers; max-pooling follows those normalisation stages and the fifth convolution. ReLU is applied after every convolutional and fully connected layer. The two fully connected hidden layers have 4096 units each. Figure 2 in the paper gives the neuron counts 253,440–186,624–64,896–64,896–43,264–4096–4096–1000 after the 150,528-dimensional input.
网络有八个带权重的层:五个卷积层和三个全连接层,最后是用多项逻辑回归训练的 1000 路 softmax。训练时输入块为 224×224×3。第 1 层:96 个 11×11×3 核,步长 4。第 2 层:256 个 5×5×48 核。第 3–5 层:384、384、256 个 3×3 核(通道深度按原文为 256、192、192)。响应归一化接在第 1、2 卷积层之后;最大池化接在这些归一化之后以及第 5 卷积之后。每个卷积层和全连接层输出都接 ReLU。两个全连接隐层各有 4096 单元。论文图 2 给出输入 150,528 维之后各层神经元数为 253,440–186,624–64,896–64,896–43,264–4096–4096–1000。
Fighting overfitting 对抗过拟合
With 60 million parameters, even 1.2 million labelled examples were not enough. Two main defences are used. Data augmentation extracts random 224×224 crops and horizontal flips from 256×256 images (about a 2048× enlargement of the set, with highly dependent samples) and, at test time, averages softmax predictions over ten patches (four corners, centre, and their flips). A second augmentation adds PCA-based RGB intensity noise; the paper reports that this alone cut top-1 error by over 1%. Dropout, applied in the first two fully connected layers with drop probability 0.5, forces neurons not to co-adapt and roughly doubles the iterations needed to converge; at test time all units are kept and outputs are multiplied by 0.5.
即便有 120 万标注样本,6000 万参数仍不够用。主要靠两道防线。数据增广:从 256×256 图中随机裁 224×224 并水平翻转(集合大约放大 2048 倍,但样本高度相关),测试时对十个块(四角、中心及其翻转)的 softmax 预测取平均。第二种增广是基于 PCA 的 RGB 强度噪声;原文报告仅此一项就把 top-1 误差降了超过 1%。Dropout 用在前两个全连接层,丢弃概率 0.5,迫使神经元不要共适应,并使收敛所需迭代大约加倍;测试时保留全部单元并把输出乘以 0.5。
Optimisation 优化
Training uses SGD with batch size 128, momentum 0.9, and weight decay 0.0005 (the authors say this small decay also reduced training error, not only test error). Weights start from a zero-mean Gaussian with standard deviation 0.01; selected biases start at 1 to help ReLUs early on. The learning rate starts at 0.01 and is divided by 10 whenever validation error stalls; it was reduced three times. About 90 passes over the 1.2 million images took five to six days on two NVIDIA GTX 580 3GB GPUs.
训练使用批量 128、动量 0.9、权衰减 0.0005 的 SGD(作者说这点小衰减也降低了训练误差,不只是测试误差)。权重从均值 0、标准差 0.01 的高斯初始化;部分偏置初始化为 1,以便早期激活 ReLU。学习率从 0.01 起,验证误差不再下降时除以 10,共降过三次。大约 90 个 epoch、120 万图像,在两块 NVIDIA GTX 580 3GB 上花五到六天。
Main results 主要结果
On ILSVRC-2010 test data (Table 1), the CNN reaches 37.5% top-1 and 17.0% top-5 error. Without the ten-patch test-time average those rates are 39.0% and 18.3%. Prior competition and published baselines cited in the paper include sparse coding at 47.1% / 28.2% and SIFT plus Fisher Vectors at 45.7% / 25.7%.
在 ILSVRC-2010 测试集上(表 1),该 CNN 达到 top-1 37.5%、top-5 17.0%。若不做测试时十块平均,则为 39.0% 和 18.3%。文中引用的此前竞赛与已发表基线包括:稀疏编码 47.1% / 28.2%,以及 SIFT 加 Fisher Vector 45.7% / 25.7%。
On ILSVRC-2012 (Table 2), one CNN gives 18.2% top-5 validation error; an average of five similar CNNs gives 16.4%. Pre-training on the full ImageNet Fall 2011 release (15M images, 22K categories) and fine-tuning, then averaging seven nets, yields a winning top-5 test error of 15.3%, against 26.2% for the second-best entry based on Fisher Vectors. On the Fall 2009 ImageNet split with 10,184 categories and 8.9 million images, a deeper variant reaches 67.4% top-1 and 40.9% top-5, better than the cited prior 78.1% and 60.9%.
在 ILSVRC-2012 上(表 2),单网 top-5 验证误差 18.2%;五个相似 CNN 平均为 16.4%。在完整 ImageNet 2011 秋季版(1500 万图、2.2 万类)上预训练再微调,并平均七个网络,得到夺冠的 top-5 测试误差 15.3%,第二名基于 Fisher Vector 的条目为 26.2%。在含 10,184 类、890 万图的 2009 秋季 ImageNet 划分上,更深变体达到 top-1 67.4%、top-5 40.9%,优于文中引用的此前 78.1% 与 60.9%。
Qualitatively, the first-layer kernels split by GPU into largely colour-agnostic versus colour-specific filters. Top-5 predictions on sample test images are often semantically close even when wrong, and nearest neighbours in the last 4096-dimensional hidden layer retrieve training images that share category more than raw pixel similarity.
定性方面,第一层卷积核按 GPU 分成大体不依赖颜色与大体依赖颜色的两组。样本测试图的 top-5 预测即便出错也常语义接近;用最后 4096 维隐层做近邻检索时,找回的训练图更像按类别相近,而非按原始像素相近。
Impact and later work 影响与后续工作
The discussion emphasises that a large deep CNN can set records on a hard dataset with purely supervised learning, and that depth is not cosmetic: removing a middle convolutional layer costs about 2% top-1. They did not use unsupervised pre-training, though they expect it would help if the net grew faster than the labelled data. They close by hoping for still larger nets and for video, where temporal structure supplies cues missing from still frames.
讨论强调:大型深度 CNN 可以在困难数据集上仅靠有监督训练刷新纪录,而且深度不是装饰——去掉中间某个卷积层大约损失 2% 的 top-1。他们没有使用无监督预训练,但预期若网络增大速度快于标注数据增长,预训练会有帮助。结尾希望网络继续变大,并走向视频,因为时间结构能提供静态帧所缺少的线索。
Later history sits outside the 2012 text, but the public afterlife of this work is clear from what it demonstrated. The model nicknamed AlexNet is widely treated as the moment deep convolutional nets returned to the centre of large-scale vision. ReLU, heavy data augmentation, dropout in large fully connected heads, and multi-GPU training became default tools. Subsequent architectures—VGG, GoogLeNet, ResNet, and many others—kept scaling depth and width on the same ImageNet yardstick that this paper made famous as a deep-learning proving ground.
2012 年正文之外的历史已不属于原文,但这篇工作进入公共文献的后续影响,可以从它证明的事情上看得清楚。被通称为 AlexNet 的模型,常被看作深度卷积网重新回到大规模视觉中心的节点。ReLU、大量数据增广、大型全连接头上的 dropout,以及多 GPU 训练,都变成了默认工具。后来的 VGG、GoogLeNet、ResNet 等结构,继续在这篇论文使之出名的 ImageNet 尺度上加深加宽。
Limitations 局限
The paper is frank about practical limits. Network size was bounded by GPU memory and by how many days of training the authors would tolerate. Overfitting remained severe enough that augmentation and dropout were essential; without crop-and-flip augmentation they say they would have been forced into much smaller nets. Local response normalisation and the exact two-GPU connectivity pattern are cross-validated design choices rather than theorems, and later practice often dropped LRN. The winning 15.3% figure is an ensemble with pre-training on a larger ImageNet dump, not a single scratch-trained net. The authors also note they skipped unsupervised pre-training to keep experiments simple, and that matching biological visual pathways would still require orders of magnitude more scale. Finally, this guide quotes only the abstract in full: the proceedings PDF is the authoritative source for every number above, and the body is summarised rather than reproduced.
原文对实际限制说得很直白。网络规模受 GPU 显存和作者愿意等待的训练天数约束。过拟合仍然严重,增广与 dropout 必不可少;若没有裁剪翻转增广,他们说将被迫使用小得多的网络。局部响应归一化和双 GPU 的具体连通方式是交叉验证出来的设计选择,不是定理,后来的实践也常常去掉 LRN。夺冠的 15.3% 来自在更大 ImageNet 转储上预训练后的模型集成,而非单网从头训练。作者还提到为简化实验跳过了无监督预训练,并指出要接近生物视觉通路仍需再放大许多数量级。最后,本导读只完整引出摘要:上文每个数字以论文集 PDF 为准,正文只做导读摘要而不复述原文。
Key terms 关键词
- AlexNet:Informal name for the eight-layer CNN in this paper—five convolutional layers and three fully connected layers—trained on ImageNet for ILSVRC. 对本论文中这一八层 CNN(五层卷积加三层全连接)、在 ImageNet 上为 ILSVRC 训练的模型的非正式称呼。
- ImageNet / ILSVRC:A large labelled image database and its annual large-scale visual recognition challenge with 1000 classes and about 1.2 million training images in the contest subset. 大型标注图像库及其年度大规模视觉识别挑战;竞赛子集含 1000 类、约 120 万训练图像。
- Top-5 error rate top-5 误差率:The fraction of images whose true label is not among the five labels the model scores as most probable. 真实标签不在模型给出的五个最高分标签之中的图像比例。
- ReLU (Rectified Linear Unit) 整流线性单元:The non-saturating activation f(x) = max(0, x), which the paper shows can train deep nets many times faster than tanh units. 非饱和激活 f(x) = max(0, x);本文表明它能使深度网的训练比 tanh 单元快许多倍。
- Dropout:Regularisation that randomly zeroes hidden units with probability 0.5 during training so that co-adapted features are discouraged. 训练时以 0.5 概率随机把隐单元置零、从而抑制特征共适应的正则化方法。
- Local response normalisation (LRN) 局部响应归一化:A brightness-style lateral inhibition across adjacent kernel maps after ReLU, used after the first two convolutions in this net. 在 ReLU 之后、跨相邻核图做的亮度式侧抑制,本网络用于前两个卷积之后。
- Data augmentation 数据增广:Label-preserving transforms—here random crops, horizontal flips, and PCA colour noise—used to enlarge the effective training set. 保持标签的变换——本文中为随机裁剪、水平翻转和 PCA 颜色噪声——用来扩大有效训练集。
- Softmax:The final 1000-way layer that turns scores into a probability distribution over ImageNet classes. 最后的 1000 路层,把分数变成 ImageNet 各类上的概率分布。
Original paper 原文链接
NeurIPS proceedings PDF:https://proceedings.neurips.cc/paper_files/paper/2012/file/c399862d3b9d6b76c8436e924a68c45b-Paper.pdf
Abstract page 摘要页:https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html
Mirror on papers.nips.cc:https://papers.nips.cc/paper/2012/file/c399862d3b9d6b76c8436e924a68c45b-Paper.pdf