PhyseaWiki How AI actually works physea.ai →

AI, ML & LLMs

What actually makes a large language model work?

A large language model is trained to do one thing: predict the next word in a stretch of text. Repeated over enormous amounts of text, that simple objective is what produces its broad, language-fluent behavior.

Last updated 2026-07-25 · Physea Labs

Underneath the chat window, a large language model does something that sounds almost too simple: it predicts the next word. It reads the text so far, works out what is most likely to come next, and produces that.[1] Feed one the start of a sentence like “The actress that played Rose in the 1997 film Titanic is named…” and it doesn’t look the answer up; it generates probabilities for every candidate next word based on patterns in its training data, then picks one of the highest-probability options to continue the text.[1] When you ask it a question, it is not looking up an answer. It is continuing your text in the way its training suggests is most probable. This step-by-step process has a name: autoregressive generation, where each new word is conditioned on every word produced so far.

The model learns this skill by reading. It is shown an enormous amount of text and, over and over, tries to guess the next word, checks its guess against what the text actually said, and adjusts itself to do better. This is called self-supervised pre-training, because the text supplies its own answers and no human has to label anything.[1] No definitive cutoff makes a model “large”; the word just signals that these systems are trained on a lot of text with a lot of internal settings.[2]

The surprising part is how much this one trick yields. A system trained only to predict the next word ends up able to answer questions, draft emails, write code, and translate, because doing all of those well is, in the end, a matter of producing the right next words. That is also why an LLM can sound confident and still be wrong: it is built to produce likely text, which is not the same as true text.

One mechanism: predict the most likely next word Produces real capability answering, drafting, coding, translating Produces confident wrongness too likely text isn't the same as true text
The same mechanism that makes it capable is exactly what makes it occasionally, confidently wrong. There's no separate 'mistake' system to blame.

Well-known large language model families

References

  1. The Surprising Power of Next Word Prediction: Large Language Models Explained, Part 1 — Center for Security and Emerging Technology, Georgetown
  2. Large language model — Wikipedia