Artificial Intelligence

What is Inference?

Quick answer

Using a trained machine learning model to make predictions or generate outputs on new data.

Inference, explained

Machine learning has two main phases. Training is when a model learns from data, which can take days or weeks on powerful hardware. Inference is when the finished model is put to work: classifying a new photo, translating a sentence, or answering a chatbot question.

Inference happens far more often than training, so its speed and cost matter a great deal in production. Teams optimize inference with techniques such as quantization, which uses lower-precision numbers, batching multiple requests together, caching, and running smaller distilled models. Inference can run in the cloud on GPUs, or on devices like phones using dedicated neural processing units, which reduces latency and keeps data private.

Related terms

Guides that mention Inference