# Gradient Descent

- **Canonical URL:** https://getaimath.com/dictionary/gradient-descent/
- **Topics:** [AI & Machine Learning Fundamentals](https://getaimath.com/dictionary/category/ai-and-machine-learning-fundamentals/)
- **Last updated:** 2026-11-25

## 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.

![Training vs. Inference: Studying Flashcards vs. Taking the Test — Simple cartoon diagram comparing AI Training (studying 1,000 flashcards and fixing mistakes until the brain learns the pattern) with AI Inference (answering a brand-new question in 1 second on test day).](https://getaimath.com/diagrams/ai-and-machine-learning-fundamentals.png)
*Napkin Diagram (AI & Machine Learning Fundamentals): Training is the long study session where the AI learns from examples; inference is test day when you actually use it.*

## What is an example of Gradient Descent?

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.

## Related Concepts

- [Optimization](https://getaimath.com/dictionary/optimization/): Optimization is the process of adjusting a model's numbers step by step to make its mistakes as small as possible.
- [Backpropagation](https://getaimath.com/dictionary/backpropagation/): Backpropagation is the method a neural network uses to figure out which of its numbers caused a mistake, so it can fix them.
- [Loss Function](https://getaimath.com/dictionary/loss-function/): A loss function is a formula that measures how wrong a model's answer is, giving one number to make smaller.
- [Weights](https://getaimath.com/dictionary/weights/): Weights are the numbers inside a neural network that decide how much each input matters.
- [Label](https://getaimath.com/dictionary/label/): A label is the correct answer attached to an example in a training dataset.
- [Bias](https://getaimath.com/dictionary/bias/): "Bias" has two meanings in AI: a small extra number inside each neuron, and unfair patterns a model picks up from its data.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/gradient-descent/)
