Cosine Annealing
Definition
Method that changes the learning rate during model training along a cosine curve.
Learning rate planning reduces the step size of the optimizer from an initial value to a minimum over a defined training phase. Cosine Annealing describes the course of the curve. Warm restarts are a possible extension, but not part of every implementation.
Simply explained
When learning, the corrective steps become smaller according to a soft plan.
Why it matters in practice
Relevant for controlled training and fine tuning of neural networks.
Example from business
Example scenario: An image classifier is trained with a documented learning rate plan and compared against a constant learning rate.
Limits and pitfalls
- Confuse steps with eras; choose T_max incorrectly; expect Warm Restarts automatically; consider only training loss.
Origin & history
Kosinus plans were known, among others, by SGDR of Loshchilov and Hutter 2016/2017.
Use in mid-sized companies
- Document time base and end learning rate; compare validation quality and repeatability with alternative plans.
Frequently asked questions
Is this cosine similarity?
No. Does every plan lead to restarts? No. Does it guarantee better quality? No.
Sources
- CosineAnnealingLR · PyTorch, CosineAnnealingLR
Source check: 10/09/2026. Definition and documented classification verified; examples describe possible applications.
Editorially reviewed on: