Inference
Inference is running a trained AI model to get an answer, as opposed to training it, so every chatbot reply or generated image is inference.
An AI model has two lives. In training it learns, adjusting its parameters against data. In inference it works: it takes an input, runs it through those now fixed parameters and produces an output. Google's machine learning glossary defines inference in large language models as using a trained model to generate a response to a prompt. When you type a question into a chatbot, the reply you get back is inference.
Training is like writing and printing a cookbook; inference is cooking from it every night. The book is produced once, at great expense. The cooking costs something every single time. That is the business point. Training is a large upfront cost borne by whoever builds the model, while inference is a running cost that grows with every user and every request, and it is what shows up on a company's AI bill.
Inference can run in different places. Hosted inference runs the model in remote data centres and sends the output over the internet, which is how most AI services work. Some open-weight models can be downloaded and run on a company's own servers or even a personal computer. Either way, the model's weights have to sit in memory while it runs, which is why large models need powerful chips and why techniques that shrink a model matter for running it on laptops and phones.
Timing is a design choice too. Google's Machine Learning Crash Course separates static inference, where predictions are worked out in advance and stored, from dynamic inference, where they are computed on demand. Product descriptions for a catalogue can be generated overnight in one batch. A customer service chat has to answer now. Batch work is usually cheaper; live answers are faster.
When you read AI news about chips, data centres and price cuts, much of it is about inference. A model that is cheap to build but costly to run can still be expensive to put in front of thousands of customers.
Training is when a model learns: it is shown data and its parameters are adjusted until it performs well. Inference is when the finished model is used: it receives an input and produces an output without changing its parameters. Training happens once or occasionally and costs a lot upfront, while inference happens every time anyone uses the model. Every request runs the input through a model that may have billions of parameters, and those parameters must sit in fast memory on specialised chips while it works. Long prompts and long answers mean more processing. One request is cheap, but a service handling millions of requests a day needs large amounts of hardware running constantly. No. In statistics, inference means drawing conclusions about a population from a sample of data. In machine learning, inference simply means running a trained model to get a prediction or a response. Google's machine learning glossary flags the difference, since the same word means quite different things in the two fields. Yes, for smaller models. Some open-weight models can be downloaded and run locally, and compressed versions that store each parameter with fewer bits make this more practical. Running locally keeps data on the device and avoids per-request charges, but the largest and most capable models still need data centre hardware.Common questions
What is the difference between training and inference in AI?
Why is AI inference expensive?
Is AI inference the same as statistical inference?
Can AI inference run on a laptop or phone?
Search for "training vs inference", "static vs dynamic inference" or "LLM inference cost" to understand how models are run and paid for. Reliable sources include machine learning courses such as Google's Machine Learning Crash Course, providers' documentation on pricing and deployment, and technical documentation for inference software. Treat speed and cost comparisons published by chip and cloud vendors with care, since they usually test the conditions that favour their own products.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.