A network uses cosine annealing without restarts from ηmax⁡=0.1 down to ηmin⁡=0 over T=100 steps: ηt=ηmin⁡+12(ηmax⁡−ηmin⁡)(1+cos⁡(πt/T)). What is the learning rate at t=0,25,50,75,100, 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 [0.1000, 0.0854, 0.0500, 0.0146, 0.0000] at t=0,25,50,75,100 without needing manual drop milestones.

Steps

  1. Plug ηmax⁡=0.1,ηmin⁡=0,T=100 into ηt=0.05(1+cos⁡(πt/100)).
  2. At t=0: 0.05(1+cos⁡0)=0.05(2)=0.1000. At t=25: 0.05(1+22)≈0.05(1.7071)≈0.0854.
  3. At t=50: 0.05(1+cos⁡π2)=0.05. At t=75: 0.05(1−22)≈0.0146. At t=100: 0.05(1+cos⁡π)=0.
  4. 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 T, stays high long enough to escape poor basins, and settles smoothly at the end.

Common mistakes

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 g=[3,4]⊤ and threshold τ=2, what is the clipped gradient under each method, and which preserves the steepest-descent direction?
Next in Deep learning: A 4×4 feature map X=[1320421501322611] goes through 2×2 pooling with stride 2, giving a 2×2 output. The gradient of the loss with respect to that output is G=[2−10.54]. What is the gradient with respect to X for max pooling and for average pooling?