Learn AI Math

Gradient Descent

What is Gradient Descent?

In one sentence: Gradient descent is a method for training models by repeatedly taking small steps in the direction that reduces mistakes the most.

Imagine standing on a foggy hill and wanting to reach the valley. You cannot see far, so you feel which way the ground slopes down and take a small step that way, again and again. The "hill" is the model's error, and the "valley" is where its error is smallest.

What does Gradient Descent look like?

Each training step, a model uses gradient descent to tweak its weights so its next guess is a bit better.

Why does Gradient Descent matter?

Almost every modern neural network learns using some form of gradient descent.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.