Error surfaces: minima, saddle points and where training ends up
10 questions on weight space, gradients, stationary points, local and global minima and equivalent solutions. With explanations.
- 10 questions
- Stopwatch
- Instant feedback
Sample questions
Play now ↑Answers stay hidden. Start the quiz to play them.
Sample 1
A team wants the weights of a deep network without any step-by-step training. Why can't they simply solve for the point where the gradient is zero?
- The solution exists in closed form but takes too much memory
- Step-by-step methods are guaranteed to find the global minimum and direct solving is not
- For an error this complicated and nonlinear in the weights, that equation has no analytical solution, so iterative numerical methods are used
Sample 2
The same network is trained five times from different random starting weights and gives five different validation scores. What is the sensible way to choose among them?
- Keep the run that does best on an independent validation set
- Keep the run with the lowest training error
- Average the five weight vectors into one network
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
Suppose two engineers train the same small network on the same data. Both reach a low error, yet when they compare notes the weights look nothing alike. Neither made a mistake. To see why, it helps to picture training as a journey across a landscape: every possible setting of the network's weights is a location, and the height at that location is the error. Learning means walking downhill on that landscape, and the shape of the landscape decides where you can end up.
This quiz builds that picture step by step. You will meet weight space, the single long vector that gathers every weight and bias, and the gradient, an arrow that tells you which way is steepest at your feet. You will see what it means for the slope to vanish, and why that happens at the bottom of a valley but also at the top of a hill and at awkward in-between spots called saddle points. You will also look at the difference between a local minimum and the global one, and at why the same function can sit at many different places in weight space.
The questions are about situations rather than definitions. A training run stalls with a tiny gradient: what can you conclude and what can't you? A colleague proposes averaging the weights of several runs: is that safe? A team wonders whether to solve for the weights directly instead of stepping towards them. Each case checks that you can use the landscape idea, not only recite it.
A common mistake is to treat a flat spot as proof of success. A slope of zero says nothing about whether the error is low, and the old fear that large networks would be trapped in poor pits turns out to be less of a problem than people once believed. Another mistake is to think there is one right answer for the weights. In practice many different settings behave identically, and the setting you find depends on where you start.
The quiz suits students and practitioners who have heard terms like loss landscape and local minimum and want them to mean something precise. It needs no calculus beyond the idea of a slope. Getting the landscape picture clear also prepares you for the topics that follow, such as gradient descent, momentum and adaptive learning rates, which all exist because this surface is awkward to cross. There are 10 questions, each followed by an explanation, and it 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. After every answer you see an explanation of why it is right or wrong.
›Do I need calculus or a machine learning background?
No. You should know that a slope tells you how fast something rises, and that a neural network has adjustable weights. Everything else, including weight space and the gradient, is explained in plain words as you go.
›What is weight space?
Take every weight and every bias in a network and write them as one long list of numbers. That list is a single point, and each different list is a different point. The set of all such points is weight space. A network with a million parameters lives in a space with a million directions, which is why we can only picture it through small two-dimensional sketches.
›What is an error surface?
It is the graph of the error function over weight space. For each point, meaning each possible setting of the weights, you measure how badly the network does on the training data and plot that as a height. The surface can have valleys, ridges, plateaus and pits. Training is the search for a low point, and every method for it is a way of moving across this surface using local information.
›What is a stationary point?
It is a point where the gradient is zero, so the surface is locally level in every direction. There are three main kinds. In a minimum every direction leads uphill, in a maximum every direction leads downhill, and in a saddle point some directions lead up and others down, like the middle of a mountain pass. Training methods that follow the slope can slow to a crawl near any of them.
›What is the difference between a local and a global minimum?
A global minimum is the lowest point on the whole surface. A local minimum is lower than everything nearby but may be higher than some far-away point. Because the error of a deep network depends on its weights in a highly nonlinear way, the surface has many stationary points. Whether that actually harms training is a separate question, and one that practical experience has answered more kindly than theory once suggested.
›Why can two different sets of weights give the same network behaviour?
Hidden units are interchangeable in a layer: you can relabel them and carry their incoming and outgoing weights along, and the function stays the same. For a layer of M hidden units this creates a whole family of equivalent settings, and that family grows very fast as M increases. So a single good solution is really one of a great many identical-looking ones, scattered through weight space.
›Does a gradient close to zero mean training has finished?
Not by itself. A tiny gradient tells you the ground is nearly flat, and that can happen in several different places. The only way to learn whether the error is acceptable is to measure it, and to judge generalisation on data the network did not train on. Looking at the whole learning curve is much more informative than looking at the gradient alone.