The Fast Track AI Subscribe

Home / Blog

Understanding AI

Deep learning: what it is, how it works and where it is used

In 2024, two Nobel Prizes went to work built on neural networks: the Nobel Prize in Physics, awarded to John Hopfield and Geoffrey Hinton, and the Nobel Prize in Chemistry, half of which went to the creators of AlphaFold2. The first honours the foundations of deep learning, the second one of its biggest successes. So what is deep learning? It is a branch of machine learning that uses artificial neural networks with many layers. Each layer picks up slightly more abstract clues than the one before, so the network can learn straight from raw images, sound or text. This guide explains what deep learning is, how it learns, how it differs from classic machine learning, its main architectures, where you meet it and where it falls short.

Updated on 7 min read

Deep learning at a glance

QuestionShort answer
Also calledDeep structured learning, or deep machine learning.
Core ideaA neural network with many layers works out on its own which clues in the data matter.
Why "deep"Because of the number of hidden layers, from a handful to several hundred.
What it needsLots of data, graphics processors (GPUs) and computing time.
ExamplesFace unlock, voice typing, translation, ChatGPT, image generators.
Main drawbackIt is expensive to train and struggles to explain its decisions.

What is deep learning? The definition

Deep learning is a type of machine learning in which a neural network made of stacked layers learns from large amounts of data. The word "deep" does not mean the machine understands things deeply. It refers to the number of layers.

Take a photo of a cat. The first layer spots contrasts and edges, the next one simple shapes (a curve, a point), then patterns (an ear, an eye), and the last layer concludes "cat". Nobody programmed those steps: the network discovers them by looking at thousands of examples.

That is the big difference from conventional software, and even from part of machine learning: you do not tell the machine what to look at. You give it the raw data and the right answer, and it builds its own criteria.

How deep learning works, in 5 steps

A neural network is a chain of very simple calculations. Each artificial neuron adds up the values it receives, each multiplied by a "weight", and passes the result to the next layer. Learning means tuning those weights.

  1. Feed in an example: an image enters the first layer as numbers (the value of each pixel).
  2. Make a prediction: the numbers flow through every layer, which output an answer such as "70% dog".
  3. Measure the error: the answer is compared with the correct one ("cat") and the gap is calculated.
  4. Adjust the weights: backpropagation sends the error back from the last layer to the first and tells each weight which way to move.
  5. Repeat: the process runs over millions of examples until mistakes become rare on images the network has never seen.

These calculations run in parallel on graphics processors, or GPUs. In 2012 the AlexNet network, with 60 million parameters, took five to six days to train on two consumer graphics cards.

Deep learning vs machine learning: what is the difference?

Deep learning is part of machine learning, which is itself part of artificial intelligence. All deep learning is machine learning, but not the other way round. In practice:

CriterionClassic machine learningDeep learning
DataWell-structured tables; a few thousand examples can be enoughRaw images, sound and text, often millions of examples
Choosing the cluesAn expert picks the useful variables (floor area, neighborhood…)The network finds the relevant clues itself
HardwareAn ordinary computerGPUs, often many of them
ExplainabilityOften readable (decision tree, regression)Hard: millions or billions of weights
StrengthsForecasts on business dataVision, speech, language, content generation

To predict which customers will cancel from a spreadsheet, a classic algorithm often does just as well, and faster. To recognize a voice or describe a photo, deep learning has no real rival.

The main deep learning architectures

ArchitectureIdeaTypical uses
Convolutional network (CNN)Scans the image patch by patch with filtersPhotos, medical imaging, self-driving cars
Recurrent network (RNN, LSTM)Keeps a memory of earlier items in a sequenceSpeech, time series, older translators
TransformerAttention links every word to every other wordLLMs such as ChatGPT, translation
Generative models (GAN, diffusion)Learn to produce new, realistic dataImages, video, synthetic voices

The LSTM network was proposed in 1997 by Sepp Hochreiter and Jürgen Schmidhuber in a Neural Computation paper: it can link pieces of information more than 1,000 steps apart. The Transformer, introduced in 2017 by Google researchers in "Attention Is All You Need", largely replaced it for language. It underpins almost every LLM and most of generative AI.

Where deep learning comes from: 4 key dates

Deep learning examples in everyday life

The limits of deep learning

When deep learning is not the right tool

Deep learning is not always the best choice. If your data fits in a table of a few thousand rows, a classic machine learning model will be faster to train, cheaper and easier to explain. If every decision must be justified, a loan refusal for example, a readable model is easier to defend. And if the rule is already known ("free shipping on orders over 50"), plain code does the job. Deep learning wins when the data is images, sound or text, and there is a lot of it.

Frequently asked questions

What is the difference between machine learning and deep learning?

Deep learning is a branch of machine learning. Classic machine learning often relies on variables chosen by an expert and works well on tables of data. Deep learning uses deep neural networks that find the useful clues themselves, which makes it strong on images, sound and text, at the cost of more data and computing.

Is ChatGPT deep learning?

Yes. ChatGPT runs on a large language model, a deep Transformer neural network trained on huge amounts of text. It is one of the best-known applications of deep learning.

Why is it called "deep" learning?

The word refers to the number of layers in the neural network. A simple network has one or two hidden layers, while a deep one has more, often dozens or even hundreds. It does not mean the machine deeply understands what it processes.

What are some examples of deep learning?

Face unlock on your phone, voice typing, machine translation, assistants such as ChatGPT and image generators. In medicine it also helps read X-rays, and AlphaFold2 predicts the shape of proteins.

Do you need to code to do deep learning?

Not to use tools built on it: you can use an assistant or a translator without programming. To train your own models, you need some Python, linear algebra and statistics, then a library such as PyTorch or TensorFlow.

Sources

  1. The Nobel Prize in Physics 2024, press releaseRoyal Swedish Academy of Sciences
  2. The Nobel Prize in Chemistry 2024, press releaseRoyal Swedish Academy of Sciences
  3. ImageNet Classification with Deep Convolutional Neural NetworksNeurIPS 2012 (Krizhevsky, Sutskever, Hinton)
  4. Long Short-Term MemoryNeural Computation, 1997 (Hochreiter, Schmidhuber)
  5. Attention Is All You NeedarXiv (Vaswani et al., 2017)

Related articles

Reference guideArtificial intelligence: what AI is, how it works and where it is used

The essentials of AI, every Wednesday.

Free, once a week, on Wednesday. A 5-minute read.