Learn AI, Plainly How AI Works
Training vs inference
TLDR Training is how a model learns, once and at great cost. Inference is the model answering, every time you ask.
You've seen it
Stanford's 2024 AI Index estimated that training OpenAI's GPT-4 used about $78 million of computing, and Google's Gemini Ultra about $191 million. Answering one question with a finished model costs a fraction of a cent.
Source: Stanford AI Index 2024
Picture it
Training
- Happens once per model, over weeks or months
- Costs tens to hundreds of millions of dollars
- Ends with a knowledge cutoff date
Inference
- Happens every time someone asks
- Takes seconds and costs a fraction of a cent
- Uses what it learned, plus what you give it
Plainly
Training is when a model reads a vast amount of text and adjusts its internal numbers until it predicts well. After that, its knowledge is frozen at a cutoff date. Inference is using the finished model: your question goes in, an answer comes out, and the model itself does not change.
This explains two things. A model does not know recent events unless it is connected to search or your documents. And when a vendor says its AI “learns from your data,” it usually means looking things up, not training.
Ask this
“When a vendor says the AI learns from our data, do they mean training, or looking things up?”
Related
Last checked
. Facts in this field move fast, so every entry is rechecked when they do.