Gradient LabSign up free

ML glossary › Divergence

What is divergence in machine learning?

When training goes wrong and the error keeps growing instead of shrinking.

Where it shows up

Regression and optimization

The learning rate

With lr = 4.4, every overshoot lands higher than the last. The loss grows instead of shrinking. This is called divergence, and you will see it as a loss that shoots to infinity or NaN.

See divergence in motion. The lesson animates it step by step, free.

Open the lesson

Related terms