Behind almost every model that "learns" â from a tiny line fit to a giant language model â sits the same humble idea. Imagine the model's error as a landscape: every possible setting of its knobs is a point on the ground, and the height at that point is how wrong the model is. Training means finding the lowest valley.
You can't see the whole landscape; it can have millions of dimensions. But at the spot where you're standing you can feel which way is downhill â that direction is the gradient. So you take a small step that way, look again, step again. Roll the ball downhill until the ground flattens out, and you've found a minimum.
That single recipe â follow the slope, step, repeat â is gradient descent. It is old (the method dates to Cauchy, 1847) and it is everywhere. The only real decision is how big each step should be, and as you'll see, that one number can make or break the whole journey.
Comments
Loading comments...