Neural networks — the intuition
Be able to explain what a neural network is without formulas: many small weighted sums in layers, with a "bend" between the layers, which together can describe far more complicated relationships than a straight line.
Prerequisites
Everyday explanation
A straight line cannot describe everything. Ice cream sales may level off when it gets too hot. A neural network is a way of building bent, complicated relationships out of many simple parts.
Every neuron does three things: it multiplies each input by a weight, sums them, and sends the sum through a simple "bend" (for instance everything below zero becomes zero). Put neurons into layers and connect layer after layer — and you have a network.
Intuition
A neuron with inputs (2, 3), weights (0.5, −1) and bias 1:
sum = 2·0.5 + 3·(−1) + 1 = 1 − 3 + 1 = −1 → the bend (ReLU) turns −1 into 0. Output: 0.
Why the bend? Without it every layer is just another straight line, and a line of a line is still a line. The bend is what lets the network learn curves, corners and "if-then" patterns.
Training = adjusting all the weights so that the error becomes small. Exactly as for the line — only with thousands (or billions) of weights instead of two.
Mastery means
- Calculates a single neuron's output from the weights and the input
- Explains why layers without a non-linearity just come out as another straight line
Sign in to do the exercises and build your mastery up.
Sources
Leads to
Part of the goals (30)
- Training neural networks for real
- Language models in practice
- Image classification with convolutional networks
- Run models more cheaply: quantisation
- Understand how generative AI works
- Classical ML for real
- Deep reinforcement learning
- Interpreting a language model
- Fine-tune and run your own models
- Generative models in depth
- Build a transformer from scratch
- AI safety in practice
- Build a voice interface
- Seeing and hearing with AI
- Frontier Lab — an independent research project
- Build a RAG system you can trust
- Multimodal systems
- Responsible AI in practice
- Fine-tune a model with LoRA
- Train your first neural network
- Evals in practice
- Reproduce a paper
- Build a memory system for an agent
- Build an AI service that survives production
- AI in production
- Statistics for experiments
- Build an agent you can trust
- Build an NLP system end to end
- An AI service in operation
- AI, ethics and society