Convergence

Convergence is the point in training when a model's loss stops improving meaningfully with further training steps, meaning more training of the same kind will not make it better.

Training a model is a long sequence of small adjustments, each meant to reduce the loss, the measure of how wrong its predictions are. At first the loss falls quickly, then more slowly, and eventually it barely moves. Google's machine learning glossary defines convergence as the state reached when loss values change very little or not at all with each iteration. A model has converged when additional training will not improve it.

Engineers usually judge this by eye from a loss curve, a chart of loss against training steps. In an example in Google's Machine Learning Crash Course, loss drops steeply over the first few iterations, then gradually, then flattens out around the 1,000th iteration, at which point the model can be considered converged. Because loss jitters slightly even after it settles, the course advises continuing until it has clearly stabilised before calling it.

Convergence is not the same as success. For simple models with a bowl-shaped, or convex, loss, gradient descent can converge to the best possible solution. Neural networks have far more complicated loss surfaces, so training settles at a good low point, not one guaranteed to be the best. A model can also converge on its training data while doing worse on new data, which is overfitting; that is why training is often stopped early based on a separate validation set. And plateaus can mislead: Google's glossary warns that loss sometimes stays flat for many iterations before falling again.

Large language models are often not trained to convergence at all. A 2020 study of scaling laws by Jared Kaplan and colleagues found that the most compute-efficient approach was to stop well before convergence, and training runs today usually end when the budget or schedule does. In AI news, convergence can also mean industries or technologies merging; in the training sense, it simply means the model has stopped getting better from more of the same.

Common questions

What does convergence mean in machine learning?

It means training has reached a point where the loss, the measure of the model's error, no longer decreases meaningfully with more training steps. At that point continuing the same training will not improve the model.

How do you know if a model has converged?

By watching the loss curve. When the curve flattens out and stays flat over many steps, apart from small fluctuations, the model has probably converged. Checking performance on a separate validation set at the same time shows whether the model is still improving on data it has not seen.

Does convergence mean the model is as good as it can be?

No. It means this training run has stopped improving, not that the best possible model has been found. A neural network may settle at a solution that is good but not optimal, and a different architecture, more data or other settings might do better.

Are large language models trained until they converge?

Usually not. Research on scaling laws found that, for a fixed computing budget, it is more efficient to train a large model and stop before convergence than to run a smaller one to completion. Training typically ends according to a planned schedule.

Finding more

Search for "model convergence loss curve", "interpreting loss curves" or "convergence of gradient descent" for practical and mathematical explanations. Machine learning courses from major providers, university lecture notes and optimisation textbooks are reliable. Be aware that the word is used loosely in business coverage for unrelated trends.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.