Representation learning is the idea that a model should work out for itself how to describe its input, instead of relying on features a person designed. The “representation” is the set of numbers the model uses internally to stand for an image, a word or a user. A good one makes the eventual task easy: similar things land close together, and the differences that matter are easy to read off.
Before deep learning, much of the effort in a machine learning project went into feature engineering: hand-crafting edge detectors for images or word counts for text. A 2012 review by Bengio, Courville and Vincent argued that a learner’s success depends heavily on its representation, and that the pursuit of AI calls for learning representations from data rather than engineering them.
What gets learned
The diagram follows an image through a trained vision network. Zeiler and Fergus visualized this in 2013: early layers responded to edges and colour patches, middle layers to textures and object parts, and the deepest layers to whole objects such as dog faces. Nobody told the network to build edge detectors. They emerged because they were useful for the task, and each layer built its descriptions from the one below.
Words work the same way. Word2vec (2013) learned vectors for words from raw text, and the resulting space had structure nobody programmed in: the vector for “king”, minus “man”, plus “woman”, lands closest to “queen”. These learned vectors are embeddings, and the space they live in is a latent space.
How representations are learned
- As a by-product of a supervised task. Train a classifier and its second-to-last layer becomes a general-purpose image description.
- Without labels. Autoencoders learn to compress and rebuild their input, so the bottleneck has to capture what matters.
- From the data itself. Self-supervised learning invents a task from raw data, such as predicting a missing word or matching two crops of the same photo. This is how large language and vision models learn representations at scale.
Why it matters
A good representation transfers. Features learned on one large dataset can be reused for a different, smaller task, which is the basis of transfer learning and of every pre-trained foundation model.
The catch is that learned representations are hard to inspect. The numbers work, but what each dimension means is rarely clear, and a representation can quietly encode shortcuts or biases in the data alongside the useful structure.