3.2.11 · D1Training Deep Networks

Foundations — Early stopping

2,630 words12 min readBack to topic

This page assumes nothing. Before you can read the parent note Early stopping, you need to know what a weight, a gradient, a loss, a Hessian, and an eigen-direction actually are — as pictures, not letters. We build every symbol here, in the order the parent uses them.


0. The stage: what is a "model" and its "weights"?

Figure — Early stopping

Why the topic needs it: early stopping is a rule about where we let this dot travel to. To talk about "stopping the dot early", we first need the dot.


1. Loss — the height of the landscape

Figure — Early stopping

Why the letter ? It is just tradition (from "objective"). It could be any letter; the parent note uses for the training cost.

Why the topic needs it: "training" means walking downhill on this landscape — finding weights where the mistakes are small. The lowest points are the good models. See Gradient Descent for the walking rule and Overfitting and Generalization for why a low training is not always a good thing.


2. Gradient — the arrow pointing uphill

Figure — Early stopping

Why the symbol (nabla)? It is a special "slope operator." means "the collection of slopes of in every direction, packed into one arrow." We need one symbol for it because has many components and each has its own slope.

Why the topic needs it: the training rule is step opposite the gradient. Early stopping is about how many such steps we take.

WHAT this line does: moves the dot a little bit downhill. WHY: repeating it many times slides the dot toward a valley (low mistakes). WHAT IT LOOKS LIKE: figure s03 — the dot hops down the slope, each hop of length set by .


3. The minimizer and the starting point

Why the topic needs both: early stopping is the statement "we stop the dot somewhere between and ." Fewer steps = the dot stays closer to the small-and-random start = smaller weights = a simpler function. That "distance travelled from the origin" is the hidden regularization.


4. The Hessian — the shape of the bowl

Near the bottom , every smooth landscape looks like a bowl. But bowls differ: some are round, some are long thin valleys. The object that records that shape is the Hessian.

Figure — Early stopping

Why the topic needs it: the parent's whole proof approximates the bowl by its curvature : Don't panic at the symbols — read it as: "height above the bottom = (something) × (how far from the bottom)² weighted by the curvature ." The is "transpose" (it just makes the row-times-column multiplication work out to a single number). Deep dive: Hessian and Curvature.


5. Eigenvalues and eigen-directions — the bowl's natural axes

A tilted bowl is confusing. But every bowl has special axes along which it is a clean one-dimensional curve — no cross-talk between directions.

Figure — Early stopping

Why we need them: in these special axes, the messy many-knob update becomes many independent one-knob updates. Each direction shrinks on its own by a factor per step. That is why the parent can write, after steps, one clean formula per direction: This formula behaves nicely only in the stable regime (from §2): then is a positive number below , so its powers shrink smoothly to and the fit fraction climbs smoothly to . If the powers blow up and the "fit fraction" is meaningless — training diverges instead.


6. Training vs Validation — the two curves

Why the topic needs it: the bottom of that U is exactly where early stopping fires. The training curve alone can't tell you when to stop, because it never turns back up. See Validation and Cross-Validation.


How these foundations feed the topic

Weights w = a point

Loss J = landscape height

Gradient = uphill arrow

Gradient descent step size epsilon

Stability need epsilon lambda below 1

Start w0 small random

Distance travelled = complexity

Hessian H = local bowl curvature

Eigen-directions and lambda

Fast axes fit slow axes suppressed

Warning non convex many bowls

Validation loss U shape

Patience p

Early Stopping


Equipment checklist

Test yourself — you are ready for the parent note when you can answer each without peeking.

What does the symbol stand for, and what picture goes with it?
The weight vector — every tunable number in the network stacked into one list; pictured as a single point (dot) in space.
What is the loss , as a picture?
The height of a landscape above the point ; low height = few mistakes, high height = many mistakes.
What does the gradient point toward, and which way do we walk?
It points in the direction of steepest uphill; we step opposite it (downhill) to reduce loss.
In , is the a power or a label?
A label — it counts which training step we're on, not exponentiation.
What does the learning rate control, and what stability range must it obey?
The size of each downhill stride; per axis we need (and ideally ) or the dot oscillates / diverges instead of settling.
Why does starting at a small random and not travelling far act like regularization?
Short travel keeps weights near zero, which means a gentle/simple function — less able to trace noise.
What does the Hessian describe, and where is its bowl picture valid?
The local curvature (shape) of the loss bowl near its bottom; it is only a Taylor approximation valid near and assumes is positive-definite.
What are and in the parent's ?
's columns are the eigen-directions (bowl axes); is a diagonal table of the eigenvalues (curvatures) .
What does a large eigenvalue mean about its direction, and how fast does it fit?
A steep-walled direction; gradient descent fits it fully and fast.
What does a small direction do during a short training run?
It barely moves, so it stays near zero — effectively suppressed (this is the regularization).
Why is the clean single-bowl / equivalence only an approximation for deep nets?
Deep networks are non-convex — many minima, saddles and plateaus — so the story holds only locally around whichever minimum training approaches.
What shape does the validation-loss curve take, and what is patience ?
A U-shape (down, minimum, up); patience is how many non-improving epochs we tolerate before stopping.