Deep learning as function composition
What it is
A deep network is a parameterised function made by composing simple functions: input → layer → activation → layer → prediction. Each layer receives a representation, transforms it using learned weights, and passes a new representation onward. Training chooses the parameters that minimise a loss on examples; depth lets later layers build features from earlier ones, such as edges becoming shapes and then object parts. The same computational pattern can map pixels to labels, tokens to the next-token distribution, or noisy latents to an image.
Why it matters
This is the one picture behind image classifiers, language models, and diffusion models. Architecture changes which functions can be composed and which assumptions the model makes about the data; training changes the numerical parameters inside those functions. Keeping those two decisions separate makes debugging much clearer: a bad architecture limits what can be represented, while bad optimisation or data prevents a capable architecture from finding it.
In the real world: A photo-tagging model is a chain of simple steps that turns pixels into “red running shoe”, learned end to end from examples.
Visual example
Deep learningA network turns examples into predictions through a chain of learned transformations.
# f(x) = layer3(activation(layer2(activation(layer1(x)))))
y_hat = model(x)
loss = loss_fn(y_hat, y)Calling any large model 'deep learning'. A lookup table or a hand-written pipeline may be complex, but it does not learn a hierarchy of representations by optimising differentiable parameters.