What is AI inference?
AI inference is the use of a trained model on new input: the model receives data it has not seen before and returns an output, such as a label, a forecast or generated text. Seven sources that explain the term word it as follows (pages retrieved on 5 December 2026, sorted by the date the page shows):
| Source and date | Definition |
|---|---|
| NVIDIA Blog, Kyle Aubrey (29 July 2016; the page says it was updated in October 2025) | “AI inference is where capabilities learned during AI training are put to work.” |
| IBM Think, Dave Bergmann (published 18 June 2024 according to the page, updated 13 January 2026) | “In machine learning, AI inference is the act of using a trained AI model to make predictions on new data.” |
| Google Cloud (last updated 15 October 2026, shown as 10/15/2026) | “AI inference is the "doing" part of artificial intelligence.” |
| Oracle, Michelle Meng (29 October 2026 on the page; metadata: published 2 April 2024) | “In artificial intelligence, inference is the step when a trained model applies what it knows to new data to produce an output” |
| AWS (no date on the page; metadata: updated 17 November 2026) | “Inferencing is the process of an artificial intelligence model generating educated predictions or outputs from new data.” |
| Stanford HAI, AI definitions (no date on the page) | “In artificial intelligence, Inference is when a trained AI model makes predictions or decisions on new data it hasn't seen before.” |
| Cloudflare Learning Center (no date on the page) | “AI inference is when an AI model produces predictions or conclusions.” |
Four of the seven definitions name training or a trained model in the sentence itself; Google Cloud, AWS and Cloudflare do so in the sentences that follow. AWS uses the form “inferencing” next to “inference” on the same page, for example in “Inference applies these recognized patterns to new data.”
The sources draw the line to serving in different places. Google Cloud separates the two: “AI serving is the process of deploying and managing the model for inference.” IBM's page on LLM inference (the page shows no date; its metadata gives 6 February 2026) defines LLM inference as running a pre-trained model and later describes it as serving: “LLM inference is the process of serving predictions in real time and it introduces its own set of challenges.”
AI inference and training
The pages also set inference against training. The wording differs in what each source stresses:
| Source and date | Wording |
|---|---|
| NVIDIA Blog (29 July 2016, updated October 2025) | “Inference can’t happen without training.” |
| Hugging Face, community article (17 January 2025) | “While much of the focus used to be on training these models, attention has shifted to inference, the phase where they deliver real-world value.” |
| IBM, LLM inference (metadata: 6 February 2026) | “Unlike training, which involves computationally expensive steps such as backpropagation and continuous weight updates, inference is a read-only, forward-only process.” |
| Google Cloud (last updated 15 October 2026) | “This quick analysis is called a "forward pass," a read-only step where the model applies its knowledge without learning anything new.” |
| Cloudflare (no date on the page) | “AI training is the process that enables AI models to make accurate inferences.” |
Two sources name a criterion beyond what happens to the weights. IBM's page on AI inference names the goal: “Whereas the goal of AI training is achieving model accuracy and alignment, the goal of AI inference is deploying that trained model in a maximally efficient, cost-effective way.” Cloudflare names the cost over time: “Training an AI model can be very expensive in terms of computing power, but it is generally a one-time expense.” Neither page gives a figure for the cost of either step.
What happens during one LLM request
For large language models, two papers on serving split a single request into two phases. Patel et al. describe them in the Splitwise paper (arXiv 2311.18677, version 1, 30 November 2023): “we find that there are two main phases during an LLM inference request: a compute-intensive prompt computation, and a memory-intensive token generation, each with distinct latency, throughput, memory, and power characteristics.”
Zhong et al. use other names for the same split in the DistServe paper (arXiv 2401.09670, version 1, 18 January 2024): “DistServe improves the performance of large language models (LLMs) serving by disaggregating the prefill and decoding computation.” IBM's page on LLM inference uses those names too. On the first phase: “During the prefill step, the model processes the entire input sequence in parallel.” On the second: “Here, it generates output tokens one at a time with autoregressive prediction.” The entry on speculative decoding explains a method that works on this phase.
Both papers argue for running the two phases on separate hardware. Splitwise puts it this way: “With Splitwise, we propose splitting the two phases of a LLM inference request on to separate machines.” IBM writes that the prefill “initializes the key-value (KV) cache, which stores attention states for each token”; the entry on the KV cache covers what the model keeps between the two phases.
prompt
Splitwise: prompt computation
prefill
the whole input, processed in parallel
TTFT · time to first token
Splitwise: token generation
repeat for the next token
decoding
one output token at a time
TPOT · time per output token
answer
Batch, online and edge inference
IBM starts its list of types with a caveat: “‘Type’ is a nebulous word: there are many ways to execute AI inference, and therefore many ways to delineate its variants.” The three sources that give a list count differently:
| Source | Wording |
|---|---|
| IBM, AI inference | “But the two most fundamental categories of AI inference strategies are batch inference and online inference.” |
| Google Cloud, cloud | “Within the cloud, there are typically two primary modes of inference:” followed by real-time (online) and batch (offline) inference |
| Google Cloud, device | “This approach performs inference directly on the device where data is generated” |
| AWS, batch | “Batch inference is when an AI makes predictions using batches of multiple data inputs.” |
| AWS, edge | “Edge AI inference is where an AI model is run on a user’s device or near the source of the data.” |
| AWS, real time | “Real-time inferencing is the process of generating AI inference instantly based on input requests.” |
| AWS, streaming | “Streaming inference is when a data pipeline continuously delivers information to your AI model, which delivers streaming inference outputs in real-time.” |
IBM counts two basic categories, Google Cloud two modes in the cloud and edge inference as a separate case, and AWS opens with “There are several different types of machine learning (ML) inference.” before naming batch, edge, real-time and streaming. On what a phone can do, IBM writes: “Particularly on smartphones, on-device inference is typically limited to specific tasks, such as camera filters, facial recognition or speech-to-text.” The entry on small language models describes models built to fit on such devices.
How inference is measured
The DistServe paper names one measure per phase: “LLM applications often emphasize individual latency for each phase: time to first token (TTFT) for the prefill phase and time per output token (TPOT) of each request for the decoding phase.” Its authors design the system around the rate of requests that meet both limits.
IBM's page on LLM inference lists what becomes hard in production: “Challenges such as latency, throughput limitations, GPU memory constraints and cost-effective deployment become critical factors in delivering a smooth user experience.”
For comparing whole systems, Reddi et al. describe the MLPerf Inference benchmark (arXiv 1911.02549, version 1, 6 November 2019). They state the problem: “The myriad combinations of ML hardware and ML software make assessing ML-system performance in an architecture-neutral, representative, and reproducible manner challenging.” And the answer they propose: “MLPerf Inference answers that call.” None of the sources in this entry gives a price per request or per token.
What the surveys say makes inference slow
Three surveys on LLM serving and inference name causes of slow or costly inference or group the methods against it. Abstracts by date of the version quoted:
| Paper and version | Wording |
|---|---|
| Miao et al., “Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems”, arXiv 2312.15234, version 1 (23 December 2023) | “the computational intensity and memory consumption of deploying these models present substantial challenges in terms of serving efficiency, particularly in scenarios demanding low latency and high throughput” |
| Yuan et al., “LLM Inference Unveiled: Survey and Roofline Model Insights”, arXiv 2402.16363, version 1 (26 February 2024) | “covering crucial areas such as weight optimization (e.g., Knowledge Distillation and Quantization), decoding algorithm improvements (e.g., Early Exit and Mixture-of-Expert), and both hardware and system-level enhancements” |
| Yuan et al., same survey, version 2 (28 February 2024) | “covering crucial areas such as model compression (e.g., Knowledge Distillation and Quantization), algorithm improvements (e.g., Early Exit and Mixture-of-Expert), and both hardware and system-level enhancements” |
| Zhou et al., “A Survey on Efficient Inference for Large Language Models”, arXiv 2404.14294, version 1 (22 April 2024) | “We start by analyzing the primary causes of the inefficient LLM inference, i.e., the large model size, the quadratic-complexity attention operation, and the auto-regressive decoding approach.” |
Two methods named in these abstracts have their own entries on runtruffle.com. The entry on knowledge distillation covers training a smaller model from a larger one. The entry on mixture of experts covers models that use only part of their parameters for each token. Two further entries cover stores that spare repeated work. The entry on the KV cache describes the stored attention values that spare the model from computing them again, and the entry on prompt caching covers reuse of a repeated prompt beginning across requests.
Other meanings of “inference”
Outside machine learning the idea is older than the technology. Oracle opens its page with the everyday sense: “In everyday use, inference is a conclusion based on evidence, prior knowledge, and reasoning”. Wikipedia's article “Inference” (last edited on 5 December 2026) starts with logic: “Inferences are steps in logical reasoning, moving from premises to logical consequences.” It continues: “Inference is traditionally divided into deduction and induction, a distinction that dates at least to Aristotle (300s BC).” A third kind follows in the next sentence: “A third type of inference, abduction, has been proposed, notably by Charles Sanders Peirce.”
Statistics uses the word for a further task. Wikipedia's article “Statistical inference” (last edited on 29 November 2026) begins: “Statistical inference is the process of using data analysis to infer properties of an underlying probability distribution.”
In AI itself, Wikipedia's article “Inference engine” (last edited on 3 October 2026) gives two senses of the term. The older one: “In the field of artificial intelligence, an inference engine is a software component of an intelligent system that applies logical rules to the knowledge base to deduce new information.” The article continues with “Additionally, the concept of 'inference' has expanded to include the process through which trained neural networks generate predictions or decisions.” and names the newer sense: “In this context, an 'inference engine' could refer to the specific part of the system, or even the hardware, that executes these operations.” The entry on reasoning models covers test-time compute, the computation a model spends while it answers.
Names and dates in the sources
Four pages carry more than one date. IBM's page on AI inference shows “Published 18 June 2024”, while its metadata gives 18 December 2024 as the publication date (its Dublin Core date reads 18 June 2024). Oracle shows 29 October 2026 on the page and 2 April 2024 as the publication date in its metadata. NVIDIA's post shows 29 July 2016 and the note “Editor’s note: This post was updated in October 2025.” The page does not say which sentences changed in that update. IBM's page on LLM inference shows no date; its metadata gives 6 February 2026 as the publication date and 22 May 2026 as the modification date. Google Cloud shows only a “Last updated” date and no publication date.
Two of the papers changed in the passages quoted here between versions. In version 1 of the MLPerf Inference paper (6 November 2019), the systems “span at least three orders of magnitude in power consumption and four orders of magnitude in performance”; version 2 (9 May 2020) reads “span at least three orders of magnitude in power consumption and five orders of magnitude in performance”. Version 1 reports “more than 600 inference-performance measurements from 14 organizations”; version 2 reports “more than 600 reproducible inference-performance measurements from 14 organizations”. In the survey by Yuan et al., two group names changed between version 1 and version 2 (28 February 2024) and stay the same through version 6, as the table above shows: weight optimization became model compression, and decoding algorithm improvements became algorithm improvements.
6 Nov 2019
Reddi et al.,
MLPerf Inference, version 1 (“four orders of magnitude”)
9 May 2020
Reddi et al.,
MLPerf Inference, version 2 (“five orders of magnitude”)
30 Nov 2023
Patel et al.,
Splitwise, version 1
23 Dec 2023
Miao et al.,
survey, version 1
18 Jan 2024
Zhong et al.,
DistServe, version 1
26 Feb 2024
Yuan et al.,
survey, version 1 (“weight optimization”)
28 Feb 2024
Yuan et al.,
survey, version 2 (“model compression”)
22 Apr 2024
Zhou et al.,
survey, version 1
AI inference and related terms
KV cache. The attention keys and values an LLM holds on to while decoding; the entry on the KV cache explains it.
Speculative decoding. A draft mechanism proposes tokens that the large model checks in one pass; the entry on speculative decoding explains it.
Prompt caching. Providers reuse a prompt beginning that repeats across requests; their documentation is quoted in the entry on prompt caching.
Semantic caching. A stored answer is returned for a request that is similar enough to an earlier one; the entry on semantic caching covers the method.
Small language model. Models small enough to run inference on a phone or laptop; the entry on small language models explains them.
Mixture of experts. A model design that activates only part of the parameters per token; the entry on mixture of experts explains it.
Reasoning model. A model that spends extra computation on intermediate steps before it answers; the entry on reasoning models covers it.
Large language model. The kind of model the phases above describe; the entry on large language models explains what it is.
Source
- Kyle Aubrey, NVIDIA Blog, “What’s the Difference Between Deep Learning Training and Inference?” (29 July 2016, updated October 2025 according to the page). Source for the NVIDIA wording and the page dates (retrieved 2026-12-05): https://blogs.nvidia.com/blog/difference-deep-learning-training-inference-ai/
- Dave Bergmann, IBM Think, “What is AI Inference?” (published 18 June 2024 according to the page, updated 13 January 2026; metadata datePublished 2024-12-18). Source for the IBM definition, goal, types and on-device inference (retrieved 2026-12-05): https://www.ibm.com/think/topics/ai-inference
- Nivetha Suruliraj, IBM Think, “What is LLM Inference?” (no date on the page; metadata datePublished 2026-02-06, dateModified 2026-05-22). Source for serving, prefill, decoding and challenges (retrieved 2026-12-05): https://www.ibm.com/think/topics/llm-inference
- Google Cloud, “What is AI inference?” (last updated 10/15/2026). Source for the Google definition, serving, forward pass and modes (retrieved 2026-12-05): https://cloud.google.com/discover/what-is-ai-inference
- Michelle Meng, Oracle, “What Is AI Inference? How Does It Work?” (29 October 2026 on the page; metadata datePublished 2024-04-02). Source for the Oracle definition and the everyday sense (retrieved 2026-12-05): https://www.oracle.com/artificial-intelligence/ai-inference/
- AWS, “What is Inferencing?” (no date on the page; metadata updated 2026-11-17). Source for the AWS definition and types (retrieved 2026-12-05): https://aws.amazon.com/what-is/inferencing/
- Stanford HAI, “What is Inference?” (no date on the page). Source for the Stanford HAI definition (retrieved 2026-12-05): https://hai.stanford.edu/ai-definitions/what-is-inference
- Cloudflare, “AI inference vs. training: What is AI inference?” (no date on the page). Source for the Cloudflare definition and the cost comparison (retrieved 2026-12-05): https://www.cloudflare.com/learning/ai/inference-vs-training/
- Hugging Face, community article, “Topic 23: What is LLM Inference, it's challenges and solutions for it” (17 January 2025). Source for the shift of attention to inference (retrieved 2026-12-05): https://huggingface.co/blog/Kseniase/inference
- Wikipedia, “Inference” (last edited on 5 December 2026). Source for the logical sense (retrieved 2026-12-05): https://en.wikipedia.org/wiki/Inference
- Wikipedia, “Statistical inference” (last edited on 29 November 2026). Source for the statistical sense (retrieved 2026-12-05): https://en.wikipedia.org/wiki/Statistical_inference
- Wikipedia, “Inference engine” (last edited on 3 October 2026). Source for the two meanings of inference engine (retrieved 2026-12-05): https://en.wikipedia.org/wiki/Inference_engine
- Reddi et al., “MLPerf Inference Benchmark”, arXiv 1911.02549, version 1 (6 November 2019) and version 2 (9 May 2020). Source for MLPerf Inference and its two versions (retrieved 2026-12-05): https://arxiv.org/abs/1911.02549v1 and https://arxiv.org/abs/1911.02549v2
- Patel et al., “Splitwise: Efficient generative LLM inference using phase splitting”, arXiv 2311.18677, version 1 (30 November 2023). Source for the two phases of a request (retrieved 2026-12-05): https://arxiv.org/abs/2311.18677v1
- Miao et al., “Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems”, arXiv 2312.15234, version 1 (23 December 2023). Source for serving efficiency (retrieved 2026-12-05): https://arxiv.org/abs/2312.15234v1
- Zhong et al., “DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving”, arXiv 2401.09670, version 1 (18 January 2024). Source for prefill, decoding, TTFT and TPOT (retrieved 2026-12-05): https://arxiv.org/abs/2401.09670v1
- Yuan et al., “LLM Inference Unveiled: Survey and Roofline Model Insights”, arXiv 2402.16363, version 1 (26 February 2024) and version 2 (28 February 2024). Source for the survey and its two versions (retrieved 2026-12-05): https://arxiv.org/abs/2402.16363v1 and https://arxiv.org/abs/2402.16363v2
- Zhou et al., “A Survey on Efficient Inference for Large Language Models”, arXiv 2404.14294, version 1 (22 April 2024). Source for the causes of inefficient inference (retrieved 2026-12-05): https://arxiv.org/abs/2404.14294v1
Frequently asked questions
What is AI inference in simple terms?
Google Cloud (last updated 15 October 2026) compares it with training: “Think of it this way: if training is like teaching an AI a new skill, inference is that AI actually using the skill to do a job.” Cloudflare: “In other words, inference is an AI model in action.”
Is inference the same as training?
No. Training sets the model's parameters; inference uses them without changing them. IBM's page on LLM inference (metadata: 6 February 2026) calls inference a process “without updating the models learned parameters.” NVIDIA (29 July 2016, updated October 2025) says inference cannot happen without training.
Is inference or training more expensive?
The sources answer by time, not by amount. Cloudflare calls training “generally a one-time expense” and continues: “Inference, on the other hand, is an ongoing process that uses a significant amount of computing power as the model is actively applied to new data.” None of the sources quoted in this entry compares the two costs with a figure.
What are the types of AI inference?
It depends on the source. IBM names two basic categories, batch and online inference. Google Cloud names two modes in the cloud, real-time and batch, and treats edge inference on the device as a separate case. AWS names four types: batch, edge, real-time and streaming inferencing.
Is an inference engine the same as AI inference?
Wikipedia's article “Inference engine” (last edited on 3 October 2026) gives two meanings. In the older one, an inference engine applies logical rules to a knowledge base. In the newer one, the term can refer to the specific part of the system, or even the hardware, that executes the process through which trained neural networks generate predictions or decisions.