liveBook · Manning

Learning rate schedule

A learning rate schedule is a rule or function that determines how an optimizer’s learning rate changes during training.

How 2 Manning books explain it

LLMs in Production

Learning rate scheduling is the practice of changing an optimizer's learning rate during training according to a predefined or adaptive schedule.

How it is used
Stabilizes language-model training and supports convergence while contributing to generalization alongside monitoring and other techniques.
How deep it goes
Defines the purpose and demonstrates CosineAnnealingLR configuration, but does not develop scheduling theory or compare multiple schedules.
Examples
Uses AdamW with CosineAnnealingLR in a SimpleLlama training configuration spanning 1,000 epochs.
What you can do after
Apply learning rate scheduling through PyTorch’s CosineAnnealingLR alongside an AdamW optimizer.

Read how LLMs in Production explains learning rate schedule →

Machine Learning Algorithms in Depth

A learning rate schedule is a rule that specifies how an optimization learning rate changes across iterations.

How it is used
Controls optimization step sizes during stochastic gradient descent and neural-network training.
How deep it goes
Derives a Robbins–Monro schedule, interprets its parameters, and implements iteration- and epoch-based decay.
Examples
Uses SGD logistic regression on a synthetic Gaussian mixture and neural-network training on CIFAR-100.
What you can do after
Apply it via SGD code or a TensorFlow/Keras LearningRateScheduler callback.

Read how Machine Learning Algorithms in Depth explains learning rate schedule →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.