What is inference?

Definition

During inference, software runs a model's learned parameters on new input. A language model may generate text, while another model may assign a label or produce an image. The model's architecture and the surrounding runtime determine how that computation is performed.

Inference is distinct from training, which updates learned parameters. Its practical performance depends on input size, output length, hardware, memory and implementation. Faster execution does not by itself establish that the model's answer is correct.

ELI5

Inference is the moment a trained AI model uses what it learned to handle a new input. Training is like studying examples; inference is like answering a new question after the studying is finished.

For example, when a photo app labels a new picture as containing a dog, it is performing inference. The model receives the picture, runs its learned calculations, and returns a result. The speed and computing cost of that step affect how quickly and cheaply the app can respond.

Does inference always train the model?

No. Ordinary inference uses existing parameters. A separate training process is needed to update those parameters.

Why can inference speed vary?

The model, workload, available memory, hardware and execution software all affect the amount and arrangement of computation.

  1. Alex Finn beside the headline Local AI on a Laptop.
  2. Harshul Jain and Tanmay Sah beside a glowing GPU memory map showing LLM tokens, KV cache blocks and throughput metrics.
  3. Faster AI - Open Models with a flat speed arrow and stacked model blocks
  4. 0xSero against a black background beside the white and blue headline 'SMARTER AI LOWER COSTS'.
  5. Shafik Quoraishee and Joanne Song against a black background beside the blue and white headline Local Agents Adapt.
  6. Three flat rectangular memory blocks joined by a broad blue connection on black above the blue-and-white headline “SHARED MEMORY LESS WORK”.
  7. David Ondrej and Dmytro Dzhulgakov discussing open model specialization, inference performance and cloud coding agents.
  8. Abdul Dakkak in a blue top against black beside the blue-and-white headline “Portable AI Inference”.
  9. Alex Smola and Sam Charrington beside the words Voice AI on black.
  10. Flat model tiles rising on an arrow beside the words The AI Race Speeds Up
Definition card for inference: What is inference?

Inference is the use of a trained model to produce an output from supplied input.