What is an LLM in AI?
A large language model is an AI system trained on huge amounts of text to predict the next word, which lets it answer, write and summarise.
Rung 1 Explain like I'm 6
Imagine a friend who has read every book in a giant library. You start a sentence, "Once upon a...", and your friend shouts "time!" because they have seen it so many times. Now imagine they keep going, one word after another, and the words make sense together. That friend is like an LLM. It does not look things up in the books while it talks. It learned patterns from reading, and now it plays a very, very good game of "guess the next word".
Rung 2 High-school level
LLM stands for large language model. It is a kind of AI that is trained on an enormous amount of text to do one job: predict the next token, a word or part of a word. Do that well enough, over and over, and you get answers, essays, code and translations. ChatGPT, Claude, Gemini and Llama are all built on LLMs.
"Large" means the model has billions of parameters: adjustable numbers that are tuned during training. "Language model" means it models which text is likely to come next.
Some common comparisons:
- LLM vs generative AI: generative AI is any AI that makes new content, including images and music. LLMs are the text-making part.
- LLM vs SLM: a small language model has far fewer parameters, so it can run on a laptop or phone, but usually knows and reasons less.
- LLM vs RAG: RAG is not a different model. It is a method that looks up documents and pastes them into the LLM's input so answers rest on real sources.
- LLM vs AI agent: an agent is an LLM placed in a loop with tools, so it can act, check results and try again.
Rung 3 Undergraduate level
An LLM generates text autoregressively:
- Split the prompt into tokens and turn each into a vector (an embedding).
- Pass the vectors through a stack of transformer layers.
- Output a probability for every token in the vocabulary.
- Pick one token, append it to the input, and go back to step 2.
A toy example, with made-up numbers: given "The cat sat on the", the model might give "mat" 0.41, "floor" 0.22, "sofa" 0.09, and tiny probabilities to thousands of other tokens. A setting called temperature controls how adventurous the pick is. At temperature near zero it almost always takes "mat".
Training has two main phases. Pretraining shows the model trillions of tokens and adjusts parameters to raise the probability of the token that really came next (minimising cross-entropy loss). Post-training turns that raw predictor into an assistant: fine-tuning on example conversations, then reinforcement learning from human preferences or from automatic checks.
The model's knowledge is stored in its parameters, frozen at a cutoff date. It only "remembers" a conversation because the conversation is fed back in each time, up to its context window.
Check yourself: How does an LLM write a whole paragraph if it only predicts one token?
It predicts a token, adds it to the input, and repeats, one token at a time.
Rung 4 Graduate level
Scale was the first lever. GPT-3 (2020) had 175B parameters and showed that a big enough model could do new tasks from a few examples in the prompt [1]. Chinchilla (2022) showed that many models were undertrained: for a fixed compute budget, parameters and training tokens should grow together, and its 70B model beat larger ones by training on about four times more data [2]. Data scale has kept climbing; Llama 4 (2025) was pretrained on more than 30 trillion tokens [5].
Memory is the practical constraint. At 16-bit precision each parameter takes 2 bytes, so a dense 70B model needs about 140 GB just for weights, before the memory that grows with context length.
Two design choices ease this:
- Mixture of experts (MoE): only some sub-networks run per token. Llama 4 Maverick has 400B parameters in total but 17B active per token [5].
- Quantization: storing weights in fewer bits. OpenAI's open-weight gpt-oss-120b (117B total, 5.1B active) fits on one 80 GB GPU because its mixture-of-experts weights are stored in 4-bit MXFP4, and the smaller gpt-oss-20b (about 21B parameters) runs within 16 GB [4].
This is the real line in LLM vs SLM: a 20B-class model that fits on a laptop trades breadth and peak reasoning for privacy, cost and offline use.
Context windows set how much the model can read at once. Current Claude models (November 2026) read up to 1 million tokens and write up to 128K in one reply [7]. A bigger window is not the same as reliable use of all of it, which is why RAG is still common.
Rung 5 PhD level
Why does next-token prediction yield general ability? One view is compression: to predict text well, a model must capture syntax, facts and some of the reasoning that produced the text. Scaling-law work (Kaplan et al., 2020; Hoffmann et al., 2022 [2]) found loss falls smoothly as a power law in parameters, data and compute. Whether specific abilities appear smoothly or suddenly ("emergence") partly depends on how they are measured, and is still argued.
Key limits:
- Hallucination: the objective rewards plausible text, not true text. Models can state false things fluently.
- Faithfulness: a model's written chain of thought need not reflect the computation that produced its answer.
- Long context: models often use information in the middle of long inputs less well than the start or end.
- Data: high-quality human text is finite. Synthetic data and reinforcement learning on checkable tasks are the main responses.
- Evaluation: public benchmarks leak into training data, so scores overstate ability.
Open problems include grounding claims in sources, learning after deployment without forgetting, reliable uncertainty estimates, and explaining internal mechanisms well enough to trust high-stakes use.
Check yourself: Why can an LLM state a false fact confidently?
It is trained to produce likely text, and a likely-sounding sentence is not always a true one.
Rung 6 State of the art: what experts work on now
Last checked 18 November 2026.
Reasoning through reinforcement learning was the big shift of 2025. DeepSeek-R1, peer-reviewed in Nature in September 2025, showed that rewarding only verifiably correct answers in maths and code, without human-written reasoning examples, made a model learn to reason step by step. It reported 79.8% pass@1 on AIME 2024, and the paper notes weaknesses such as language mixing and prompt sensitivity [3].
Mixture of experts became standard for open-weight models. Llama 4 (April 2025) was Meta's first MoE family [5]. OpenAI released gpt-oss under the Apache 2.0 licence in 2025, with the 120B model using 5.1B active parameters [4]. Open weights that run on one GPU or a laptop narrowed the gap between "LLM" and "SLM".
Context windows reached a million tokens in frontier products. Claude Opus 4.6 (February 2026) added a 1M-token window in beta on its API, with prompts over 200K tokens billed at a higher rate [6]; by November 2026 1M is the standard window for current Claude models [7]. Llama 4 Scout claims 10M tokens [5]. Vendors' figures describe capacity; how well a model actually uses that much context still has to be tested per task.
Sources
- Brown et al.: Language Models are Few-Shot Learners (GPT-3) (2020)
- Hoffmann et al.: Training Compute-Optimal Large Language Models (Chinchilla) (2022)
- DeepSeek-AI: DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning (Nature 645) (2025)
- OpenAI: gpt-oss-120b model card (2025)
- Meta AI: The Llama 4 herd (2025)
- Anthropic: Introducing Claude Opus 4.6 (2026)
- Claude API docs, Context windows (2026)