# Deep learning

> Machine learning with many-layered neural networks, behind most recent AI leaps.

- Level: Intermediate
- Topics: AI
- URL: https://tidbit.legios.com.ar/deep-learning/
- In Spanish: [Deep learning](https://tidbit.legios.com.ar/es/deep-learning/)

**Deep learning** is machine learning done with neural networks that have many layers stacked one after another. 'Deep' refers to that depth, not to any profound understanding. Each layer takes the output of the previous one and turns it into something a bit more abstract, so the network builds its own understanding of the data step by step.

In an image model, the first layers end up reacting to simple things like edges and color patches, the middle layers to textures and shapes like an eye or a wheel, and the last layers to whole concepts like 'cat' or 'bicycle'. Nobody programs those stages; they emerge during training. That is the big change from older machine learning, where people had to decide by hand which features of the data mattered.

The ideas are decades old, but deep learning only took off around 2012, when a network called AlexNet won an image recognition contest by a wide margin. Three things had come together: huge labeled datasets, GPUs fast enough to train large networks, and better training tricks. Since then it has powered speech recognition, translation, image generation and the large language models behind chatbots. The cost: it needs a lot of data and computing power, and it is hard to explain why a deep network gave a particular answer.

## An analogy

Like an assembly line of interpreters: the first only notices lines, the next turns lines into shapes, the next turns shapes into objects. No single worker understands the whole picture, but the last one can say 'that is a cat'.

## Keep in mind

- 'Deep' means many layers, each building on the one before.
- It learns which features matter on its own, without hand-picked rules.
- It took off around 2012 thanks to big datasets and GPUs.
- Powerful but data-hungry, expensive to train and hard to explain.

## Go deeper

- [Deep learning on Wikipedia](https://en.wikipedia.org/wiki/Deep_learning)
- [What is deep learning? (IBM)](https://www.ibm.com/think/topics/deep-learning)

## Related terms

- [Machine learning](https://tidbit.legios.com.ar/machine-learning/): Teaching computers by showing them examples instead of writing every rule.
- [Neural network](https://tidbit.legios.com.ar/neural-network/): A pile of tiny math units that learns patterns from examples.
- [Training and inference](https://tidbit.legios.com.ar/training-and-inference/): Training builds the model once; inference is using it, millions of times a day.
- [Computer vision](https://tidbit.legios.com.ar/computer-vision/): The part of AI that lets computers find and understand what is in images and video.
- [GPU](https://tidbit.legios.com.ar/gpu/): The chip that does thousands of simple calculations at once.
- [Chatbot](https://tidbit.legios.com.ar/chatbot/): A program you talk to by typing or speaking, as if it were a person.
