T1#research
LeNet — The Convolutional Network That Read Zip Codes and Checks

Metadata
- Date
- Decade
- 1980s
- Tier
- T1
- Timelines
- A History of Artificial Intelligence
- Sources
- 04
- Connections
- 05
- Tags
- #research
LeNet is the name of a line of convolutional neural networks (CNNs) developed by Yann LeCun and colleagues at AT&T Bell Laboratories. The starting point is "Backpropagation Applied to Handwritten Zip Code Recognition", published in Neural Computation in December 1989 (vol. 1, no. 4, pp. 541–551) by seven authors including LeCun, Bernhard Boser and John S. Denker. It trained a network with backpropagation to read handwritten zip-code digits from US mail directly from the image. The best-known version, LeNet-5, was described in detail in a November 1998 paper in the Proceedings of the IEEE, and according to that paper a check-reading system built on this line of work was used by several US banks. In 2019 ACM cited LeCun, in its Turing Award announcement, as the first to train a CNN system on images of handwritten digits.
The 1989 paper — reading zip codes
The 1989 abstract states that the ability of learning networks to generalise can be greatly enhanced by providing constraints from the task domain, and that the paper shows how such constraints can be built into the architecture of a backpropagation network. The task was handwritten zip-code digits provided by the US Postal Service, and a single network learned the entire recognition operation, from the normalised image of a character to the final classification.
| Item | Detail |
|---|---|
| Authors | Y. LeCun, B. Boser, J. S. Denker, D. Henderson, R. E. Howard, W. Hubbard, L. D. Jackel (AT&T Bell Laboratories, Holmdel, New Jersey) |
| Published in | Neural Computation vol. 1, no. 4, pp. 541–551 (December 1989) |
| Data | 9,298 digits segmented from zip codes on mail passing through the Buffalo, New York, post office (7,291 for training, 2,007 for testing) |
| Input | Images normalised to 16×16 pixels |
| Size | 1,256 units, 64,660 connections, 9,760 independent parameters |
| Result | 5.0% test error (102 mistakes); 12.1% rejected to reach a 1% error rate |
| Training | 23 passes on a SUN-4/260, about three days |
The key ideas were weight sharing and feature maps. So that the same feature — a line ending, a corner — could be found wherever it appeared in the image, small detectors with identical weights were laid across the whole image. This cut the number of free parameters sharply while keeping many connections. The paper reports that fully connected, unconstrained networks it tried generalised quite badly, and notes that some of the learned detectors looked remarkably like feature detectors found in biological vision systems.
Finding the zip code on the envelope and cutting it into single digits was done by Postal Service contractors. The paper also reports an implementation with an off-the-shelf DSP board attached to a PC, which recognised digits captured by a camera at 10 to 12 characters per second.
LeNet-5 and MNIST (1998)
In 1998 LeCun, Léon Bottou, Yoshua Bengio and Patrick Haffner published "Gradient-Based Learning Applied to Document Recognition" in the Proceedings of the IEEE (vol. 86, no. 11, pp. 2278–2324). The LeNet-5 described there has seven layers, not counting the input, and according to the paper 345,308 connections but only 60,000 trainable parameters, thanks to weight sharing.
| Item | Detail |
|---|---|
| Data | MNIST (60,000 training images; a 10,000-image test subset used in the experiments) |
| Test error | 0.95%; 0.8% when trained on distorted images |
| Origin of the data | Rebuilt by mixing two databases from the US National Institute of Standards and Technology (NIST) |
How the MNIST (Modified NIST) dataset built for this paper came about is itself a lesson in how training data shapes results. According to the paper, Special Database 3, which NIST had designated for training, was collected among Census Bureau employees, while Special Database 1, designated for testing, was collected among high-school students, and the former was much cleaner and easier to recognise. So that conclusions would not depend on which set was used for what, LeCun and colleagues remixed the two. The question of whose writing a machine learns from, and how that decides what it does well or badly, would later become a public issue in face recognition and language models.
Reading bank checks
The 1998 paper also describes a system for reading the amount on bank checks. The abstract says it is deployed commercially and reads several million checks per day. Another passage says the system was integrated into NCR's line of check-recognition systems for the banking industry and had been fielded in several US banks since June 1996. Yet the paper's introduction speaks of millions of checks per month, so the scale figures are not consistent even within the paper. All of them are the developers' own descriptions.
According to the paper, an independent test by systems integrators in 1995 found the system superior to other commercial courtesy-amount reading systems. In other words, LeNet did not suddenly replace purely manual work; it entered banking by improving the accuracy of automatic reading that already existed. The paper gives no figure for how much manual work was reduced. ACM's 2019 Turing Award announcement also credits Bengio with combining neural networks with hidden Markov models, ideas that were incorporated into a system used by AT&T and NCR to read handwritten checks.
What came after
According to ACM's announcement, convolutional neural networks are today an industry standard in computer vision and are also used in speech recognition, speech synthesis, image synthesis and natural language processing, with applications from autonomous driving and medical image analysis to voice assistants and information filtering. The 1998 paper's conclusion observed that increasing the role of learning had invariably improved recognition systems, and that convolutional networks had eliminated the need for hand-crafted feature extractors.
The road from LeNet to the deep-learning era was not a straight line, though. What made CNNs widely recognised as the mainstream of image recognition was AlexNet in 2012, trained on GPUs with large amounts of data, which in turn rested on the construction of ImageNet. LeNet's structure of convolution and weight sharing carried straight into it. On the risks of AI, LeCun has taken a different position from Hinton, with whom he shared the Turing Award (see Hinton's departure from Google).
Questions this page answers
- What is LeNet?
- A line of convolutional neural networks developed by Yann LeCun and colleagues at AT&T Bell Laboratories. A 1989 paper used it to read handwritten zip codes from US mail, and a 1998 paper described LeNet-5 in detail.
- How accurate was the 1989 network?
- It had a 5.0% error rate (102 mistakes) on 2,007 test digits. Holding the error rate to 1% required rejecting 12.1% of the digits.
- Was LeNet actually used?
- According to the 1998 paper, a check-amount reading system using the technique was built into NCR's products and fielded in several US banks from June 1996. The abstract says it reads several million checks per day, but the introduction says millions per month, so the figures are not consistent within the paper.
- What is MNIST?
- A dataset LeCun and colleagues built for the 1998 paper by remixing two handwritten-digit databases from the US National Institute of Standards and Technology (NIST). It has 60,000 training images, and the paper used 10,000 test images. The original data had been collected from Census Bureau employees and high-school students.
Sources
The abstract, the 9,298 digits from the Buffalo post office, network size, 5.0% test error and 12.1% rejection, training on a SUN-4/260 in about three days, similarity to biological vision, the DSP implementation
LeNet-5's structure and 60,000 parameters, how MNIST was built and where its data came from, 0.95% and 0.8% error, integration into NCR systems and bank use from June 1996, the differing volume figures in the abstract and introduction
PrimaryFathers of the Deep Learning Revolution Receive ACM A.M. Turing Award — ACM, Mar 27, 2019
ACM's statement that LeCun was the first to train a CNN on images of handwritten digits, the uses of CNNs, Bengio's work and AT&T/NCR check reading
Last updated: