Independent explanatory journalism — U.S. & World

Sourced. Verified. Corrected when wrong.

THE EXPLANATORY NEWSROOM

Explaining how the systems behind the headlines actually work — in politics, business, technology, science and culture.

How Large Language Models Actually Work

Rows of high performance GPU server racks in a research computing facility

Language models have moved from research curiosity to everyday tool in a remarkably short period, and public understanding has not kept pace with deployment. The underlying mechanism is neither magic nor a database lookup. It is large-scale pattern learning applied to sequences of text, and knowing how it works clarifies what these systems can and cannot be trusted to do.

Tokens, not words

A model does not read words. Input text is broken into tokens, subword fragments produced by a learned vocabulary. Common words are single tokens; unusual words split into several. Each token is mapped to a vector of numbers, an embedding, positioned so that tokens appearing in similar contexts sit near one another.

Read more
Data Centers and the Electricity Problem Behind the AI Boom

This is why models handle spelling tasks awkwardly. The letters inside a token are not directly visible to the computation, so counting characters or reversing a word is harder for the architecture than answering a conceptual question.

Attention and the transformer

The dominant architecture is the transformer, introduced in 2017. Its central mechanism, self-attention, lets every position in a sequence weigh the relevance of every other position. Stacking many attention layers with feed-forward networks between them allows the model to build progressively more abstract representations of the input. The original paper describing this architecture is available through arXiv.

The practical advantage over earlier recurrent designs is parallelism. Attention computations across a sequence can run simultaneously on modern accelerators, which is what made training on internet-scale corpora feasible.

Read more
Ransomware: How Attacks Unfold and How Organizations Recover

Pretraining: prediction at scale

Pretraining has one objective: given a sequence of tokens, predict the next one. Errors are measured and propagated back through the network to adjust billions of parameters. Repeated across trillions of tokens, this simple objective forces the model to encode grammar, factual associations, reasoning patterns and stylistic conventions, because all of them help predict text.

Nothing in this process stores documents verbatim in a retrievable form. The model retains statistical structure, which is why it can produce fluent text on a topic while getting specific details wrong.

Post-training and alignment

A pretrained model completes text but does not reliably follow instructions. Post-training addresses that. Supervised fine-tuning on curated instruction-response pairs teaches the format of helpful answers. Reinforcement learning from human or model-generated preference signals then adjusts behavior toward responses people rate as better.

Read more
How the Federal Reserve Sets Interest Rates

This stage shapes tone, refusal behavior, and willingness to express uncertainty. It is also where most differences between competing products originate, since base capabilities across similarly sized models tend to converge. Technical documentation on evaluation practice is maintained by groups including the National Institute of Standards and Technology.

Why models make things up

Fabrication is a direct consequence of the training objective. The model is optimized to produce plausible continuations, not to verify claims, and it has no built-in mechanism for distinguishing a well-supported fact from a well-formed guess. Confidence in phrasing is unrelated to accuracy.

Retrieval augmentation partially addresses this by fetching source documents at query time and instructing the model to answer from them, which makes claims checkable. It reduces but does not eliminate error, since the model can still misread or over-generalize from what it retrieves.

Context windows and cost

A model can only attend to a bounded amount of text at once, the context window. Longer windows allow more documents or conversation history but increase computation, and empirical work shows retrieval accuracy within very long contexts can degrade toward the middle of the input.

Inference cost scales with tokens processed and generated, which is why practical deployments invest heavily in caching, distillation to smaller models, and routing simple queries away from the largest models. Ongoing benchmark and safety research is published by the Stanford Institute for Human-Centered AI.

What this implies for use

The reliable pattern of use follows from the mechanism. These systems are strong at transformation, summarization, drafting and explanation where the source material is supplied. They are weaker as authorities on specific facts, current events outside their training data, arithmetic, and anything requiring guaranteed consistency. Treating output as a capable first draft to be verified, rather than as a citation, aligns usage with how the technology actually works.

About this article. ISU News sources every substantive claim to primary documents, official data or peer-reviewed research, and links to them directly so readers can verify our work. Our full standards are set out in our editorial guidelines. If you believe we have made a factual error, please tell us and we will correct it under our corrections policy.

More From ISU News