From Shallow Autocomplete to Deep World Modelling
This section explores the core mechanism of Large Language Models (LLMs): autoregressive next-token prediction. It contrasts the shallow, immediate context of a smartphone keyboard with the deep, global context of an LLM. It explains how the singular objective of guessing the next word forces the model to build an internal simulation of the world to resolve ambiguities (e.g., tracking suspects in a murder mystery or applying the laws of physics).
Belongs to the series: The Architecture of Approximation: How Next-Word Prediction Unlocks the Structure of Human Knowledge
The Keyboard in Your Pocket
You are typing a message to a friend. You thumb out "I'll meet you at the" and your phone, without being asked, floats three suggestions above the keyboard: pub, station, library. You tap pub. The phone did not think about the pub. It did not picture the sticky tables, the half-pint of lager, the friend already halfway through a packet of crisps at the corner table. It looked at the two or three words behind your cursor, scanned a small statistical table of what usually follows "meet you at the", and handed you the most frequent candidate. That is the whole trick. No world. No meaning. Just a very short memory and a frequency chart.
Now scale that trick up. Not by a factor of ten or a hundred, but by a factor of hundreds of billions. Replace the two-word lookback window with a context that can swallow an entire novel. Replace the frequency chart with a dense web of relationships that encodes, in compressed mathematical form, a sizeable fraction of everything humanity has ever written down. The result is a large language model. And here is the strange part: the task has not changed. The model is still doing the one thing your phone keyboard does. It is guessing which token comes next.
That sentence ought to feel underwhelming. After all the breathless coverage, after the think-pieces about artificial general intelligence and the warnings about existential risk, the core operation of every large language model on Earth is a glorified autocomplete. It never graduated to something harder. Nobody added a reasoning module on top, or a logic engine, or a truth-checker. The architects set a single, almost embarrassingly simple objective—minimise the probability of getting the next word wrong—and then let the mathematics run for months on thousands of graphics processors. What came out the other end was something that can pass a bar exam, write a working Python function, and explain quantum entanglement to a twelve-year-old. The simplicity of the task is the illusion. The complexity of what the task demands is the reality.
What "Guessing" Actually Requires
To understand why next-token prediction is not trivial, you have to appreciate what a token is and what "guessing" entails at scale. A token is not quite a word. It is a chunk of text—sometimes a whole word, sometimes a syllable, sometimes a single punctuation mark—that the model treats as an atomic unit. The English language, as processed by most contemporary models, breaks down into roughly 50,000 tokens. The model's job, at every single step, is to assign a probability to each of those 50,000 tokens being the correct next one. Not pick the best. Assign a probability to all of them. Then pick one, or sample one, and repeat.
On the surface, this looks like a multiple-choice question with 50,000 options. But the difficulty is not in choosing. The difficulty is in knowing enough to make the choice. Consider what you, as a reader, do when you encounter the sentence: "She poured the milk into the glass, but it was too warm, so the ___". You do not consciously reason through the physics. You simply know that milk is the referent of it, that warm milk is unpleasant, and that the next word is probably something like milk again, or perhaps a shift to she as the subject of a new clause. You know this because you have a body, you have drunk milk, you have felt the difference between cold and warm liquid on your tongue. The model has none of that. It has never tasted anything. It has never felt glass against its lips. And yet, to predict the next token correctly, it must behave as though it knows all of these things.
This is where the illusion of simplicity shatters. The task of predicting the next token, when the text is rich enough and varied enough, quietly demands that the model construct an internal representation of the world. Not because anyone told it to. Not because there is a "world module" in the architecture. But because the shortest path to a better guess, across trillions of training examples, is to encode the regularities of the world into the weights of the network. Physics arrives because sentences about falling objects follow patterns. Grammar arrives because syntactically valid sentences are overwhelmingly more common than invalid ones. History arrives because the corpus of human text is saturated with it. None of it was taught. All of it was inferred. The model learned the world the way a prisoner might learn the layout of a castle—by listening to the echoes in the walls.
The Murder Mystery Problem
Let us make this concrete with an example that any university student who has ever procrastinated through a crime novel will recognise. Imagine the model is processing the following passage:
"Detective Harrow stepped into the drawing room. Colonel Ashworth was slumped in the armchair by the fireplace, a letter opener buried in his chest. Lady Pemberton stood by the window, her hands trembling. The butler, Graves, hovered near the door. 'Nobody left this room after nine o'clock,' Harrow said. He looked at ___."
What comes next? A human reader knows, instantly, that the next word is likely Graves, or Lady Pemberton, or perhaps the three of them. The choice depends on narrative logic, on the geometry of the room, on who is most suspicious, on the conventions of the genre. To predict the next token here, the model cannot rely on shallow word frequencies. "Harrow looked at the" could be followed by window, door, floor, ceiling, Colonel, Lady, butler, three, body, letter, clock—any of a hundred options. The correct one depends on a web of contextual facts that the model must hold simultaneously: who is alive, who is dead, who is in the room, what the spatial arrangement is, what the detective's investigative priorities would be.
This is not language processing in the narrow sense. This is tracking a state. The model must maintain, across hundreds of tokens, a coherent representation of who is where, who is alive, who is suspicious, and what the genre conventions demand. The "dimmer switches" that govern the relationship between Harrow and Graves must be set differently from the switches governing Harrow and Colonel Ashworth, because one is a suspect and the other is a corpse. The model learned this not because someone programmed a rule saying "corpses cannot be looked at as suspects" but because, in the training data, detectives look at living suspects, not at dead men. The pattern is the rule. The rule is the pattern. And the model, in its blind optimisation, absorbed it.
Now multiply this by every genre, every domain, every kind of text that has ever been digitised. Legal briefs. Medical journals. Fan fiction. Parliamentary debates. Recipe blogs. Astrophysics papers. The model must track entities, relationships, causal chains, temporal sequences, and genre conventions across all of them simultaneously. The single objective of predicting the next token forces it to become, in effect, a general-purpose simulation engine for human knowledge.
Finishing the Line of Code
The same logic applies in domains that feel more structured than narrative prose. Consider a junior software developer using an AI coding assistant. She has written:
def calculate_average(scores):
if not scores:
return 0
total = sum(scores)
return
The cursor blinks after return. The model must predict the next token. To do so, it must understand that scores is a list, that total holds the sum of that list, that the function is called calculate_average, and that the average is the total divided by the number of elements. The next token is almost certainly total, followed by /, followed by len, followed by (. But arriving at that sequence requires the model to "know" what division is, what a list length is, and what the function's contract demands.
Nobody sat the model down and taught it arithmetic. Nobody wrote a rule that says "when a function is named calculate_average and has summed a list, the return statement should divide by the length." The model learned this because, in the millions of lines of Python in its training corpus, that is what happens. The pattern is universal enough, repeated enough, that it became a deep groove in the model's weight space. The groove is the knowledge. The knowledge is the groove.
What makes this remarkable—and what distinguishes it from the phone keyboard—is that the model is not simply memorising "sum(scores)" → "total / len(scores)". It is generalising. It can handle a function called compute_mean, or get_avg, or average_value. It can handle a list called grades, or temperatures, or x. The specific names do not matter. The structural relationship does. The model has abstracted the concept of averaging from the surface form of the code, and that abstraction is what allows it to generate correct completions in contexts it has never seen before.
This is, in a very real sense, understanding. Or at least, it is a functional analogue of understanding so complete that the distinction between the two becomes difficult to maintain. The model behaves as though it knows what averaging is. Whether it knows in the way a human knows—whether there is something it is like to be the model, whether there is a felt sense of comprehension—is a question we will return to later. For now, the functional point stands: the prediction task, pursued with sufficient scale and data, produces behaviour that is indistinguishable from knowledge.
Ice in the Sun: The Physics Nobody Taught
Here is a sentence that should, by all rights, be impossible for a system that "only predicts words":
"The ice cube sat on the windowsill in the July sun. After an hour, it was ___."
You know the answer. It is gone, or melted, or a small puddle, or nothing but a wet ring on the wood. You know this because you have seen ice melt. You have felt the cold of a cube against your palm and watched it weep into a stream. You have an embodied, physical, sensory understanding of thermodynamics that you acquired before you could read.
The model has no hands. It has no windowsill. It has never felt July sun on its skin. And yet it predicts the correct continuation with near-certainty. Why? Because the training corpus is full of sentences about ice melting. Full of children's stories about snowmen disappearing in spring. Full of science textbooks explaining phase transitions. Full of casual conversations—"I left my drink in the sun and the ice melted." The statistical weight of all those sentences presses the model's parameters into a configuration where ice + sun + time → melted is not just likely but overwhelmingly probable.
But here is the subtlety. The model did not just memorise "ice melts in the sun." It learned something closer to the underlying principle. If you ask it about a chocolate bar left in a hot car, it will predict melted. If you ask about a snowman in December, it will predict intact or still standing. If you ask about an ice cube in a freezer, it will predict solid or unchanged. The model has not memorised a single fact. It has learned a manifold—a continuous, high-dimensional surface where temperature, material, time, and state of matter interact in ways that mirror the actual physics of the world. The manifold was not designed. It was not programmed. It emerged, token by token, prediction by prediction, because it was the cheapest route to a better guess.
This is the point that the original text drives home with such elegance: nobody sat the model down and taught it chemistry or grammar or history. Those arrived because they were the cheapest route to a better guess. The model is not a student. It is an optimiser. And the thing it is optimising for—predictive accuracy across the entire corpus of human text—turns out to require, as a prerequisite, a reasonably accurate model of the world.
The Illusion, Unpacked
Why do we call this an illusion? Because the human mind, when confronted with the output of a large language model, instinctively reaches for explanations that involve intent, understanding, reasoning, and purpose. We say the model "knows" that ice melts. We say it "understands" the murder mystery. We say it "reasoned" its way to the correct line of code. And in a functional sense, these statements are defensible. The model's behaviour is consistent with knowledge, understanding, and reasoning. But the mechanism underneath is none of those things. It is a single, simple, mechanical operation: assign probabilities to tokens, pick one, repeat.
The illusion is not that the model is doing something simple. The model is doing something of staggering complexity. The illusion is that the complexity is of the kind we expect. We expect intelligence to look like reasoning—to look like a mind weighing evidence, considering alternatives, drawing inferences. What we got instead is intelligence that looks like statistics. Intelligence that looks like curve-fitting. Intelligence that looks like a very, very large lookup table with interpolation. And that is deeply unsettling to our intuitions about what thinking is.
For a generation that grew up with smartphones, with autocorrect, with search engines that seem to "know" what you want before you finish typing, the leap from predictive text to conversational AI can feel almost continuous. It feels like the same thing, just bigger. And in one sense, it is. The fundamental operation has not changed. But the scale has changed so dramatically that the behaviour has undergone a qualitative transformation. A puddle and an ocean are both water. But you cannot swim in a puddle. You cannot sail a ship across it. You cannot get lost in it. The ocean has emergent properties—waves, currents, tides, ecosystems—that the puddle simply does not possess. The large language model is the ocean. The phone keyboard is the puddle. They are made of the same stuff. They are not the same thing.
The Leap from Pattern to World
There is a moment in the training of a large language model—visible in the loss curves, in the benchmarks, in the qualitative samples—that researchers sometimes call a "phase transition". Below a certain scale of parameters, data, and compute, the model is a sophisticated parrot. It can complete clichés, finish proverbs, and regurgitate memorised passages. It is, essentially, a very expensive version of the phone keyboard. Then, as scale increases, something shifts. The model begins to generalise. It begins to handle novel inputs. It begins to combine concepts in ways that were not present in the training data. It begins, in short, to behave as though it has a model of the world rather than a model of the text.
This transition is not fully understood. It is, in some sense, the central mystery of modern artificial intelligence. Why does scale unlock generalisation? Why does adding more parameters and more data cause the model to move from memorisation to abstraction? The leading hypothesis—and it remains a hypothesis—is that the world has a lower-dimensional structure than the text that describes it. The text is high-dimensional, noisy, redundant. The world underneath it is more compact. And a sufficiently large model, trained on enough text, will inevitably discover that compact structure because it is the most efficient way to compress the data. The model learns the world because the world is the best compression of the text.
This idea—that knowledge is compressed in language, and that decompressing language yields knowledge—is not new. It echoes arguments in linguistics, in philosophy of language, in information theory. But it has never before been demonstrated at this scale, with this clarity, in a system that anyone can interact with. You can open a browser tab, type a question, and watch the residue of human thought reassemble itself into an answer. You can ask the model to write a sonnet about thermodynamics, or to explain the Treaty of Westphalia in the style of a sports commentary, or to debug a recursive function, and it will do so, fluently, without ever having been explicitly taught any of these things. The knowledge was always there, in the text. The model simply read it all.
Why This Matters to You
If you are between nineteen and twenty-five, you are in a peculiar position. You are old enough to remember a world before large language models, and young enough to spend the rest of your career in a world shaped by them. You will use them, or compete with them, or build them, or regulate them. You will write essays that your lecturers suspect were drafted by a machine. You will write code that an AI suggested. You will read news articles that may have been generated, summarised, or translated by a model. The boundary between human-authored and machine-generated text is dissolving, and you are the generation that will have to decide what that means.
Understanding the fundamental premise—that all of this emerges from next-token prediction—is not just an intellectual exercise. It is a practical necessity. If you believe the model is "thinking" in the way you think, you will trust it too much. You will assume it knows things it does not, that it understands context it has missed, that it is telling you the truth because it "means" to. If, on the other hand, you believe it is "just statistics" in the dismissive sense, you will underestimate it. You will fail to see that the statistics have converged on something that is, for all practical purposes, indistinguishable from knowledge. The truth is in the uncomfortable middle. The model is doing something that is neither thinking nor mere statistics. It is a third thing. A new thing. And figuring out what that third thing is—what it can do, what it cannot do, what it means for the nature of knowledge and the future of work—is the defining intellectual project of your generation.
The Weight of a Simple Task
Let us return, finally, to the phone keyboard. You are still typing that message to your friend. I'll meet you at the pub. You hit send. The phone did not think about the pub. But you did. You thought about the friend, the conversation you need to have, the fact that it is raining and you will need your coat, the fact that the pub closes at eleven and you have a nine o'clock lecture tomorrow. Your brain, in the half-second between the phone's suggestion and your tap, ran a simulation of the evening that drew on memory, emotion, spatial reasoning, social cognition, and planning. The phone did none of that. The phone guessed a word.
The large language model is somewhere in between. It did not think about the pub in the way you did. It has no friend, no lecture, no rain. But it did something more than guess a word from a frequency table. It weighed the context. It activated a region of its parameter space where pub, meeting, friend, evening, and conversation all cluster together. It considered the probability of station versus library versus pub and found that pub was most likely given the conversational register, the informal tone, the social context implied by "meet you". It did not think about the pub. But it thought about the word "pub" in a way that required, as a prerequisite, something that behaves a great deal like thinking about pubs.
That is the illusion of simplicity. The task is simple. The demands of the task are not. And in the gap between the simplicity of the objective and the complexity of what the objective requires, something extraordinary has emerged. Not consciousness. Not understanding, perhaps, in the philosophical sense. But something. Something that can read a murder mystery and track the suspects. Something that can finish a line of code and know what the function above it does. Something that can look at a sentence about ice in the sun and know, without ever having felt the cold, what happens next.
The model never graduated to a harder task. It did not need to. The hardest task was the simple one, all along.
Bibliography
-
Bender, E. M. and Koller, A. (2020) 'Climbing towards NLU: On Meaning, Form, and Understanding in the Age of Data', in Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. Online: Association for Computational Linguistics, pp. 5185–5198.
-
*Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, G., Henighan, T., Child, R., Ramesh, A., Ziegler, D. M., Wu, J., Winter, C., Hesse, C., Chen, M., Sigler, E., Litwin, M., Gray, S., Chess, B., Clark, J., Berner, C., McCandlish, S., Radford, A., Sutskever, I. and Amodei, D. (2020) 'Language Models are Few-Shot Learners', in Advances in Neural Information Processing Systems 33 (NeurIPS 2020)*. Vancouver: Curran Associates, pp. 1877–1901.
-
Chomsky, N. (1965)Aspects of the Theory of Syntax. Cambridge, MA: MIT Press.
-
Clark, A. (2016)Surfing Uncertainty: Prediction, Action, and the Embodied Mind. Oxford: Oxford University Press.
-
*Devlin, J., Chang, M.-W., Lee, K. and Toutanova, K. (2019) 'BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding', in Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)*. Minneapolis, MN: Association for Computational Linguistics, pp. 4171–4186.
-
Floridi, L. (2023)The Ethics of Artificial Intelligence: Principles, Challenges, and Opportunities. Oxford: Oxford University Press.
-
Goodfellow, I., Bengio, Y. and Courville, A. (2016)Deep Learning. Cambridge, MA: MIT Press. Available at: https://www.deeplearningbook.org (Accessed: 8 September 2026).
-
*Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J. and Amodei, D. (2020) 'Scaling Laws for Neural Language Models', arXiv preprint*, arXiv:2001.08361. Available at: https://arxiv.org/abs/2001.08361 (Accessed: 8 September 2026).
-
Lakoff, G. and Johnson, M. (1980)Metaphors We Live By. Chicago: University of Chicago Press.
-
Marcus, G. and Davis, E. (2019)Rebooting AI: Building Artificial Intelligence We Can Trust. New York: Pantheon Books.
-
*Mitchell, M. and Krakauer, D. C. (2023) 'The Debate over Understanding in AI's Large Language Models', Proceedings of the National Academy of Sciences*, 120(13), e2215907120. doi: 10.1073/pnas.2215907120.
-
Pearl, J. and Mackenzie, D. (2018)The Book of Why: The New Science of Cause and Effect. London: Allen Lane.
-
*Radford, A., Wu, J., Child, R., Luan, D., Amodei, D. and Sutskever, I. (2019) 'Language Models are Unsupervised Multitask Learners', OpenAI Technical Report*. Available at: https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf (Accessed: 8 September 2026).
-
*Searle, J. R. (1980) 'Minds, Brains, and Programs', Behavioral and Brain Sciences*, 3(3), pp. 417–424. doi: 10.1017/S0140525X00005756.
-
*Shannon, C. E. (1948) 'A Mathematical Theory of Communication', The Bell System Technical Journal*, 27(3), pp. 379–423. doi: 10.1002/j.1538-7305.1948.tb01338.x.
-
*Sutskever, I. (2023) 'An Observation on Generalization', NeurIPS 2023 Keynote Address*. Available at: https://neurips.cc/virtual/2023 (Accessed: 8 September 2026).
-
Tegmark, M. (2017)Life 3.0: Being Human in the Age of Artificial Intelligence. London: Allen Lane.
-
*Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł. and Polosukhin, I. (2017) 'Attention Is All You Need', in Advances in Neural Information Processing Systems 30 (NIPS 2017)*. Long Beach, CA: Curran Associates, pp. 5998–6008.
-
*Wei, J., Tay, Y., Bommasani, R., Raffel, C., Zoph, B., Borgeaud, S., Yogatama, D., Bosma, M., Zhou, D., Metzler, D., Chi, E. H., Hashimoto, T., Vinyals, O., Liang, P., Dean, J. and Fedus, W. (2022) 'Emergent Abilities of Large Language Models', Transactions on Machine Learning Research*. Available at: https://openreview.net/forum?id=yzkSU5zdwD (Accessed: 8 September 2026).
-
Wittgenstein, L. (1953)Philosophical Investigations. Translated by G. E. M. Anscombe. Oxford: Blackwell.