CNN Architectures Needs review

AlexNet

Year of appearance
2012
Researchers
Alex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton
Organisation
University of Toronto
Architecture type
Deep convolutional neural network
Learning mechanism
supervised
Tasks
Image classification

A deep convolutional network that won the ImageNet ILSVRC-2012 competition by a wide margin and launched the deep learning wave in computer vision.

Architecture diagram

Displayed configuration: Original two-group AlexNet (227×227) — Five convolution layers and three fully connected layers, with conv2, conv4 and conv5 split into two groups as in the two-GPU implementation.

Layer table (14 nodes)
LayerTypeInputOutputRepetitionParametersFormulaMACs
Inputinput3 × 227 × 22710—
conv1: 96@11×11 stride 4 + ReLU + LRNconv3 × 227 × 22796 × 55 × 55134,944From the reference PyTorch implementation105,415,200
maxpool 3×3 stride 2 (overlapping)pool96 × 55 × 5596 × 27 × 2710From the reference PyTorch implementation0
conv2: 256@5×5 (two groups)conv96 × 27 × 27256 × 27 × 271307,456From the reference PyTorch implementation223,948,800
maxpool 3×3 stride 2pool256 × 27 × 27256 × 13 × 1310From the reference PyTorch implementation0
conv3: 384@3×3conv256 × 13 × 13384 × 13 × 131885,120From the reference PyTorch implementation149,520,384
conv4: 384@3×3 (two groups)conv384 × 13 × 13384 × 13 × 131663,936From the reference PyTorch implementation112,140,288
conv5: 256@3×3 (two groups)conv384 × 13 × 13256 × 13 × 131442,624From the reference PyTorch implementation74,760,192
maxpool 3×3 stride 2pool256 × 13 × 13256 × 6 × 610From the reference PyTorch implementation0
fc6: 4096 + ReLU + Dropoutfc92164096137,752,832From the reference PyTorch implementation37,748,736
fc7: 4096 + ReLU + Dropoutfc40964096116,781,312From the reference PyTorch implementation16,777,216
fc8: 1000fc4096100014,097,000From the reference PyTorch implementation4,096,000
Softmax (1000 classes)softmax1000100010—
Class probabilitiesoutput1000100010—

Configuration figures: Original two-group AlexNet (227×227)

Parameters (computed from the layers)60,965,224 (≈60.97M)
Parameters (published in the source)60,000,000 (≈60M)
MACs724,406,816 (≈724.41M)
FLOPs ≈ 2 × MACs1,448,813,632 (≈1.45B)
Input shape
3×227×227
Output shape
1000
Depth
8 learnable layers
Complexity
fc6 dominates the parameters (about 62%), and the convolutions dominate the compute.
Parameters note
The paper states about 60 million parameters.
MACs note
Computed with torch.utils.flop_counter for one forward pass.
Calculation assumptions: The original two-group configuration; the single-GPU torchvision version differs (61,100,840 parameters).

MAC = a multiplication followed by an addition. The figures are for one forward pass of one sample with the stated dimensions; they are an analytical calculation, not a measurement of run time.

Scientific explanation

Historical background

It was trained on two GTX 580 cards for five to six days and achieved a top-5 error of 15.3% in the competition, versus 26.2% for the nearest competitor.

The problem it addresses

Classifying 1.2 million high-resolution natural images into 1000 classes.

Core idea

A deeper and larger network trained on GPUs, with ReLU for speed and Dropout and data augmentation to limit overfitting.

Architecture description

Five convolution layers (11×11, 5×5, then three 3×3) with overlapping max pooling and local response normalisation (LRN), followed by three fully connected layers (4096, 4096, 1000).

Data flow

227×227×3 ← 55×55×96 ← 27×27 ← 27×27×256 ← 13×13 ← 13×13×384 ← 13×13×384 ← 13×13×256 ← 6×6×256 ← 4096 ← 4096 ← 1000.

Inputs

A randomly cropped 224×224 RGB image (227 in practice).

Outputs

A probability distribution over 1000 classes.

Training procedure

SGD with momentum 0.9, batch 128, weight decay 0.0005, and a learning rate of 0.01 divided by 10 when improvement stalls, with Dropout 0.5 in fc6 and fc7.

Loss functions

Multi-class cross-entropy.

Computational complexity

About 0.72 billion multiply-adds per 227×227 image (computed here).

Computational requirements

Originally trained on two GPUs with 3GB of memory each.

Advantages

  • Proved the superiority of deep learning on ImageNet
  • ReLU sped up training considerably
  • Introduced Dropout and data augmentation systematically

Limitations

  • Very many parameters in the fully connected layers
  • LRN later proved not to be useful
  • Large kernels in the first layer

Equations

The convolution operation 2D convolution

Y_{o}(i,j) = b_o + \sum_{c=1}^{C_{in}} \sum_{u=0}^{k-1} \sum_{v=0}^{k-1} W_{o,c}(u,v)\, X_c(s\,i + u - p,\; s\,j + v - p)

Each output map sums input windows across all channels with weights shared across all positions.

Symbols: k: kernel size, s: stride, p: padding, C_in: input channels

Convolution output size Convolution output size

H_{out} = \left\lfloor \frac{H_{in} + 2p - k}{s} \right\rfloor + 1

Determines the spatial dimensions of the output map.

Symbols: H_in: height, k: kernel, s: stride, p: padding

ReLU Rectified linear unit

f(x) = \max(0, x)

A non-saturating activation that speeds up training compared with tanh.

Local response normalisation Local response normalization

b^{i}_{x,y} = a^{i}_{x,y} \Big/ \left(k + \alpha \sum_{j=\max(0,i-n/2)}^{\min(N-1,i+n/2)} \left(a^{j}_{x,y}\right)^2\right)^{\beta}

Normalisation across adjacent channels; in the paper k=2, n=5, α=10⁻⁴, β=0.75.

Symbols: N: number of channels

Applications

Related models

  • Predecessor of LeNet-5 — A direct extension of the LeNet idea on a larger scale. Compare
  • Successor of VGG-16 — VGG deepened the network with uniform 3×3 kernels. Compare

References

  1. Original paper Alex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton. (2012). ImageNet classification with deep convolutional neural networks. NeurIPS 2012; republished in Communications of the ACM, 60(6), 84–90 (2017). doi:10.1145/3065386 Verified
Scientific review note: A first scientific draft based on the original paper and reference implementations; it needs review by a specialist before final approval.

Version 1 — last updated 2026-11-15.