A network uses cosine annealing without restarts from down to over steps: . What is the learning rate at , and why is cosine decay often preferred over step decay?
Deep learning, Learning-rate schedules
Level L2 Elementary. Length Short. Nature Th+Mat Both.
What's being asked
Whether you can evaluate the cosine decay formula at standard quarters of training and explain its practical advantage over piecewise-constant step decay.
Key idea
Cosine decay lowers the learning rate smoothly—slowly at the start while exploring, fastest through the middle, and gently near the end for fine-grained convergence—yielding at without needing manual drop milestones.
Steps
- Plug into .
- At : . At : .
- At : . At : . At : .
- Why it beats step decay: step decay needs you to pick exact drop epochs and decay factors, and can stall or jump abruptly; cosine decay needs only the total budget , stays high long enough to escape poor basins, and settles smoothly at the end.
Common mistakes
- Evaluating in degrees instead of radians.
- Forgetting to set to the actual total training steps—ending early leaves the learning rate too high, while running past without clamping causes to bounce back up.
How long your answer should be
4–5 lines with the five numbers and a two-sentence comparison.
Last checked on 4 December 2026.
Read this
Previous in Deep learning: How does clipping gradients by global L2 norm differ from clipping element-wise by value? Given a gradient vector and threshold , what is the clipped gradient under each method, and which preserves the steepest-descent direction?
Next in Deep learning: A feature map goes through pooling with stride , giving a output. The gradient of the loss with respect to that output is . What is the gradient with respect to for max pooling and for average pooling?