Skip to content
atlas

Deep learning

Machine learning that uses neural networks with many stacked layers, the approach behind modern image, speech and language tools.

Draft - this entry has not been reviewed yet.

Formal

A kind of machine learning that trains neural networks with many layers, where each layer builds more general features from the output of the layer below, learned directly from raw data.

In plain English

Like a line of workers where the first notices edges, the next shapes, the next faces, and each passes a richer picture up the line.

In practice

A region's hospitals use a deep learning model, trained on hundreds of thousands of X-ray images, to mark possible fractures for a doctor to check.

Why it matters

It brought a large jump in what AI can do from about 2012, but the models need huge amounts of data and computing power, and their reasoning is very hard to explain.

Technical deep dive

The defining idea is representation learning: instead of engineers hand-crafting features (edge detectors, MFCCs for audio, n-gram counts for text) and feeding them to a shallow model, a deep network learns a hierarchy of features end to end from raw input, with all layers optimised jointly by backpropagation against a single loss. Depth matters because composing many simple nonlinear transformations can represent some functions far more compactly than a shallow network of comparable size.

The ideas are old; what changed around 2012 was the combination of large labelled datasets, GPU computation and a handful of training techniques. AlexNet (Krizhevsky, Sutskever and Hinton) won the ImageNet ILSVRC 2012 challenge with a top-5 error of about 15.3 percent against about 26.2 percent for the runner-up, trained on two consumer GPUs and using ReLU activations, dropout and data augmentation. Speech recognition had seen a similar shift a year or two earlier. ResNet (He et al., 2015) introduced residual (skip) connections, which let networks of 100+ layers train by giving gradients a direct path backwards. The transformer (Vaswani et al., 2017) then replaced recurrence with attention and became the default architecture for language, and increasingly for vision and audio.

Since around 2020, empirical scaling laws have shaped practice: Kaplan et al. (2020) and Hoffmann et al. (2022, "Chinchilla") showed that loss falls roughly as a power law in parameters, data and compute, with Chinchilla suggesting on the order of 20 training tokens per parameter for compute-optimal training. This drove the move to foundation models trained once with self-supervision and adapted many times through fine-tuning or prompting.

Known weaknesses follow from the method. Models are data- and compute-hungry, are poorly calibrated out of distribution, are vulnerable to adversarial examples (small, crafted input perturbations that flip outputs), and can exploit spurious correlations in the training data, for example a hospital-specific marker on X-rays rather than the pathology. Explainability remains partial. Many tabular problems are still solved better by gradient-boosted trees, so "deep" is not automatically "better".

Terminology: deep learning is a subset of machine learning that uses neural networks with multiple hidden layers; there is no fixed layer threshold. The neural network is the model family, while deep learning refers to the practice of training deep instances of it at scale, including the surrounding toolkit of optimisers, normalisation, regularisation and accelerator hardware.

What to learn first

Everything this builds on, foundations first.

  1. Neural network
  2. →Deep learning

Relationships

Don't confuse with
Feature engineering

Sources & further reading

Where this data comes from

This entry was drafted by an AI from the sources above and has not yet been checked by a person. Treat it as a starting point, and check anything important against the sources.

See the review queueSuggest a correction on GitHubThis term as JSON

Mentioned in

Check yourself

Loading…

Atlas is in beta.