Skip to content
Cosvexa – Cosvexa home

Research · Foundations

Deep learning explained

Deep learning is a branch of machine learning that uses neural networks with many layers to learn directly from raw data such as pixels, sound or text. Each layer turns its input into a slightly more abstract representation, so the network discovers useful features on its own instead of relying on hand-designed ones. It powers modern image recognition, speech recognition and large language models.

Cosvexa team · Published

Abstract editorial illustration of stacked translucent layers, each turning scattered dots into more structured shapes, ending in a clear simple form at the top.

Key points

  • Deep learning is machine learning with many-layered neural networks trained end to end.
  • Layers learn a hierarchy of features, from simple patterns to abstract concepts.
  • Backpropagation and gradient descent train all layers together from one loss.
  • Large datasets, GPUs and better training tricks made it practical around 2012.
  • It needs much data and compute, and its decisions are hard to inspect.

What deep learning is

Deep learning is a family of machine learning methods built on artificial neural networks with several, and often very many, layers between input and output. "Deep" refers to that depth: the number of successive transformations the data goes through. LeCun, Bengio and Hinton's 2015 review in *Nature* describes deep learning as allowing models composed of multiple processing layers to learn representations of data with multiple levels of abstraction.

The key word is representation. In classical machine learning, people usually design the features a model sees. To recognise faces, an engineer might compute edge orientations or distances between landmarks and feed those numbers to a classifier. In deep learning, the network takes raw pixels and learns its own features. The early layers end up detecting simple things like edges and colour blobs; middle layers combine them into textures and parts; later layers respond to whole objects. Nobody programs this hierarchy. It emerges from training on the task.

How deep learning works

A deep network is a long chain of simple operations. Each layer multiplies its input by a matrix of learned weights, adds a bias, and applies a nonlinear activation function such as ReLU (which replaces negative values with zero). Stacking these layers lets the network represent very complicated functions: without the nonlinearity, any stack of layers would collapse into a single linear map.

Training is end to end. The whole network produces an output, a loss function compares it with the target, and the algorithm called backpropagation computes how much every weight in every layer contributed to the error. An optimiser such as stochastic gradient descent or Adam then adjusts all the weights slightly. Repeated over millions of examples, this process tunes every layer at once toward the same goal.

A concrete example: recognising handwritten digits

  1. 1

    Input

    A 28 × 28 greyscale image of a handwritten digit is flattened or kept as a grid of 784 brightness values.

  2. 2

    Early layers

    Convolutional filters slide across the image and respond to short strokes and edges at different angles.

  3. 3

    Middle layers

    Combinations of strokes become loops, corners and line endings, the parts that distinguish a 6 from an 8.

  4. 4

    Output layer

    Ten output units, one per digit, produce scores that a softmax turns into probabilities.

  5. 5

    Learning

    If the network says 3 when the label is 8, the loss is high; backpropagation adjusts the filters in every layer so that 8-like inputs push the 8 output higher next time.

After training on tens of thousands of labelled digits, such a network classifies new handwriting with high accuracy, and inspecting its first-layer filters shows edge detectors that no one designed by hand.

The main deep learning architectures

Different data have different structure, and deep learning has developed architectures that exploit it.

ArchitectureCore ideaTypical dataLandmark
Multilayer perceptron (MLP)Fully connected layersFixed-size vectorsBackpropagation work of the 1980s
Convolutional neural network (CNN)Small shared filters scanned across the inputImages, audio spectrogramsLeNet (1998), AlexNet (2012), ResNet (2015)
Recurrent neural network (RNN, LSTM)A hidden state carried from step to stepSequences such as text and speechLSTM (1997)
TransformerAttention lets every position look at every otherText, code, images, audio"Attention Is All You Need" (2017)
Diffusion modelLearn to reverse a gradual noising processImages, video, audioDDPM (2020)

Since 2017 the transformer has become the default architecture for language and increasingly for vision and audio. Large language models are deep transformers with billions of parameters trained on very large text corpora.

Deep learning versus classical machine learning in practice

Deep learning is not automatically the right tool. The choice depends mostly on the kind of data and how much of it there is.

QuestionClassical machine learningDeep learning
Where do features come from?Designed by people from domain knowledgeLearned from raw data by the network
Typical dataTables of numbers and categoriesImages, audio, text, video
Data needed from scratchHundreds to thousands of examples can workUsually far more, unless starting from a pretrained model
HardwareA laptop CPU is often enoughGPUs or other accelerators for training
Explaining a predictionOften straightforward (coefficients, tree rules)Hard; needs dedicated interpretability tools

In practice the two are often combined. A deep network can turn text or images into numerical embeddings, and a simple classical model can then be trained on top of those embeddings with little data.

Why deep learning took off when it did

Neural networks are old. The perceptron dates from 1958 and backpropagation was popularised in 1986. Yet for long stretches, deep networks were hard to train and other methods often worked better. Several things changed in the 2000s and early 2010s.

  • Better training methods. In 2006 Hinton, Osindero and Teh showed a way to train deep belief networks layer by layer, which revived interest in deep models. Later, simpler ideas such as ReLU activations, careful weight initialisation, dropout and batch normalisation made it possible to train deep networks directly with backpropagation.
  • Data. Large labelled datasets became available. ImageNet, with over a million labelled training images in its competition subset, gave vision models enough examples to learn from.
  • Compute. Graphics processors (GPUs) turned out to be well suited to the matrix multiplications at the heart of neural networks, cutting training times dramatically compared with ordinary processors.

The turning point most often cited is AlexNet. In the 2012 ImageNet competition, Krizhevsky, Sutskever and Hinton's deep convolutional network, trained on two GPUs, reached a top-5 test error of 15.3%, against 26.2% for the second-best entry. Within a few years, deep networks led in image recognition, speech recognition and machine translation. In 2015, ResNet introduced residual connections that let networks with over a hundred layers train reliably, an idea now used in almost every deep architecture, including transformers.

Why it matters

Deep learning changed what is practical in three ways. First, it removed much of the manual feature engineering that limited earlier systems, so the same general recipe works across images, sound and language. Second, its performance tends to keep improving as data, model size and compute grow, a pattern that research on scaling laws later measured for language models. Third, a network trained on one large task can be reused: its learned representations transfer to related tasks with a little extra training, which is the basis of pretraining and fine-tuning.

Most of the AI products people use daily rest on deep learning: photo search, voice assistants, automatic captions, translation, recommendation feeds, and chat assistants built on language models.

Limits and common misconceptions

  • "Deep learning works like the brain." Artificial neurons are loosely inspired by biological ones, but the resemblance is shallow. Backpropagation, in particular, is not known to be how brains learn.
  • "Deeper is always better." Depth helps only up to the point the data and training method support. Without tricks like residual connections, very deep networks can become harder to train, not easier.
  • Data and compute hunger. Training from scratch typically needs large labelled or self-supervised datasets and significant hardware. Small-data problems often do better with simpler models or with a pretrained network.
  • Opacity. A deep network's millions of weights do not explain themselves. Research on interpretability is making progress, but most deployed models remain hard to audit.
  • Brittleness. Networks can fail on inputs that differ slightly from their training data, and carefully crafted changes that are invisible to people (adversarial examples) can change their outputs.
  • Confident errors. A network's output probabilities are not reliable measures of how likely it is to be right unless they are explicitly calibrated.

Where deep learning is going

Current work concentrates on a few directions. Models are becoming multimodal, handling text, images, audio and video in one network. Efficiency research, such as quantisation, distillation and sparse mixture-of-experts layers, aims to deliver the same capability with less memory and energy. Self-supervised pretraining on unlabelled data has reduced the dependence on hand-labelled datasets. And a growing body of research asks how to make deep networks more reliable, more interpretable and better at reasoning over many steps.

Whether deep learning alone can reach broad, human-level competence is an open debate. What is settled is that it is the most successful approach to perception and language that the field has found so far, and that its main ingredients, layered representations trained end to end with gradient descent, underpin nearly every frontier model.

Frequently asked questions

What is the difference between deep learning and machine learning?

Deep learning is a subset of machine learning. It uses neural networks with many layers that learn features directly from raw data, while many other machine learning methods rely on features designed by people. Deep learning usually needs more data and compute but excels at images, audio and text.

How many layers make a network deep?

There is no official threshold. In practice, networks with more than a couple of hidden layers are called deep, and modern models often have dozens or more than a hundred layers. What matters is that multiple layers build up increasingly abstract representations.

Why does deep learning need GPUs?

Training and running neural networks consist mostly of large matrix multiplications, which GPUs perform in parallel far faster than general-purpose CPUs. Specialised accelerators such as TPUs serve the same purpose.

Is ChatGPT deep learning?

Yes. Chat assistants such as ChatGPT are built on large language models, which are deep transformer networks trained first on large amounts of text and then further trained to follow instructions.

Can deep learning work with small datasets?

Training a deep network from scratch on a small dataset usually overfits. A common solution is transfer learning: start from a network pretrained on a large dataset and fine-tune it on the small one.

References

  1. Yann LeCun, Yoshua Bengio and Geoffrey Hinton (2015). Deep learning
  2. Ian Goodfellow, Yoshua Bengio and Aaron Courville (2016). Deep Learning
  3. Geoffrey E. Hinton, Simon Osindero and Yee-Whye Teh (2006). A Fast Learning Algorithm for Deep Belief Nets
  4. Alex Krizhevsky, Ilya Sutskever and Geoffrey E. Hinton (2012). ImageNet Classification with Deep Convolutional Neural Networks
  5. Kaiming He, Xiangyu Zhang, Shaoqing Ren and Jian Sun (2015). Deep Residual Learning for Image Recognition

More in this section

Start free: 50 Cosvexa-1 questions a day

Every major model in one workspace; on the Free plan Cosvexa-1 answers 50 questions a day. No card needed to start.