Large Language Model (LLM)
- large language model
- language model
- foundation model
What is Large Language Model (LLM)?
A large language model is a transformer-based network trained to predict the next token in a sequence across a very large corpus. That single objective, at sufficient scale, produces a system that can summarise, translate, write code and follow instructions without task-specific training.
In practice
Everything an LLM does is next-token prediction over a context. Training establishes a distribution over what typically follows what; a later alignment stage — instruction tuning and preference optimisation — reshapes that distribution towards answers people judge helpful and safe. At inference the model produces a probability distribution over the vocabulary at each step, and a sampling strategy picks the next token from it. There is no lookup table and no database inside the weights, which is why a model can be fluent about a topic it has no reliable information on.
For engineers, the practical consequences follow directly from that mechanism. Output is stochastic unless you constrain sampling, so identical inputs need not yield identical outputs. Cost and latency scale with tokens in and tokens out, which makes prompt size an architectural concern rather than a formatting detail. And the model’s knowledge has a boundary in time; anything after it must arrive through retrieval or a tool call.
The misconception that causes the most damage in production is treating the model as a knowledge base. It is a language engine that has absorbed a great deal of knowledge as a side effect. When correctness matters, the reliable pattern is to supply the facts in the prompt or fetch them with a tool, and use the model for what it is genuinely good at: understanding the request, and shaping the response.
Related terms
Frequently asked questions
How does a large language model actually produce an answer?
Why does the same prompt give me different answers?
Can I use a language model as a knowledge base?
Why does prompt size matter so much?
Articles covering this
Where Large Language Model (LLM) shows up in practice rather than in definition.