Ask a chatbot why leaves change color. It will tell you about chlorophyll, shorter days, and pigments that were there all along. Ask it to identify a scholarly article that never existed, and it may supply a title, an author, a journal, and a publication date. Both answers can arrive in the same calm, professorial voice.
The unsettling part is not that a machine sometimes gets things wrong. People do that all day. It is that the machine can sound equally well informed when it is explaining a fact, making an inference, or supplying a plausible invention. Nothing in the elegance of a sentence tells you which one you have received.
So what is actually going on between your question and the answer appearing on your screen?
The sentence begins as arithmetic
The first thing to understand is that a language model generally does not retrieve a prepared answer from a hidden encyclopedia. Unless it has been given access to search or another information tool, it generates a response from patterns encoded during training and from the words in the current conversation.
Your question is first broken into tokens: pieces of text that might be whole words, fragments of words, punctuation marks, or even single characters. The model turns these tokens into numerical representations and processes them through many layers of a neural network. In most leading language models, that network is built on an architecture called the transformer.
One of its important mechanisms is attention. It helps the system determine which parts of the text matter to other parts. The word “it” may refer to a dog mentioned three sentences earlier rather than a car in the sentence immediately before it. The model is not following an English grammar rulebook to make that connection; it is using relationships learned from vast quantities of examples.
At the end of this computation, the model assigns scores to possible next tokens. A decoding procedure selects one of them. That token is added to the response. Then the process repeats, now taking into account the text already produced.
Suppose the emerging sentence is “The capital of France is”. The model will assign an overwhelmingly favorable score to “Paris” in an ordinary context. But its machinery is not limited to such easy completions. It can also produce a new analogy, revise a paragraph, explain a mathematical method, or write a passage in the style of a nineteenth-century travel journal. In every case, visible language is assembled a token at a time.
That does not mean the machine necessarily chooses the single most probable token on every turn. Different decoding settings can make outputs more predictable or more varied. Nor does it mean every answer is composed without intermediate work: some models generate hidden reasoning tokens before presenting a response, and some can use calculators, browsers, or databases. But the text you ultimately read is still generated through this sequence of computations.
Where did the ability come from?
During pretraining, a language model repeatedly tries to predict missing or subsequent text and adjusts an enormous collection of numerical parameters when its predictions are wrong. It does this across books, websites, code, and other training material. Over time, the parameters come to encode a complicated web of relationships among words, subjects, styles, and facts.
That is why “it just copies things from the internet” is a bad explanation. Models can sometimes memorize and reproduce material, but they can also assemble connections that were never laid out together in a single document. To predict language well, the system has had to learn a great deal about the world that language describes—or, more precisely, about how that world is represented in its training data.
After pretraining comes further instruction-oriented training. Human examples, preferences, and other feedback teach the system to answer questions, keep to the subject, decline some requests, and sound helpful rather than merely continue a passage of prose. The polite assistant who responds directly to you is, in part, the result of this second education.
Notice what these two lessons do not guarantee. The first rewards successful prediction. The second rewards behavior judged useful and appropriate. Neither is the same thing as independently checking every statement against reality.
Why the fake footnote sounds so real
A language model has seen the shape of a scholarly citation countless times. It knows, in a statistical and structural sense, how authors’ names, article titles, journal names, dates, and page numbers fit together. If it cannot reliably recover a real reference, it may still produce one that looks right. What comes out can be an excellent imitation of evidence.
Researchers call such false but plausible outputs hallucinations, although the word misleadingly suggests an experience inside the machine. In a 2025 paper, OpenAI researchers argued that part of the problem is painfully ordinary: training and evaluation systems often reward a correct guess more than an admission of uncertainty. A model rewarded for answering can learn to answer when it should say it does not know.
This is more dangerous than an occasional absurdity. An invented citation can be surrounded by perfectly sound historical context. A mistaken medical claim can appear in the middle of an otherwise careful explanation. A wrong number can sit inside an elegant table. The prose gives the reader no reliable warning that the foundation has shifted.
Even asking the system to explain how it reached its conclusion is not a complete solution. An explanation it generates about its own reasoning can itself be a plausible reconstruction, rather than a faithful account of every internal step. Some systems can inspect sources or expose intermediate work, but fluent self-explanation is not the same as an audit trail.
And yet it is doing more than autocomplete
There is an equally tempting mistake in the other direction: dismissing all this as a glorified phone keyboard. The comparison captures the next-token objective but misses what sufficiently powerful models learn in order to perform it.
In 2025, researchers at Anthropic investigated activity inside one of their Claude models. They found evidence of intermediate conceptual steps and planning ahead, including in tasks where a model had to connect separate facts. Further work published in 2026 identified internal representations that could be used across different reasoning tasks and could influence what the model eventually said. These are findings about particular models, not a complete map of AI cognition. But they make the simple picture of a machine mechanically stringing together familiar phrases increasingly inadequate.
A system can be trained to predict the next token and still develop representations that support inference, abstraction, and planning. The training objective is not a full inventory of the abilities that emerge from it. A child can learn a language by hearing speech without becoming merely a recording of the people around her; the analogy is imperfect, but it shows why the method of learning does not settle every question about the result.
Does that mean an AI understands? It depends on what we mean. If understanding includes using concepts accurately, drawing inferences, and applying knowledge in unfamiliar situations, these systems demonstrate important parts of it. If it requires lived experience, subjective awareness, or a human being’s sense of what is at stake, the evidence is far less settled. Producing a convincing paragraph about grief does not establish that its author has grieved.
Knowing something is not the same as sounding certain
The useful distinction is not between a clever machine and a stupid one. It is between an answer that has been checked and an answer that has merely been composed.
Give an AI a messy draft and ask it to find the argument, improve a transition, or produce three possible objections. Its ability to work with language may be exactly what you need. Ask it for the date of a little-known court decision, the current terms of an insurance policy, or a quotation from an obscure book, and the standard changes. Now you need a source you can inspect, not just a sentence that sounds as though someone already did.
Search tools, retrieval systems, and calculators can help. They allow a model to bring outside evidence into its response instead of relying only on what its training encoded. They do not make it infallible: it can misunderstand a source, select the wrong one, or make a faulty inference from correct information. But they make verification possible in a way that unsupported fluency does not.
We have spent centuries learning to associate a well-formed argument with an informed mind. That habit is not foolish; it is part of how human conversation works. It is simply no longer sufficient. A machine can produce the surface of understanding so well that the surface itself becomes a source of confusion.
Perhaps the question is not whether AI knows what it is talking about. Sometimes it does, in ways we can test. Sometimes it arrives at a correct answer through impressive reasoning. Sometimes it guesses. The important question is whether we can tell the difference.
The machine’s manners will not tell us. We still have to ask for the evidence.
Research behind this essay: OpenAI on tokens and model output; Vaswani et al., “Attention Is All You Need” (2017); OpenAI on training models to follow instructions (2022); OpenAI on hallucinations (2025); Anthropic on internal reasoning (2025); and Anthropic on a language-model “global workspace” (2026).