Gradient descent is a repetitive training procedure, not human-like learning. It adjusts a neural network’s parameters so its predictions become less wrong according to a measurable loss function. section 4.0 section 4.1
The basic training loop works like this:
- Use a loss function to assign one numeric score to how poorly the model performed. section 4.1
- Compare the expected outputs with the network’s actual outputs. section 4.1.2
- Calculate gradients that indicate the direction and amount for changing the parameters. section 4.1.2
- Apply small updates repeatedly until the accumulated changes improve performance. section 4.1.2
Rolling a ball downhill
Imagine a ball on a hilly landscape. The ball’s position represents a parameter value, and the hill’s height represents loss. Each update nudges the ball downhill toward lower loss; many small nudges can transform the network into something useful. section 4.1.2
The procedure offers no guarantee of finding the best solution and can settle in a local minimum. For LLMs, it is repeated billions of times while training the network to predict the next token; that objective does not perfectly capture reasoning or other high-level goals. section 4.1.2 section 4.6
















