CNN Architectures Needs review

LeNet-5

Year of appearance
1998
Researchers
Yann LeCun, Léon Bottou, Yoshua Bengio, Patrick Haffner
Organisation
AT&T Labs
Architecture type
Convolutional neural network
Learning mechanism
supervised
Tasks
Image classification, Handwritten digit recognition

An early convolutional network for recognising handwritten digits, combining convolution, subsampling and fully connected layers in one architecture trained by backpropagation.

Architecture diagram

Displayed configuration: Original LeNet-5 (LeCun et al. 1998) — About seven learnable layers on 32×32 images.

Layer table (9 nodes)
LayerTypeInputOutputRepetitionParametersFormulaMACs
Inputinput1 × 32 × 3210—
C1: convolution 6@5×5conv1 × 32 × 326 × 28 × 2811566·(5·5·1) + 6117,600
S2: 2×2 subsamplingpool6 × 28 × 286 × 14 × 141126 multiplier coefficients + 6 biases—
C3: convolution 16@5×5 (partial connections)conv6 × 14 × 1416 × 10 × 1011,51660 map connections·25 + 16 biases150,000
S4: 2×2 subsamplingpool16 × 10 × 1016 × 5 × 513216 + 16—
C5: convolution 120@5×5conv16 × 5 × 5120 × 1 × 1148,120120·(5·5·16) + 12048,000
F6: fully connected 84fc12084110,16484·120 + 8410,080
Output: 10 RBF unitsrbf84101084·10 = 840 fixed values (±1), not trained—
Class (0–9)output101010—

Configuration figures: Original LeNet-5 (LeCun et al. 1998)

Parameters (computed from the layers)60,000 (≈60K)
Parameters (published in the source)60,000 (≈60K)
MACs325,680 (≈325.68K)
FLOPs ≈ 2 × MACs651,360 (≈651.36K)
Input shape
1×32×32
Output shape
10
Depth
7 layers (excluding the input)
Complexity
Linear in the number of pixels
Parameters note
The paper states about 60,000 trainable parameters; the table total here is exactly 60,000 (the fixed RBF weights are not counted).
MACs note
Layers C1, C3, C5 and F6 only; the subsampling and RBF operations are not counted.
Calculation assumptions: Parameter counts from section II.B of the original paper; C3 uses a partial connection table (60 connections).

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 evolved through LeCun's work from 1989, was presented in full in 1998 in the Proceedings of the IEEE, and was used commercially to read bank cheques.

The problem it addresses

Recognising handwritten digits robustly to distortions and shifts without hand-engineered features.

Core idea

Local receptive fields, shared weights and subsampling give the network some shift invariance with a small number of parameters.

Architecture description

C1 (6 maps 5×5) → S2 (subsampling) → C3 (16 maps, partial connections) → S4 → C5 (120) → F6 (84) → an RBF output of ten units.

Data flow

32×32 image → 28×28 maps → 14×14 → 10×10 → 5×5 → vector of 120 → 84 → 10 distances, the smallest of which determines the class.

Inputs

A 32×32 greyscale image.

Outputs

Ten scores (distances) for classes 0–9.

Training procedure

Backpropagation with a diagonal version of the Levenberg-Marquardt method on 60,000 MNIST images.

Loss functions

A criterion based on RBF distances (a variant of MAP) that lowers the penalty of the correct class and raises the penalty of the wrong classes.

Computational complexity

About 0.34 million multiply-adds per image.

Computational requirements

Very low.

Advantages

  • Small number of parameters
  • Proved the effectiveness of convolution in practice
  • Fast on simple hardware

Limitations

  • Small for complex natural images
  • tanh/sigmoid functions slow deep training
  • The partial C3 table is not used in modern networks

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

Scaled activation Scaled tanh

f(a) = A \tanh(S\,a),\quad A = 1.7159

The activation function used in the paper.

Symbols: A: amplitude, S: slope

Applications

Related models

References

  1. Original paper Y. LeCun, L. Bottou, Y. Bengio, P. Haffner. (1998). Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11), 2278–2324. doi:10.1109/5.726791 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.