Command Palette
Search for a command to run...
Cosine Annealing
Cosine annealing is a learning rate scheduling strategy widely used in deep learning model training. It smoothly decays the learning rate along a cosine curve from an initial maximum to a minimum, replacing the stepwise decay commonly seen in training, so that the model converges with smaller steps in the later stages of training. The strategy was proposed in 2016 by Ilya Loshchilov and Frank Hutter of the University of Freiburg, and the related paper "SGDR: Stochastic Gradient Descent with Warm Restarts " was accepted by ICLR 2017. Its most notable feature is support for warm restarts: after the learning rate decays to its lowest point, it suddenly returns to the initial maximum and then restarts cosine decay. This periodic "restart" helps the model escape local optima and explore flatter loss surfaces across multiple cycles. Today, cosine decay has become a common technique in training models such as ResNet and Transformer, with a clear effect on improving convergence performance.
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.