Inference
What is Inference?
In one sentence: Inference is when a trained AI model is actually used to give answers, instead of still learning.
Training is like studying for a test, and inference is taking the test. When you type a question into a chatbot and it replies, the model is doing inference. It uses what it already learned and does not change itself while answering. Inference happens every time anyone uses the model, so making it fast and cheap matters a lot.
Σ Quick math / rule of thumb: Training happens once (or occasionally); inference runs every time anyone uses the model. For a widely used model, the total compute spent answering requests over its lifetime can end up larger than the compute used to train it.
What does Inference look like?
Each time you ask a voice assistant for the weather, it runs inference to understand you and reply.
Why does Inference matter?
Most of the cost and speed you notice when using AI comes from inference.
Inference vs. Training
Training builds the model by updating its weights from data once (or periodically); inference runs those frozen weights millions of times to answer real users.
| Dimension | Inference | Training |
|---|---|---|
| Goal | Use learned weights to produce outputs | Learn patterns and update weights |
| Weights change? | No, weights stay frozen | Yes, every optimization step |
| Compute pattern | Continuous per-request cost on every user query | One-time (or periodic) massive GPU cluster job |
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/inference/">Inference, explained simply</a> (The AI Math Dictionary)