3.2.6 · D3Training Deep Networks

Worked examples — Learning rate scheduling

2,649 words12 min readBack to topic

This page is the exhaustive worked-example companion to the parent note. There, we derived why the learning rate must shrink. Here, we hit every kind of question a schedule can throw at you — every phase, every degenerate input, every limiting value — one fully worked example per case.

Prerequisites we lean on: Stochastic Gradient Descent, Adam and Adaptive Optimizers, Robbins-Monro Stochastic Approximation, Loss Landscapes and Minima.


The scenario matrix

Every schedule question falls into one of these case classes. The whole point of this page is to leave no cell untouched.

Cell Case class What makes it tricky Covered by
A Discrete drop, mid-interval floor function jumps Ex 1
B Discrete drop, exact boundary is before or after the drop? Ex 2
C Smooth decay, endpoints (, ) must return , exactly Ex 3
D Smooth decay, non-symmetric interior point the "not linear" trap Ex 4
E Warmup phase () ramp up, not down Ex 5
F Warmup → decay handoff (the join ) continuity: two formulas must agree Ex 6
G Degenerate / zero inputs (, , ) limits and "no-op" schedules Ex 7
H Limiting behaviour () does diverge? does ? Ex 8
I Real-world word problem (units: epoch vs step) the unit-conversion trap Ex 9
J Exam twist (solve for , not for ) invert the schedule Ex 10

We use these symbols throughout — all defined in the parent, restated here so nothing is assumed:

The full schedule we return to again and again:

Figure — Learning rate scheduling

That figure shows the warmup + cosine shape. Follow the coral warmup line rising, the join at , then the lavender cosine curve settling. Every example below lives somewhere on a curve like this.


Cell A — discrete drop, mid-interval


Cell B — discrete drop, exact boundary


Cell C — smooth decay, endpoints


Cell D — smooth decay, non-symmetric interior

Figure — Learning rate scheduling

The figure overlays the cosine curve (lavender) against the linear guess (dashed slate). At the vertical gap is the mistake you'd make by assuming linearity.


Cell E — warmup phase


Cell F — warmup → decay handoff

Figure — Learning rate scheduling

The figure zooms on the join: coral warmup and mint decay meet at one point — no discontinuity. See Warm Restarts (SGDR) for schedules that deliberately jump instead.


Cell G — degenerate / zero inputs


Cell H — limiting behaviour ()


Cell I — real-world word problem (unit trap)


Cell J — exam twist (invert the schedule)


Recall

Recall Which cells collapse to a constant schedule, and why?

Step decay with (Ex 7a) and cosine with (Ex 7b). ::: Both zero out the "amount of change" — for all , and amplitude — so never moves. By the parent's noise-floor result these leave .

Recall At a step-decay boundary

, has the drop happened? Yes. ::: , so ; plateaus are half-open and the boundary belongs to the new, lower plateau.

Recall Why does the cosine value at the quarter-point exceed the linear guess?

Because cosine stays flat/high early. ::: , so the bracket keeps near of range, versus for a straight line.

Recall Which tool inverts an exponential-decay schedule to solve for

? The natural logarithm . ::: is the exact inverse of , bringing down out of the exponent.

For tuning , , themselves, see Hyperparameter Tuning.