LearnBenchStart learning →

AI Research Scientist · Optimization Algorithms & Schedules

Cosine annealing and other LR decay shapes

Real lesson card · Page 1 of 4

Cosine annealing and other LR decay shapes

Cosine annealing

Cosine annealing decays the learning rate smoothly along a cosine curve from an initial value η0\eta_0 toward a minimum ηmin\eta_{\text{min}}: ηt=ηmin+12(η0ηmin)(1+cos(tTπ))\eta_t = \eta_{\text{min}} + \tfrac{1}{2}(\eta_0-\eta_{\text{min}})\left(1+\cos\left(\tfrac{t}{T}\pi\right)\right) No abrupt jumps — just a smooth taper.
Example
Over 100 epochs, LR eases from 0.1, barely moves early, drops steepest mid-training, then flattens near 0.001 by epoch 100 — a smooth S-curve.

Recall check from the same lesson

If a training loss curve plateaus and then shows sudden sharp drops at exactly epochs 30, 60, and 90, with smooth loss in between, the schedule most likely used step decay with milestones at those epochs rather than cosine annealing.

Sources

· Editorial policy

One sitting · 20–30 minutes

A focused session on your AI Research Scientist interview

LearnBench starts from what you already know — skip what you have, master what you’re missing.

Start now

More Optimization Algorithms & Schedules questions