# gradient descent (optimization)

A method that repeats small steps in the direction where a loss function becomes lower, changing the parameters of a model until its error is least.

- Computed level: L24 (depth in the emergence graph, not abstraction)
- Status: review  ·  Domain: machine learning

## Emergence
**Emerges from:** [gradient](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-gradient.gradual-change), [loss function](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-loss-function.machine-learning), [step](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-step.movement), [parameter](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-parameter.condition), [repeats](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-repeats.action), [direction](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-direction.spatial)

**Through:** The gradient of the loss function at the current parameters shows the direction to go down, and small steps in that direction are repeated so each new set of parameters has less error than the last.

**Novel properties:**
- iterative improvement toward a minimum
- learning without a closed-form solution
- risk of getting stuck in a local minimum

## Used by
- [learning rate](https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-learning-rate.machine-learning) (L25)

---
*Canonical: https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-gradient-descent.optimization*  
*Structured data: https://emergencemachine.com/tools/lexicon/what-is-the-meaning-of-gradient-descent.optimization.json*  
*Every definition provably resolves to space, time, energy and pattern.*