The intuition: the doctor seeing patients

Training is medical school: years of expensive study, once. Inference is the doctor seeing patients: applying that education, case after case, every working day. The education is a fixed asset; each consultation consumes time and attention but changes nothing in the doctor's knowledge. Similarly, an LLM's parameters are fixed after training, and inference is the repeated act of applying them — which is why chatting with a model never teaches it anything.

The mechanism: one token at a time

LLM inference is autoregressive. The full input — prompt, system instructions, retrieved passages — is tokenized and run through the transformer once to build context; then the model predicts the next token, appends it, and repeats until it emits a stop condition. A 200-word answer means roughly 270 sequential forward passes through billions of parameters. Two levers shape the output: temperature controls randomness in token selection, and reasoning modes use chain-of-thought generation to work through problems before answering.

Inference economics drive product design. Every generated token costs GPU time, so engines manage budgets ruthlessly: they retrieve a handful of passages rather than whole pages, cap context, cache frequent computations, and route simple queries to smaller models — often built via distillation or mixture-of-experts architectures that activate only a fraction of parameters per token. Serving ChatGPT's roughly 900 million weekly users, Gemini's 750 million-plus app users and AI Overviews' 2.5 billion-plus monthly users is, at bottom, an inference-cost management problem.

Why GEO practitioners care

Inference is the moment your content either enters an answer or does not. Practical implications:

  • Passage budgets are inference budgets. Engines inject only a few thousand tokens of retrieved evidence because every token is billed in compute. Tight, answer-first passages survive this; bloated pages get truncated or skipped. See query fan-out.
  • Answers are regenerated, not stored. Each answer is a fresh inference, so engine responses vary run to run. One-off checks prove nothing; GEO measurement samples fixed prompt sets monthly and looks at distributions.
  • Retrieval is a cost decision. When an engine chooses not to search for a query — answering from parametric knowledge — that is an inference-cost trade-off. High-stakes, fresh and commercial queries trigger retrieval most reliably, which is where GEO effort concentrates.
  • Speed shapes citations. Latency pressure favors sources that parse and extract quickly: clean HTML, structured data, explicit claims.

Common misconceptions

“The model looks up pre-written answers.” Every response is generated live, token by token; nothing is canned, which is both the power and the volatility of these systems. “Inference changes the model.” It does not; weights are read-only during generation. Learning happens only in training runs. “Inference is free once trained.” Serving cost dominates AI economics — it is why engines impose rate limits, route to smaller models and retrieve sparingly. “Longer answers mean deeper thinking.” Length is a decoding choice; depth comes from the reasoning path, not word count.

Where to go next

Pair this with temperature and sampling, chain-of-thought, context windows and how AI engines work.

Frequently asked questions

What is the difference between training and inference?
Training adjusts the model's parameters on data — once, at huge cost. Inference applies the frozen model to new inputs to generate outputs — billions of times, at per-token cost.
Why do AI answers differ each time I ask?
Because each answer is a fresh inference with sampling randomness, varying retrieved context and sometimes different model routing. Repeated sampling is the only reliable way to assess what an engine typically says.
Is inference why AI answers take a few seconds?
Yes — generating hundreds of tokens sequentially through billions of parameters takes time, and retrieval plus safety checks add latency before generation even starts.