liveBook · Manning

Learning rate

As explained in LLMs in Production

A learning rate is a training hyperparameter that controls the magnitude of parameter updates during optimization.

A learning rate controls how much model parameters change during optimization. A rate that is too large can prevent progress through difficult regions; a smaller rate can help a model move past an apparent but misleading convergence point. section 5.4.3 section 5.2.2

When training appears to stop before the dataset has been processed:

  • Treat early convergence as suspicious rather than accepting it immediately. section 5.4.3
  • Load a checkpoint from roughly 100 steps before the problematic behavior. section 5.4.3
  • Turn the learning rate down, train beyond the suspected local minimum, and raise it again after the model improves. section 5.4.3
  • Keep both the original and later checkpoints so failed recovery attempts remain reversible. section 5.4.3

Escaping repeated early convergence

A T5 XXL model appeared to converge around step 25,000 despite seeing only 10% of its dataset. Reloading a checkpoint near step 20,000 and lowering the learning rate let training pass the obstacle; the rate was raised afterward. section 5.4.3

How LLMs in Production covers it

How deep it goes
Explains parameter-update magnitude and gives a checkpoint-based adjustment procedure, stopping short of optimizer internals.
Examples
Uses a T5 XXL run that repeatedly appeared converged before completing its dataset.
What you can do after
Diagnose suspicious early convergence and adjust the learning rate through checkpointed recovery.
How it connects
Connects learning rate with optimization, local minima, checkpoints, pretraining, and finetuning.

Also explained in

Compare how 16 books explain learning rate →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of LLMs in Production. The section links point to the parts of the book it draws on.