Every AI chatbot you have used — the one that drafts your emails, explains a bug or summarises a report — runs on a large language model, or LLM. The name sounds intimidating, but the core idea is surprisingly simple. Here is the plain-English version.
The one-sentence version
A large language model is a program trained on an enormous amount of text to do one thing extremely well: predict what comes next. Give it the start of a sentence and it estimates which word is most likely to follow, then the next, and the next. String enough of those predictions together and you get paragraphs, code, poems and answers.
That is why an LLM can write fluently about almost anything: it has seen patterns of language from a huge range of topics, and it is very good at continuing them.
Tokens: how a model sees text
Models don’t read words the way we do. Text is first split into tokens — whole words, pieces of words or punctuation marks. As a rough rule of thumb, a token is about three-quarters of an English word, so 100 tokens is roughly 75 words.
Every model also has a context window: the maximum number of tokens it can consider at once, including your question, any documents you paste in and its own reply. Anything outside that window is simply invisible to it.
How a model learns
- Pre-training. The model reads a vast collection of text and practises next-token prediction billions of times. Each time it guesses wrong, its internal settings — called parameters or weights — are nudged slightly so the next guess is better.
- Fine-tuning. The raw model is then trained further on carefully chosen examples of helpful answers, so it follows instructions instead of just continuing text.
- Human feedback. People rate or compare the model’s answers, and the model is tuned toward the responses people prefer. This is what makes a chatbot feel conversational and polite.
Why the transformer mattered
Modern LLMs are built on an architecture called the transformer, introduced by Google researchers in the 2017 paper “Attention Is All You Need”. Its key idea, attention, lets the model weigh which earlier words matter most when predicting the next one — so in “the trophy didn’t fit in the suitcase because it was too big”, it can work out what “it” refers to.
Transformers also train efficiently on modern chips, which made it practical to scale models up to the sizes behind today’s assistants.
What LLMs are good at — and where they slip
LLMs are excellent at drafting, summarising, translating, explaining concepts at different levels and helping with code. But because they predict plausible text rather than look facts up, they have well-known weak spots:
- They can state false things with complete confidence — often called hallucinations.
- Their built-in knowledge stops at a training cutoff, unless the tool connects them to search or other data.
- Small changes in how you phrase a question can change the answer.
Key takeaways
- An LLM predicts the next token, one step at a time, using patterns learned from huge amounts of text.
- Pre-training teaches language; fine-tuning and human feedback teach it to be a helpful assistant.
- Fluent is not the same as correct: check facts, figures and sources before you rely on them.
Next up: put this into practice with Prompting 101: how to get better answers from AI chatbots.