Data manifolds and basis functions that adapt to the data
10 questions on low-dimensional manifolds in high-dimensional data, natural versus random images, radial basis functions, support vector machines and hand-made features.
- 10 questions
- Stopwatch
- Instant feedback
Sample questions
Play now ↑Answers stay hidden. Start the quiz to play them.
Sample 1
Photographs of a single handwritten digit differ only in where the digit sits horizontally and vertically, and in its rotation. How many independent ways of varying does this give?
- One for every pixel
- Three
- Two
Sample 2
A radial basis function model puts one basis function on every training point. What is its main drawback?
- It cannot represent any curve
- It becomes computationally unwieldy for large data sets and needs careful regularisation to avoid overfitting
- It needs no training data
How it works
- One question per screen. An answer is final once sent.
- You see right away whether you were right, with a short explanation.
- The stopwatch runs: on equal scores, the faster player ranks first.
- Only your best attempt counts, so replaying is never risky.
About this quiz
A photograph of a handwritten digit can easily contain a million numbers, one for each pixel. If every one of those numbers varied independently, learning anything from images would be hopeless, for the reasons described by the curse of dimensionality. Yet systems learn to read digits, recognise faces and caption photos with a modest number of examples. The reason is a fact about the world, not about algorithms: real data do not fill the space they live in. They are confined to a thin, curved sheet within it, and the number of independent ways in which the data can really vary is small. That sheet is called a data manifold.
This quiz explains the idea through images. If you photograph the same digit at different positions and angles, the pictures differ in only three ways, however many pixels each picture has. You will see what happens to the dimensionality of the data space and of the manifold when the resolution of the images increases, and why pictures made by choosing pixel values at random look nothing like photographs. You will see how this explains the success of models that place their building blocks along the manifold instead of over the whole space.
The second part looks at attempts to build such models by hand or semi-automatically. For many years, specialists designed features for each application using domain knowledge and trial and error, and the quiz asks what replaced that approach and what role domain knowledge still plays. You will meet two classic data-dependent methods, the radial basis function network, with one building block per data point, and the support vector machine, which selects a subset of them. You will see what each costs, and why both were largely superseded by neural networks.
Common misconceptions are to think that the number of pixels is the real complexity of an image, that random pixels could in principle produce a natural picture, and that clever hand-made features are still the main way to get good performance. The quiz explains why each is mistaken. The same observation explains why compression, denoising and generating realistic images are possible at all: if data really varied freely in every pixel, there would be nothing to compress and nothing to predict. Structure is what learning feeds on, and the manifold is the geometric form of structure.
It suits students and practitioners who want to understand why deep learning can work on enormous inputs. No mathematics is needed. There are 10 questions, each explained straight after you answer, and the quiz takes about four minutes.
Questions and answers
›How long does the quiz take?
About 3 to 4 minutes for 10 questions, at roughly 20 seconds each. An explanation appears after every answer.
›Do I need to know what a manifold is?
No. Think of the surface of a crumpled sheet of paper in a room: it is a two-dimensional object curved through three-dimensional space. A data manifold is the same idea in many more dimensions, and everything in the quiz is explained through that picture.
›What is a data manifold?
It is the lower-dimensional region within the full space of possible inputs where the real data actually live. The number of directions along which the data can truly vary is far smaller than the number of measured values, because the measurements are strongly related to each other.
›Why does the manifold dimension not depend on the resolution of an image?
The number of pixels is a property of the camera, which measures a continuous world at some level of detail. A sharper camera gives more numbers for each picture, but the picture still varies in the same few ways, such as the position of the object and its orientation. The manifold stays the same, while the data space grows.
›Why do random images not look like natural ones?
Natural images have strong relationships between pixels: neighbouring pixels usually have similar colours, and edges and shapes continue across the image. Images whose pixel values are chosen independently at random lack all of that, and natural images occupy only a minute fraction of all the possible pictures. This is also why a model trained on photographs usually fails on random noise images, which lie far from the manifold it learned. Understanding where the data live helps you to anticipate where a model can be trusted. Thinking about data in this way also warns against trusting a model far from the examples it was trained on.
›What are data-dependent basis functions?
They are building blocks of a model that are placed according to the training data instead of being fixed in advance. Having one for each training example automatically covers the manifold. This avoids the need to fill the whole space, which is the root of the curse of dimensionality.
›What are radial basis functions and support vector machines?
A radial basis function model puts one bump-shaped function on every training point, each depending only on the distance from that point. A support vector machine starts from the same idea but automatically keeps only a subset of the points. Both have costs that the quiz asks about.
›What role is left for domain knowledge?
Domain knowledge no longer designs the individual features. It still guides the design of the network architecture, where it appears as an inductive bias, for example that the meaning of a pattern doesn't depend on where it appears in the picture. The features themselves are learned from data.