ArticleslgStudy

computer science

LeNet

LeNet is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand LeNet rather than just read about it. In short: LeNet is a series of convolutional neural network architectures created by a research group at AT&T Bell Laboratories between of the period of 1988 to 1998, centered around Yann LeCun. They were designed for reading small grayscale images of handwritten digits and letters, and were used in ATMs for reading cheques.

LeNet — main illustration
LeNet — illustration

Key takeaways

  • LeNet belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect LeNet to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of LeNet from memory before moving on to harder problems.

Reference excerpt

LeNet is a series of convolutional neural network architectures created by a research group at AT&T Bell Laboratories between of the period of 1988 to 1998, centered around Yann LeCun. They were designed for reading small grayscale images of handwritten digits and letters, and were used in ATMs for reading cheques. Convolutional neural networks are a kind of feed-forward neural network whose artificial neurons can respond to a part of the surrounding cells in the coverage range and perform well in large-scale image processing. LeNet-5 was one of the earliest convolutional neural networks and was historically important during the development of deep learning. In general, when LeNet is referred to without a number, it refers to the 1998 version, LeNet-5, which is the most well-known version.

Development history

In October 1988, LeCun joined the Adaptive Systems Research Department at AT&T Bell Laboratories in Holmdel, New Jersey, headed by Lawrence D. Jackel.In late November 1988, John S. Denker et al. published a neural network design for recognizing handwritten zip codes. However, its first few layers of connections were hand-tuned. In 1989, Yann LeCun et al. at Bell Labs first applied the backpropagation algorithm to practical applications, and believed that the ability to learn network generalization could be greatly enhanced by providing constraints from the task's domain. He combined a convolutional neural network trained by backpropagation algorithms to read handwritten numbers and successfully applied it in identifying handwritten zip code numbers provided by the US Postal Service. This was the prototype of what later came to be called LeNet-1. In the same year, LeCun described a small handwritten digit recognition problem in another paper, and showed that even though the problem is linearly separable, single-layer networks exhibited poor generalization capabilities. When using shift-invariant feature detectors on a multi-layered, constrained network, the model could perform very well. He believed that these results proved that minimizing the number of free parameters in the neural network could enhance the generalization ability of the neural network. In 1989, their paper introducing LeNet-1 described the application of backpropagation networks in handwritten digit recognition again. They only performed minimal preprocessing on the data, and the model was carefully designed for the task and was highly constrained. The input data consisted of images, each containing a number, and the test results on the postal code digital data provided by the US Postal Service showed that the model had an error rate of only 1% and a rejection rate of about 9%. Their research continued for the next four years, and in 1994 the MNIST database was developed, for which LeNet-1 was too small, hence a new LeNet-4 was trained on it. A year later the AT&T Bell Labs collective reviewed various methods on handwritten character recognition in paper, using standard handwritten digits to identify benchmark tasks. These models were compared and the results showed that the latest network outperformed other models. By 1998 Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner were able to provide examples of practical applications of neural networks, such as two systems for recognizing handwritten characters online and models that could read millions of checks per day, which includes a description of LeNet-5. The research achieved great success and aroused the interest of scholars in the study of neural networks. While the architecture of the best performing neural networks today are not the same as that of LeNet, the network was the starting point for a large number of neural network architectures, and also brought inspiration to the field.

Architecture

LeNet has several common motifs of modern convolutional neural networks, such as convolutional layer, pooling layer and full connection layer.

Every convolutional layer includes three parts: convolution, pooling, and nonlinear activation functions Using convolution to extract spatial features (Convolution was called receptive fields originally) Subsampling average pooling layer tanh activation function fully connected layers in the final layers for classification Sparse connection between layers to reduce the complexity of computation In 1989, LeCun et al. published a report, which contained "Net-1" to "Net-5". There were many subsequent refinements, up to 1998, and the naming is inconsistent. Generally, when people speak of "LeNet" they refer to the 1998 LeNet, also known as "LeNet-5". LeNet-1, 4, 5 had been referred to in, but it is unclear what LeNet-2, LeNet-3 might refer to.

1988 Net The first neural network published by the LeCun research group was in 1988. It was a hybrid approach. The first stage scaled, deskewed, and skeletonized the input image. The second stage was a convolutional layer with 18 hand-designed kernels. The third stage was a fully connected network with one hidden layer. The dataset was a collection of handwritten digit images extracted from actual U.S. Mail, which was the same dataset used in the famed 1989 report.

Net-1 to Net-5 Net-1 to Net-5 were published in a 1989 report. The last layer of all of them were fully connected. The original paper does not explain the padding strategy. All cells have an independent bias, including the output cells of convolutional layers.

… excerpt ends here. Continue reading the full article.

Illustrations

LeNet: LeNet-5 architecture (overview)
LeNet-5 architecture (overview)
LeNet: Sample images from MNIST dataset, published in 1994. Before 1994, the LeNet series was mainly trained and tested on images similar to this. After 1994, the LeNet series was mainly trained and tested on this dataset.
Sample images from MNIST dataset, published in 1994. Before 1994, the LeNet series was mainly trained and tested on images similar to this. After 1994, the LeNet series was mainly trained and tested on this dataset.
LeNet: Yann LeCun in 2018
Yann LeCun in 2018
LeNet: Comparison of the LeNet and AlexNet convolution, pooling, and dense layers(AlexNet image size should be 227×227×3, instead of 224×224×3, so the math will come out right. The original paper said different numbers, but Andrej Karpathy, the former head of computer vision at Tesla, said it should be 227×227×3 (he said Alex didn't describe why he put 224×224×3). The next convolution should be 11×11 with stride 4: 55×55×96 (instead of 54×54×96). It would be calculated, for example, as: [(input width 227 - kernel width 11) / stride 4] + 1 = [(227 - 11) / 4] + 1 = 55. Since the kernel output is the same length as width, its area is 55×55.)
Comparison of the LeNet and AlexNet convolution, pooling, and dense layers(AlexNet image size should be 227×227×3, instead of 224×224×3, so the math will come out right. The original paper said different numbers, but Andrej Karpathy, the former head of computer vision at Tesla, said it should be 227×227×3 (he said Alex didn't describe why he put 224×224×3). The next convolution should be 11×11 with stride 4: 55×55×96 (instead of 54×54×96). It would be calculated, for example, as: [(input width 227 - kernel width 11) / stride 4] + 1 = [(227 - 11) / 4] + 1 = 55. Since the kernel output is the same length as width, its area is 55×55.)
LeNet: LeNet-5 architecture block diagram
LeNet-5 architecture block diagram

Worked examples

Example 1 — a first encounter with LeNet

Start with the simplest possible case. Write down what LeNet claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to LeNet before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about LeNet ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of LeNet

In research
LeNet appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses LeNet in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
LeNet is common in secondary-school and first-year university syllabi. It links to neighbouring topics 1988 in artificial intelligence, Artificial neural networks, so understanding it makes those chapters shorter.
In everyday life
Look for LeNet outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “LeNet” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study LeNet in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what LeNet means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain LeNet out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is LeNet in simple terms?

LeNet is a series of convolutional neural network architectures created by a research group at AT&T Bell Laboratories between of the period of 1988 to 1998, centered around Yann LeCun. They were designed for reading small grayscale images of handwritten digits and letters, and were used in ATMs for…

Why does LeNet matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study LeNet?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on LeNet.

Tags

  • 1988 in artificial intelligence
  • Artificial neural networks

Keep exploring