Skip to content
Table of contents7 sections · tap to jump
  1. Training: the weights move
  2. Inference: the weights are frozen
  3. A useful analogy, and where it breaks
  4. Why this matters for cost and behavior
  5. What actually drives the inference bill
  6. A worked example
  7. The levers that move it
  8. Fine-tuning sits in between
  9. FAQ

ArticleaiDeep read

The real difference between training and inference

Signal DeskMay 12, 20269 minUpdated Nov 6, 2026

Drafted with AI tools by the Signal Desk. Report an error

Server racks with glowing blue LED lights line a data center corridor in two facing rows
AI illustration

Training is when a model's weights change. Inference is when they do not. Almost every confused claim about AI 'learning from your chats' lives in that gap.

A deep read: the full picture, with the receipts.

Signaldefinitive8 sources from 3 sites

People mix up training and inference constantly, and the confusion is not harmless. It is the root of two wrong beliefs: that a chatbot is learning from your conversation as you type, and that running a model is cheap because training is the expensive part. Both are backwards in important ways.

The clean line between the two phases is this: training is the only time the model's internal numbers (its weights) change. Inference is using those frozen numbers to produce an answer.

Once you hold that distinction, most of the fog clears.

Training: the weights move#

Training is a search problem. You start with a model whose billions of weights are random noise. You show it an example, it produces an output, and you measure how wrong that output was using a loss function. Then you compute, for every single weight, how much it contributed to the error, and you nudge each one a tiny step in the direction that reduces the error. That nudging is backpropagation plus gradient descent. Repeat across trillions of tokens and the weights settle into a configuration that does something useful.

This is enormously expensive, and the reason is structural. Every step requires two passes:

The passWhat it does
ForwardProduces an output
BackwardComputes gradients for every weight

The backward pass roughly doubles the compute of the forward pass, and you also have to store activations and optimizer state in memory. That is why training large models takes clusters of accelerators running for weeks. The cost is not the size of the model alone. It is the size times the number of update steps times the bookkeeping that backpropagation demands.

Inference: the weights are frozen#

When you send a prompt to a deployed model, none of that happens. The weights are fixed. The model runs one forward pass, produces a token, and for a chat model feeds that token back in to produce the next. There is no backward pass, no gradient, no learning.

The model that answers your question is byte-for-byte identical before and after the exchange.

This is the crux of the "is it learning from me" question. During a single conversation, it is not. The only thing that changes is the text sitting in the context window, which the model re-reads each turn. That can make it feel adaptive within a session, but the moment the session ends, the model has retained nothing. Any real change to its behavior requires a separate training run on collected data, done later, deliberately, by the people who own the model.

A useful analogy, and where it breaks#

Think of training as studying for an exam and inference as sitting the exam. During the exam you cannot rewrite what you know. You can only use it. The notes you are allowed to bring in are the context window: helpful, but not the same as new knowledge.

The analogy breaks in one place worth naming.

A student walks out of the exam having learned a little from the experience. The model does not. There is no trickle of learning from inference back into the weights.

The two phases are completely separate machinery.

Why this matters for cost and behavior#

TrainingInference
WeightsChangeFrozen
PassesForward and backwardForward only
WhenOnce, ahead of timeEvery request
Cost shapeHuge one-time spendSmaller per-request, but never ends

The right-hand column is where most operators eventually spend more money. Training is a brutal upfront bill, but you pay it once. Inference is a smaller bill per request that recurs for every user, every prompt, forever. A popular product can spend more on inference in a year than the original training run cost.

This is why so much engineering effort now goes into making inference cheaper: quantization, batching, caching, and smaller distilled models that approximate a larger one.

What actually drives the inference bill#

Training is a cost you see on one invoice. Inference is a meter, and it helps to know what turns it.

What you pay forHow it works
Input tokensEverything you send: the system prompt, the user's message, the chat history and any documents you add
Output tokensEverything the model writes back. On Anthropic's price list they cost five times the input rate on Claude Haiku 4.5 ($1 in, $5 out per million tokens) and Claude Opus 5.5 ($4 in, $20 out)
Thinking tokensA reasoning model's working before its answer. Anthropic bills them as output tokens, the more expensive kind

This is the part traditional software does not prepare you for. Serving one more user of an ordinary web app costs very little. Serving one more user of an AI product means more tokens, so the bill grows with every user and every request.

A worked example#

Take a product that handles a million requests a month, each with 1,500 tokens in and 500 out. Price it at Anthropic's list rates, read on 6 November 2026, with Claude Opus 5.5 as the large model and Claude Haiku 5.5 as the small one:

StrategyCost per requestPer month at 1M requests
Large model for everything$0.016$16,000
Route 80% to the small model, 20% to the large$0.00352$3,520
Route, and cache a 1,000-token repeated prompt prefixabout $0.0027about $2,690

The routing row assumes the small model really can handle four requests in five. On work it cannot do, the cheaper bill buys a worse product. The caching row uses Anthropic's cache-hit prices (a tenth of the input rate on Claude Haiku 5.5, a twentieth on Claude Opus 5.5) and leaves out the occasional cache write. To run the numbers for your own traffic, use our AI API Cost Calculator and Prompt Caching Savings Calculator.

The levers that move it#

  • Route by difficulty. Send the easy majority of requests to a small model and keep the large one for the hard tail. In the example above, that one change cuts the bill by about 78%.
  • Cache repeated input. A long system prompt sent with every request is the classic case.
  • Control tokens on both ends. Trim the prompt, prune what goes into the context and cap the output length.
  • Keep reasoning for hard tasks, with a cap on how long the model may think, because every thinking token is billed at the output rate.
  • Batch on your own hardware. The vLLM paper reports 2 to 4 times the throughput of earlier serving systems at the same latency, by managing KV cache memory well enough to batch more requests on each GPU.

Fine-tuning sits in between#

Fine-tuning muddies the clean split on purpose. It is a short, targeted training run that takes an already-trained model and nudges its weights using a smaller, specialized dataset. It is still training, weights still move, the backward pass is still involved, but it is far cheaper than starting from scratch. The output is a new set of frozen weights that you then serve at inference time like any other.

So the full lifecycle is: train to create the weights, optionally fine-tune to adjust them, then run inference to use them. Learning only ever happens in the first two.

Whatever a model says about remembering you, the weights tell the real story, and at inference they do not move.

Frequently asked questions

Does a chatbot learn from my conversation as I type?

No. During a single conversation the weights are frozen, so the model retains nothing once the session ends. The only thing that changes is the text in the context window, which the model re-reads each turn, making it feel adaptive within a session.

What is the difference between training and inference?

Training is the only time a model's internal weights change, using a forward and backward pass to nudge weights toward lower error. Inference uses those frozen weights, running a single forward pass to produce an answer with no learning involved.

Why is training so expensive?

Every training step needs both a forward pass and a backward pass to compute gradients for every weight, and it must store activations and optimizer state. The cost equals the model size times the number of update steps times the bookkeeping backpropagation demands, which is why it takes clusters of accelerators running for weeks.

Is training or inference more costly over time?

Training is a huge one-time upfront bill paid once, while inference is a smaller per-request cost that recurs for every user and prompt forever. A popular product can spend more on inference in a year than the original training run cost.

How is fine-tuning related to training and inference?

Fine-tuning is a short, targeted training run that nudges an already-trained model's weights using a smaller specialized dataset. It still moves weights via a backward pass but is far cheaper than training from scratch, and its output is a new set of frozen weights served at inference.

What are you paying for when you pay for inference?

Tokens, in both directions: everything you send (prompt, chat history, documents) and everything the model writes back. Output tokens cost more. On Anthropic's price list they are five times the input rate on Claude Haiku 4.5 and Claude Opus 5.5.

Why do reasoning models cost more to run?

They write thinking tokens before the visible answer, and Anthropic bills those as output tokens, the more expensive kind. The extra cost lands on every request where reasoning is switched on, so it pays to keep it for the hard ones.

How can a team cut its inference bill?

Route easy requests to a small model and keep the large one for hard ones, cache repeated input such as a long system prompt, trim prompts and cap output length, and switch reasoning on only where it helps. In our worked example, routing alone cut a $16,000 monthly bill to $3,520.

Sources

  1. Kaplan et al., Scaling Laws for Neural Language Models (arXiv)arxiv.org
  2. PyTorch, Automatic Differentiation with torch.autograddocs.pytorch.org
  3. Rajbhandari et al., ZeRO: Memory Optimizations Toward Training Trillion-Parameter Models (arXiv)arxiv.org
  4. Brown et al., Language Models are Few-Shot Learners / GPT-3 (arXiv)arxiv.org
  5. Devlin et al., BERT (arXiv)arxiv.org
  6. Anthropic, Pricing (Claude Platform docs)platform.claude.com
  7. Anthropic, Context windows (Claude Platform docs)platform.claude.com
  8. Kwon et al., Efficient Memory Management for LLM Serving with PagedAttention / vLLM (arXiv)arxiv.org

Ask about this article

Answered only from this piece. The AI never invents.

React
ShareXLinkedInBluesky

More in ai

More in ai

Discussion