# Optimization

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

## What is Optimization?

**In one sentence:** Optimization is the process of adjusting a model's numbers step by step to make its mistakes as small as possible.

Think of tuning a guitar: you turn each knob a little until the sound is right. In AI, the model has millions or billions of knobs, called parameters. Optimization methods decide which way to turn each one and by how much, using the loss function as a guide.

![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 Optimization?

Gradient descent and Adam are popular optimization methods.

## Why does Optimization matter?

Good optimization is the difference between a model that learns well and one that gets stuck.

## Related Concepts

- [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.
- [Gradient Descent](https://getaimath.com/dictionary/gradient-descent/): Gradient descent is a method for training models by repeatedly taking small steps in the direction that reduces mistakes the most.
- [Label](https://getaimath.com/dictionary/label/): A label is the correct answer attached to an example in a training dataset.
- [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.
- [Feature](https://getaimath.com/dictionary/feature/): A feature is one piece of information about an example that a model uses to make a decision.
- [Weights](https://getaimath.com/dictionary/weights/): Weights are the numbers inside a neural network that decide how much each input matters.

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