How a language model works
10 questions on next-token prediction, training, parameters and inference. With explanations.
- 10 questions
- Stopwatch
- Instant feedback
Sample questions
Play now ↑Answers stay hidden. Start the quiz to play them.
Sample 1
What does a language model do, at its core, when it writes an answer?
- Searches the internet for a matching page
- Looks up a complete answer in a database
- Predicts the most likely next piece of text, given what it has seen so far
Sample 2
Why is a fluent answer not proof that it is correct?
- Fluent answers are always checked by a human first
- The model produces what fits the context, not what it has proved
- Fluent answers come from a separate fact checker, which is sometimes wrong
How it works
- One question per screen. An answer is final once sent.
- You see right away whether you were right, with a short explanation.
- The stopwatch runs: on equal scores, the faster player ranks first.
- Only your best attempt counts, so replaying is never risky.
About this quiz
Ask an AI assistant for the capital of Italy and it answers almost instantly. It feels like a lookup, as if the answer were stored somewhere and fetched, but nothing is being looked up. A language model works out which piece of text is most likely to come next, given everything it has been shown so far, writes that piece, and repeats the process until the answer is complete. That single idea explains most of what makes these tools impressive and most of what makes them frustrating.
The pieces of text a model writes are called tokens, and each one is chosen from a set of probabilities. Several continuations may be likely at once, and once one is chosen, the rest of the answer follows from it. That is why the same prompt can produce two different answers, and why small early differences can grow into very different replies. It is also why prediction is much more than autocomplete. To predict well, a model needs an internal grasp of language, structure and the way ideas connect, which is what allows it to produce something it never saw written in any one place.
Two phases are worth keeping apart. Training is the slow, expensive stage in which the model reads enormous amounts of text and adjusts billions of numbers, called parameters, a little after every mistake. Those numbers together hold what the model learned. Using the model, known as inference, applies the learned parameters to a new prompt without changing them. The provider does the costly training in advance, while each request you send pays for inference, which is usually priced by the amount of text processed.
This picture also explains the weak spots. A model is tuned to produce text that fits, and a statement can fit perfectly and still be false. Fluency is therefore not evidence of truth. A coding assistant may suggest a package name that looks entirely plausible and does not exist, because a made-up name looks exactly like a real one to a system that predicts what fits. Checking facts, names and claims is always a separate step.
Knowing this changes how you work with the tool. You can give the model the facts it needs rather than hoping it remembers them, ask it to show its reasoning so you can inspect the steps, and treat any detail that matters, such as a number, a quotation or the name of a library, as something to verify. The model is a powerful generator of likely text, and using it well means pairing that strength with your own checks.
Finally, it helps to separate the model from the interface around it. The model is the part that produces the answer. The chat window, the file reader, the search tool and the other features are the product built on top. When you ask a question, the model knows only what it learned in training, what is in your conversation and what its connected tools return. Anything else has to be provided. This quiz has 10 questions on next-token prediction, training versus inference, parameters, variability, and what a model does and does not know. No maths or coding is needed, and every answer is explained.
Questions and answers
›How long does the quiz take?
About 3 to 4 minutes for 10 questions at roughly 20 seconds each, with a short explanation after every answer.
›Do I need technical knowledge?
No. The quiz explains the ideas in plain words and uses everyday examples. It is a good starting point before reading more technical material.
›What does a language model actually do?
At its core it predicts the next piece of text, called a token, based on the text so far. It adds that piece, then predicts the next one, and continues until the answer is finished. A complete answer is never stored and retrieved. It is built step by step from probabilities learned during training.
›What is the difference between training and inference?
Training is the learning phase, when the model processes huge amounts of text and its parameters are adjusted. It is slow and costly. Inference is the use phase, when the finished model answers your prompt without changing its parameters. When you chat with an assistant, you are using inference.
›What are parameters?
Parameters are the numbers inside a model that training adjusts. Modern language models have billions of them. No single number holds a fact, but together they encode the patterns of language and knowledge the model absorbed. When people compare model sizes, they usually mean how many parameters a model has.
›Why can the same prompt give different answers?
Because the model chooses among several likely continuations rather than following a fixed script. Once an early piece of text is chosen, everything after it depends on that choice, so small differences grow. Some settings make the output more or less random, but a degree of variation is normal.
›Why is a fluent answer not proof that it is right?
Models are trained to write text that fits the context, and wrong statements can fit just as well as right ones. A confident tone is a style the model learned, not a measurement of accuracy. For anything that matters, such as a fact, a quotation or a package name, check a reliable source or run a test.
›What does a model know when I ask it a question?
It draws on what it learned during training, the text of your current conversation and the results of any tools it is connected to, such as search or a file reader. It does not know your intentions, your project or recent events unless you provide them. That is why supplying relevant context improves answers so much.