# AlexNet

**AlexNet**是一个用于图像分类的深度卷积神经网络，由[多伦多大学](https://www.edgepedia.org/zh/university-of-toronto)（University of Toronto）的研究生[亚历克斯·克里热夫斯基](https://www.edgepedia.org/zh/alex-krizhevsky)（Alex Krizhevsky）和[伊利亚·苏茨克维](https://www.edgepedia.org/zh/ilya-sutskever)（Ilya Sutskever）在导师杰弗里·辛顿（Geoffrey Hinton）指导下于2012年设计，其竞赛版本以15.3%的top-5错误率赢得2012年ImageNet大规模视觉识别挑战赛（ILSVRC），而第二名成绩为26.2%<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup>。该网络拥有6000万个参数和65万个神经元，由五个卷积层和三个全连接层组成，最后以1000路softmax收尾<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup>。它的胜利被广泛视为计算机视觉领域现代深度学习时代的开端，一篇综述称其可能是有史以来最具影响力的深度CNN实现<sup>[2](https://arxiv.org/abs/1803.02129v1)</sup>。

| 关键事实 | 详情 |
|---|---|
| ILSVRC-2012成绩 | 以15.3%的top-5错误率获胜，第二名为26.2%；在LSVRC-2010测试数据上，top-1错误率37.5%，top-5错误率17.0%<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup> |
| 规模 | 6000万个参数，65万个神经元，8个可学习层（5个卷积层，3个全连接层）<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup> |
| 训练硬件 | 两块Nvidia GTX 580 3GB GPU，训练5至6天；每块GPU算力为1.5 TFLOPs<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup><sup> • </sup><sup>[3](https://d2l.ai/chapter_convolutional-modern/alexnet.html)</sup> |
| 关键技术 | ReLU激活函数、概率为0.5的dropout、大量数据增强、双GPU并行化<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup> |
| 计算开销 | 6100万参数，每张图像0.7 GFLOP，相比之下VGG-16为1.38亿参数和13.6 GFLOP<sup>[4](https://slazebni.cs.illinois.edu/spring25/lec07_cnn_architectures.pdf)</sup> |
| 作者 | 亚历克斯·克里热夫斯基、伊利亚·苏茨克维、杰弗里·辛顿（多伦多大学）；以克里热夫斯基命名<sup>[5](https://computerhistory.org/blog/chm-releases-alexnet-source-code/)</sup> |
| 影响 | Google Scholar引用超过172,000次；源代码由计算机历史博物馆（Computer History Museum）和Google于2025年3月开源发布<sup>[5](https://computerhistory.org/blog/chm-releases-alexnet-source-code/)</sup> |

## 背景与语境

ImageNet数据集于2009年发布，起初鲜受关注；2012年多伦多团队的成果改变了这一局面，其图像识别表现在该竞赛中史无前例<sup>[6](https://arstechnica.com/ai/2024/11/how-a-stubborn-computer-scientist-accidentally-launched-the-deep-learning-boom/)</sup>。ILSVRC要求参赛者将120万张高分辨率图像分类到1000个类别中<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup>。

卷积神经网络本身并不新鲜。CNN自1989年[杨立昆](https://www.edgepedia.org/zh/yann-lecun)（Yann LeCun）的工作起便已存在，但在2006年之前的硬件条件下被认为计算代价过高，这限制了对它的研究<sup>[7](https://gwern.net/doc/ai/nn/cnn/2017-rawat.pdf)</sup>。用GPU训练的CNN此前也已赢得过竞赛：2011年，丹·奇雷尚（Dan Cireșan）等人在瑞士[于尔根·施密德胡伯](https://www.edgepedia.org/zh/jurgen-schmidhuber)（Jürgen Schmidhuber）的IDSIA实验室用GPU训练的卷积网络DanNet，在规模小于ImageNet的数据集上赢得了四项独立的图像识别比赛<sup>[5](https://computerhistory.org/blog/chm-releases-alexnet-source-code/)</sup>。克里热夫斯基通过扩展他早先的cuda-convnet库来构建训练代码，该库在此后数年间成为行业标准；他在父母家中卧室里的一台装有双Nvidia显卡的计算机上训练了该网络<sup>[5](https://computerhistory.org/blog/chm-releases-alexnet-source-code/)</sup><sup> • </sup><sup>[3](https://d2l.ai/chapter_convolutional-modern/alexnet.html)</sup>。

## 架构

AlexNet是一个8层网络：五个卷积层、两个全连接隐藏层和一个全连接输出层，使用ReLU激活函数而非sigmoid<sup>[3](https://d2l.ai/chapter_convolutional-modern/alexnet.html)</sup>。每个卷积层和全连接层的输出都应用了ReLU非线性<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup>。第一、第二和第五个卷积层之后各接一个窗口为3×3、步长为2的最大池化层，该网络的卷积通道数是[LeNet](https://www.edgepedia.org/zh/lenet)的十倍<sup>[3](https://d2l.ai/chapter_convolutional-modern/alexnet.html)</sup>。

各层维度是具体的。第一个卷积层用96个大小为11×11×3的卷积核以4像素步长滤波224×224×3的输入图像；第二层使用256个5×5×48的卷积核；第三、四、五层分别使用384个3×3×256、384个3×3×192和256个3×3×192的卷积核。每个全连接层有4096个神经元<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup>。

**双GPU拆分。** 单块3 GB GPU无法容纳该网络，因此它被分散到两块GTX 580上，二者仅在某些层通信。与每层卷积核数减半的单GPU网络相比，这种并行化将top-1和top-5错误率分别降低了1.7%和1.2%<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup>。两个各有4096个输出的全连接层构成了模型参数的大部分<sup>[3](https://d2l.ai/chapter_convolutional-modern/alexnet.html)</sup>。

**正则化。** Dropout在训练时将每个隐藏神经元的输出以0.5的概率置零；测试时将输出乘以0.5。它被专门用于减少全连接层的过拟合<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup><sup> • </sup><sup>[8](https://cacm.acm.org/research/imagenet-classification-with-deep-convolutional-neural-networks/)</sup>。数据增强在CPU上用Python进行，同时GPU训练上一批数据，使加速器保持忙碌<sup>[8](https://cacm.acm.org/research/imagenet-classification-with-deep-convolutional-neural-networks/)</sup>。

## 训练与性能

训练使用随机梯度下降，批大小为128，并配合大量数据增强；一个由七个CNN组成的集成模型将top-5错误率从18.2%改善到15.3%<sup>[9](https://ic.unicamp.br/~sandra/pdf/class/2019-2/mc886/2019-10-16-MC886-CNN-Architectures.pdf)</sup>。该网络在两块GTX 580 3GB GPU上训练了5至6天<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup>；GPU实现比CPU快50倍<sup>[4](https://slazebni.cs.illinois.edu/spring25/lec07_cnn_architectures.pdf)</sup>。在LSVRC-2010测试数据上，该网络达到37.5%的top-1和17.0%的top-5错误率，以SuperVision名义参赛的竞赛版本以15.3%的top-5错误率赢得ILSVRC-2012，第二名成绩为26.2%<sup>[1](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)</sup>。

约11个百分点的差距，正是使这一结果成为转折点的原因。该论文由克里热夫斯基在2012年10月于意大利佛罗伦萨举行的一次计算机视觉会议上报告，会上杨立昆称其为AI的转折点<sup>[5](https://computerhistory.org/blog/chm-releases-alexnet-source-code/)</sup>。

## 与其他架构的比较

在架构上，AlexNet与LeNet-5差别不大：一个输入层、若干偶尔带池化的卷积层，以及输出前的全连接层<sup>[2](https://arxiv.org/abs/1803.02129v1)</sup>。杨立昆1998年的文档识别网络有七层和60,000个可训练参数；AlexNet有八层和6000万个可训练参数，是规模上的千倍增长，而非新架构<sup>[6](https://arstechnica.com/ai/2024/11/how-a-stubborn-computer-scientist-accidentally-launched-the-deep-learning-boom/)</sup>。

其后在ILSVRC中出现的后继者显示了这一轨迹<sup>[4](https://slazebni.cs.illinois.edu/spring25/lec07_cnn_architectures.pdf)</sup>：

- **ZFNet**（2013年冠军）本质上是更大的AlexNet，通过将第一层11×11步长4的滤波器改为7×7步长2并将通道数翻倍，将top-5错误率从16.4%降至11.7%<sup>[10](https://comp6248.ecs.soton.ac.uk/handouts/Architectures-handouts.pdf)</sup>。
- **VGG**（top-5错误率7.32%，2014年第二名）表明更深的架构通常表现更好，它使用堆叠的3×3卷积，以更少参数达到与5×5感受野相当的效果<sup>[2](https://arxiv.org/abs/1803.02129v1)</sup><sup> • </sup><sup>[10](https://comp6248.ecs.soton.ac.uk/handouts/Architectures-handouts.pdf)</sup>。VGG-16的1.38亿参数和13.6 GFLOP使其远比AlexNet的6100万参数和0.7 GFLOP昂贵<sup>[4](https://slazebni.cs.illinois.edu/spring25/lec07_cnn_architectures.pdf)</sup>。
- **GoogLeNet**（6.67%，2014年第一名）和**ResNet**（3.57%，2015年，152层）进一步提升了准确率；所引比较中的ResNet和[Inception](https://www.edgepedia.org/zh/inception-network)架构在ImageNet单裁剪准确率上以至少7%的优势超越包括AlexNet在内的早期架构<sup>[4](https://slazebni.cs.illinois.edu/spring25/lec07_cnn_architectures.pdf)</sup><sup> • </sup><sup>[11](https://arxiv.org/pdf/1605.07678)</sup>。

到2015年，更好的硬件、更多的隐藏层和一系列技术进步使深度CNN的错误率又降至此前的三分之一，接近人类在静态图像上的表现<sup>[8](https://cacm.acm.org/research/imagenet-classification-with-deep-convolutional-neural-networks/)</sup>。

## 影响与遗产

在这一结果出现的一两年内，计算机视觉界已转向深度神经网络，如今这些网络被Google、Facebook、微软、百度等众多公司广泛部署<sup>[8](https://cacm.acm.org/research/imagenet-classification-with-deep-convolutional-neural-networks/)</sup>。商业后果紧随其后。辛顿和他的学生成立了一家空壳公司DNNresearch，以便通过公司被收购让团队受聘；Google在数月内以4400万美元将其收购，苏茨克维后来参与创办了OpenAI<sup>[6](https://arstechnica.com/ai/2024/11/how-a-stubborn-computer-scientist-accidentally-launched-the-deep-learning-boom/)</sup>。AlexNet还使Nvidia GPU成为训练神经网络的行业标准；Nvidia的市值从2012年的不足100亿美元升至超过3万亿美元<sup>[6](https://arstechnica.com/ai/2024/11/how-a-stubborn-computer-scientist-accidentally-launched-the-deep-learning-boom/)</sup>。

新颖性问题值得直说。AlexNet的组件大多是已知的：CNN可追溯至1989年，GPU训练在2011年已赢得比赛，其层类型与LeNet相同。改变的是规模、数据，以及使一个6000万参数网络能在数天内训练完成的工程实践，还有在一个足够大的基准上的展示——学习到的特征决定性地战胜了手工设计的特征<sup>[2](https://arxiv.org/abs/1803.02129v1)</sup><sup> • </sup><sup>[5](https://computerhistory.org/blog/chm-releases-alexnet-source-code/)</sup><sup> • </sup><sup>[7](https://gwern.net/doc/ai/nn/cnn/2017-rawat.pdf)</sup>。辛顿向[计算机历史博物馆](https://www.edgepedia.org/zh/computer-history-museum)总结了分工：“伊利亚认为我们应该做，亚历克斯让它运转起来，而我得了诺贝尔奖。”<sup>[5](https://computerhistory.org/blog/chm-releases-alexnet-source-code/)</sup>

## 变体与现代实现

Torchvision的`models.alexnet`报告有61,100,840个参数，在简化训练方案下ImageNet-1k准确率为top-1 56.522%和top-5 79.066%<sup>[12](https://pytorch.org/vision/main/_modules/torchvision/models/alexnet.html)</sup>。它基于《一种并行化卷积神经网络的奇怪技巧》一文而非2012年的原始架构，并在若干方面偏离原论文：第一个卷积层为64个滤波器而非96个（96与原版的双GPU拆分有关），没有局部响应归一化层，dropout放在全连接层之前而非ReLU之后<sup>[13](https://github.com/pytorch/vision/issues/549)</sup>。维护者指出，在其他数据集上微调时，层序差异可能损失2%或更多的准确率，不过推理不受影响<sup>[13](https://github.com/pytorch/vision/issues/549)</sup>。课程材料中描述的一个修改变体将第一个卷积从11×11步长4改为7×7步长2，并将第三、四、五层提升到512、1024和512个滤波器<sup>[9](https://ic.unicamp.br/~sandra/pdf/class/2019-2/mc886/2019-10-16-MC886-CNN-Architectures.pdf)</sup>。

2025年3月，计算机历史博物馆与Google合作，经五年谈判后在GitHub上开源发布了2012年版AlexNet的源代码；Google通过收购DNNresearch拥有其知识产权<sup>[5](https://computerhistory.org/blog/chm-releases-alexnet-source-code/)</sup>。GitHub上许多其他名为“AlexNet”的仓库是基于论文的复现，而非原始代码<sup>[5](https://computerhistory.org/blog/chm-releases-alexnet-source-code/)</sup>。

## 近期发展

AlexNet作为教学和基准测试的物件仍然活跃：它是深度学习课程和教科书中的标准早期示例，在torchvision中作为预训练参考权重提供，其0.7 GFLOP的小计算开销使其成为效率比较中的常见基线<sup>[3](https://d2l.ai/chapter_convolutional-modern/alexnet.html)</sup><sup> • </sup><sup>[4](https://slazebni.cs.illinois.edu/spring25/lec07_cnn_architectures.pdf)</sup><sup> • </sup><sup>[12](https://pytorch.org/vision/main/_modules/torchvision/models/alexnet.html)</sup>。截至2025年3月源代码发布时，据[Google Scholar](https://www.edgepedia.org/zh/google-scholar)统计，2012年的论文已被引用超过172,000次，而原始Python代码的发布将一段重构的历史变成了可供检视的一手物件<sup>[5](https://computerhistory.org/blog/chm-releases-alexnet-source-code/)</sup><sup> • </sup><sup>[14](https://arstechnica.com/ai/2025/03/you-can-now-download-the-source-code-that-sparked-the-ai-boom/)</sup>。

## References

1. [Krizhevsky, Sutskever, Hinton (2012). ImageNet Classification with Deep Convolutional Neural Networks, NeurIPS](https://proceedings.neurips.cc/paper_files/paper/2012/hash/c399862d3b9d6b76c8436e924a68c45b-Abstract.html)
2. [A Non-Technical Survey on Deep Convolutional Neural Network Architectures, arXiv](https://arxiv.org/abs/1803.02129v1)
3. [Dive into Deep Learning, §8.1 Deep Convolutional Neural Networks (AlexNet)](https://d2l.ai/chapter_convolutional-modern/alexnet.html)
4. [A tour of convolutional architectures, UIUC course notes](https://slazebni.cs.illinois.edu/spring25/lec07_cnn_architectures.pdf)
5. [CHM Releases AlexNet Source Code, Computer History Museum](https://computerhistory.org/blog/chm-releases-alexnet-source-code/)
6. [How a stubborn computer scientist accidentally launched the deep learning boom, Ars Technica (2024)](https://arstechnica.com/ai/2024/11/how-a-stubborn-computer-scientist-accidentally-launched-the-deep-learning-boom/)
7. [Rawat & Wang (2017). Deep Convolutional Neural Networks for Image Classification: A Comprehensive Review](https://gwern.net/doc/ai/nn/cnn/2017-rawat.pdf)
8. [ImageNet Classification with Deep Convolutional Neural Networks, Communications of the ACM reprint](https://cacm.acm.org/research/imagenet-classification-with-deep-convolutional-neural-networks/)
9. [CNN Architectures, UNICAMP MC886 course slides](https://ic.unicamp.br/~sandra/pdf/class/2019-2/mc886/2019-10-16-MC886-CNN-Architectures.pdf)
10. [Image Classification Networks, Southampton COMP6248 handouts](https://comp6248.ecs.soton.ac.uk/handouts/Architectures-handouts.pdf)
11. [An Analysis of Deep Neural Network Models for Practical Applications, arXiv](https://arxiv.org/pdf/1605.07678)
12. [torchvision.models.alexnet source documentation, PyTorch](https://pytorch.org/vision/main/_modules/torchvision/models/alexnet.html)
13. [BUG: The torchvision.models.alexnet is incorrect, pytorch/vision issue 549](https://github.com/pytorch/vision/issues/549)
14. [You can now download the source code that sparked the AI boom, Ars Technica (2025)](https://arstechnica.com/ai/2025/03/you-can-now-download-the-source-code-that-sparked-the-ai-boom/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Machine learning and neural computation › Neural networks and deep learning › Neural network architectures › Convolutional neural network architectures

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/alexnet

English original: https://www.edgepedia.org/alexnet
