The Hessian and the local bowl: reading curvature in weight space
10 questions on the quadratic approximation, the Hessian matrix, eigenvalues, elliptical contours and how to tell a minimum from a saddle point.
- 10 questions
- Stopwatch
- Instant feedback
Sample questions
Play now ↑Answers stay hidden. Start the quiz to play them.
Sample 1
A model has 2,000 weights and biases. How many entries does its Hessian table have?
- About 2,000, one per parameter
- About 4 million, one for each pair of parameters
- About 4,000, two per parameter
Sample 2
A colleague fits a quadratic bowl around the current weights and uses it to predict the error at a weight vector very far away. What is the weakness of this plan?
- Quadratic approximations cannot predict anything
- The approximation is reliable only close to the point it was built around, where higher-order terms are small
- The predictions will always be too high
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
Zoom in far enough on almost any smooth landscape and it starts to look like a simple shape: a tilted plane, a bowl, a ridge or a saddle. Mathematicians use this fact all the time, and it explains a great deal about why training a neural network behaves as it does. Engineers who tune learning rates, rescale inputs or add momentum are, knowingly or not, responding to the shape of this local bowl, so understanding it pays off well beyond the mathematics. Around any point in weight space, the error can be approximated by a quadratic, the simplest curved shape. That small bowl tells you how steep the ground is, how sharply it bends, and which way is the long gentle direction.
This quiz is about reading that bowl. You will see what ingredients the approximation needs, and which of them disappears when you stand exactly at a minimum. You will meet the Hessian, a table of second derivatives that records how the slope itself changes as you move, and you will see why its natural axes, the eigenvectors, and its eigenvalues give a complete description of the local shape. You will practise turning a list of curvature values into a verdict: minimum, maximum or saddle.
There is also a geometric side. Near a minimum, lines of equal error become ellipses, and the relationship between an ellipse's stretch and its curvature explains why some directions are easy to descend and others are painfully slow. The questions put you in front of small scenarios, such as a list of curvature numbers or a colleague's plan, and ask what follows.
People often trip over three things. First, a zero gradient does not decide the type of a stationary point: you need the curvature as well. Second, curvature is a property of each direction, so one number is rarely enough. Third, a quadratic picture is an approximation, and like every approximation it has a region where it can be trusted. The quiz is gentle on notation: nothing here asks you to multiply a matrix, only to interpret what its numbers mean.
It is aimed at learners who have seen gradient descent and want the next layer of understanding, and at practitioners who keep meeting words like curvature, sharp minimum and condition number. It has 10 questions, each with a short explanation, and 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. You see an explanation after every answer, so the quiz works as a short lesson too.
›Do I need linear algebra to take it?
No. The questions use words such as slope, curvature and direction. If you know that a bowl curves upwards in every direction and a saddle curves up in some directions and down in others, you have the picture you need.
›What does a quadratic approximation mean here?
It means replacing the real error surface, near one chosen point, with the simplest curved surface that matches it there: the same height, the same slope and the same bending. Anything more complicated, such as terms that describe how the bending itself changes, is left out. The result is a bowl or saddle that is easy to analyse, and its minimum can be found exactly.
›What is the Hessian?
It is the table of second derivatives of the error with respect to the weights. Where the gradient says how fast the error changes, the Hessian says how fast that rate of change is itself changing, so it measures curvature. It is symmetric, which means the effect of weight one on weight two is the same as the effect of weight two on weight one.
›What are eigenvectors and eigenvalues of the Hessian?
The eigenvectors are special directions in weight space along which the surface bends cleanly, with no twisting between directions. Each one has an eigenvalue, which is the amount of curvature along it. A large eigenvalue means a steep, tight direction, and a small one means a gentle, broad direction. Together they let you rotate the picture so that every direction can be studied on its own.
›How do you tell a minimum from a saddle point?
First find a point where the gradient is zero. Then look at the curvature in each principal direction. If every direction curves upwards you have a minimum, if every one curves downwards you have a maximum, and if the signs are mixed you have a saddle. A single weight on its own can mislead, because the signs belong to the principal directions rather than to individual weights.
›Why do contours of equal error look like ellipses?
In the bowl-shaped picture, the error depends on the squared distance travelled along each principal direction, scaled by that direction's curvature. Setting the error to a fixed value gives a stretched circle, which is an ellipse. It is long where the curvature is small, because you must travel far to raise the error, and short where the curvature is large.
›Why does curvature matter to anyone who just wants to train a network?
Because the local shape decides how an optimiser behaves. In a round bowl, stepping against the gradient heads almost straight for the bottom. In a stretched bowl the gradient points mostly across the narrow direction, so progress along the gentle direction is slow. Many practical tricks for training, from rescaling inputs to adding momentum, can be understood as ways of coping with uneven curvature.