Start Here
What Is a Large Language Model? A Simple Explanation
A large language model is a computer program that learned from huge amounts of text to predict and write words. Here is what that means in plain English.
A large language model, or LLM, is a computer program that works with words. You type something, and it writes something back. ChatGPT, Gemini and Claude are all built on large language models.
An LLM scores possible next words (example percentages for illustration).
Why "large"?
The word large describes two things. First, the model learned from a very large amount of text: books, websites, articles and more. Second, the model itself is large. It is made of billions of tiny numbers, called parameters, that were adjusted during learning. For example, the GPT-3 paper (2020) describes a model with 175 billion parameters.
Why "language"?
Because the thing it works with is language. It reads words and writes words. Some newer models also handle pictures or sound, but the core idea started with text.
What does it actually do?
Here is the surprising part. At its heart, an LLM does one job: it guesses the next piece of a sentence. Many models are then tuned further to follow instructions (see how LLMs learn), but next-piece guessing is the core.
If you read "The cat sat on the ...", you probably think "mat" or "sofa". An LLM does the same thing, but it has seen so much text that it can guess well even for long and tricky sentences. When it guesses one word, then the next, then the next, you get a whole answer.
What it is not
- It is not a person. It does not have feelings or a body.
- It is not a search engine. It does not look things up unless it is connected to a search tool.
- It is not always right. It can sound sure and still be wrong.
A one-line summary
An LLM is a very big word-guessing machine that learned patterns from lots of writing.
Next, read how an LLM learns or what a token is.
Three things to try today
- Play the guessing game. Ask a friend to read the start of a sentence and stop. Guess the next word. You just did what an LLM does, only much slower. Try the full next-word game.
- Ask a chatbot the same question twice. Do you get exactly the same answer? Usually not. The model picks among likely words, so answers can vary. See temperature. Do this with a grown-up, using an app whose age rules allow it. See AI safety for families.
- Ask it something it cannot know, such as what you ate for breakfast. Some chatbots say they do not know. Others may invent an answer. That is a hallucination.
Big words, small meanings
| Word you hear | What it means here |
|---|---|
| Model | The trained program that makes the guesses |
| Parameters | The adjustable numbers inside it (more) |
| Training | The long practice stage (how it works) |
| Prompt | What you type |
| Token | A small piece of text (more) |
For grown-ups reading along
An LLM is a statistical model of language. It does not keep a list of facts to look up, though it can sometimes repeat text it saw in training (researchers pulled word-for-word passages out of GPT-2), and it has no goals of its own. It produces text that fits patterns in its training data and in your prompt. This is why it is excellent at rewriting and explaining, and unreliable as a sole source for facts. See how to check an AI answer.
Quick check
- What does LLM stand for? (Large language model.)
- What is the one job at the heart of an LLM? (Guess the next token.)
- Is it always right? (No.)