Jul 18, 2026 Foundations Technical 14 min read
AI Fundamentals Series Part 1 of 5

How Large Language Models Work: The Complete Non-Technical Explanation

By Arjun Jaggi  ·  Enterprise AI Strategy

Every consequential AI decision your organization will make in the next five years depends on understanding one thing correctly: what a large language model actually is. Not what the marketing materials say it is. Not the analogy your vendor used. What it actually does, mechanically, and why that determines what it can and cannot do for your business.

The confusion is understandable. LLMs produce outputs so fluent, so apparently knowledgeable, and so responsive that it is natural to model them as some kind of intelligent retrieval system, or as a smarter version of search, or as a system that "knows" things in the way a human expert knows them. None of these analogies is accurate, and each one leads to a different kind of deployment mistake. A leader who thinks of their LLM as a database will be confused when it confidently returns wrong answers. A leader who thinks of it as a search engine will be surprised when it generates content that has no factual basis in any document. A leader who thinks of it as an expert system will be baffled by its inconsistency.

The actual description is less mystical and more useful: an LLM is a very large statistical function that predicts the most likely continuation of a sequence of tokens, trained on an enormous amount of text until that prediction becomes remarkably good. Once you hold that description clearly, most of the capabilities and limitations of LLMs become predictable rather than surprising.

175B
Parameters in GPT-3, the model that shifted industry attention to scale. Each parameter is a number that gets adjusted during training (Brown et al., arXiv:2005.14165)
1.4T
Training tokens used for Chinchilla, demonstrating that data volume matters as much as model size (Hoffmann et al., arXiv:2203.05843)
~0.75
Words per token on average in English text using subword tokenization. 100,000 tokens is roughly 75,000 words

The One Thing LLMs Do

A large language model has one fundamental objective during training: predict the next token. Not the next word, the next token. A token is a chunk of text that the model's vocabulary contains. In most modern systems, tokens are subword units produced by a method called Byte Pair Encoding, which splits common words into whole units and rare words into smaller pieces. On average, a token represents roughly three quarters of a word in English.

The training process works as follows. You take an enormous collection of text, perhaps hundreds of billions to trillions of tokens drawn from web pages, books, code repositories, and other sources. You feed that text into the model one sequence at a time. For each sequence, the model tries to predict the next token. When it is wrong, an algorithm called backpropagation calculates how each of the model's parameters contributed to the error and nudges them slightly in the direction that would have made the prediction more accurate. After this process runs across billions or trillions of examples, the model's parameters have been adjusted to encode an enormous amount of statistical knowledge about which tokens tend to follow which other tokens in which contexts.

The result is a system that can complete almost any text you give it in a way that sounds coherent, because producing coherent-sounding text is exactly what it was trained to do. Understanding what the model is actually computing is the key to understanding both its impressive capabilities and its hard limits.

What Tokens and Parameters Actually Are

Two concepts deserve more precision than they usually get: tokens and parameters.

A token is the basic unit of text that the model processes. Modern LLMs use subword vocabularies, typically containing 32,000 to 128,000 tokens. Common English words like "the" or "and" are single tokens. Less common words get split. "Tokenization" might become "token" + "ization". Code tokens follow different splitting patterns. When someone says a model has a "context window of 128,000 tokens," they mean it can process approximately 96,000 words of text at once before it loses access to earlier parts of the conversation. This limit is architectural, not arbitrary, and has real consequences for how you design applications.

A parameter is a single number in the model's internal representation. The model's parameters collectively determine how it transforms an input sequence into a predicted probability distribution over the next token. GPT-3 has 175 billion such numbers. Each one was learned during training and encodes, collectively with all the others, the statistical patterns the model absorbed from its training corpus. More parameters allow the model to encode more complex patterns, which is one reason larger models tend to perform better, up to a point that depends on how much data was used for training.

The Architecture: Transformer Blocks Stacked Deep

The architecture that made large language models practical is the Transformer, introduced in research published in 2017 (Vaswani et al., arXiv:1706.03762). Before the Transformer, language models processed sequences one token at a time, which made it impossible to capture long-range dependencies efficiently. The Transformer introduced the attention mechanism, which allows every token in the input to directly influence every other token in a single computational step.

At a high level, the Transformer works in three stages. First, each input token is converted to a vector representation called an embedding: a point in a high-dimensional space where similar tokens end up close together. Second, positional information is added to each embedding, since the Transformer processes all tokens in parallel and needs another way to represent sequence order. Third, the sequence passes through a stack of Transformer blocks. Each block contains two components: a multi-head attention layer, where each token attends to other tokens and updates its representation based on what it finds, and a feed-forward network, where each token's updated representation is processed independently through a small neural network. Modern frontier models stack 80 to 96 or more of these blocks.

The depth matters because the early layers learn simple patterns like grammar and syntax while later layers learn more abstract patterns like concepts, reasoning structures, and factual associations. This hierarchical learning is what allows a single model to handle diverse tasks: writing code, answering factual questions, translating languages, and summarizing documents all depend on the same learned representations at different layers of abstraction.

"An LLM is not a database that looks up correct answers. It is a function that generates the most statistically plausible continuation of your input. Understanding this distinction changes how you evaluate every capability claim."

How Scale Changes Everything

The practical success of large language models came not from a single architectural breakthrough but from a discovery about scale. Research by Kaplan et al. (arXiv:2001.08361) found that language model performance follows a smooth power-law relationship with three variables: the number of parameters, the number of training tokens, and the amount of compute. This means that predictably, as you increase any of these three things, performance improves in a way that can be forecast in advance.

The practical implication is that building a better model, within the same architectural family, is largely an engineering problem of gathering more data and running more compute. This insight drove the rapid escalation in model size and training budgets that defined the early 2020s.

A subsequent finding complicated the picture. Research at DeepMind (Hoffmann et al., arXiv:2203.05843) showed that earlier large models had been undertrained relative to their size: the scaling law requires that you scale training data in proportion to model parameters. A 70-billion parameter model trained on 1.4 trillion tokens, called Chinchilla, outperformed a 280-billion parameter model trained on fewer tokens on nearly every benchmark. The lesson was that data volume matters as much as model size, and that many of the largest models being deployed were not compute-optimal.

0 50B 100B 150B 1.5B 70B 175B GPT-2 (2019) Chinchilla (2022) GPT-3 (2020) Published parameter counts from original research papers Parameters
Parameter counts for three landmark models. Chinchilla (70B) outperformed GPT-3 (175B) on most benchmarks despite fewer parameters, because it was trained on proportionally more data. Sources: Brown et al. arXiv:2005.14165; Hoffmann et al. arXiv:2203.05843.

From Text Predictor to Useful Assistant

A model that has been pre-trained on a large corpus of text is not, by itself, a useful assistant. It will complete text, but it will not necessarily answer your questions, follow your instructions, or decline harmful requests. It is a very capable text-continuation engine and nothing more.

Converting a pre-trained model into an assistant requires a subsequent training phase. The dominant approach is called Reinforcement Learning from Human Feedback (RLHF), described in the InstructGPT research (Ouyang et al., arXiv:2203.02155). The process has three stages. First, human labellers write high-quality responses to a set of prompts, and the model is fine-tuned on these examples to give it a baseline sense of what good assistant behavior looks like. Second, human labellers compare pairs of model outputs and indicate which they prefer, and these preferences are used to train a reward model that predicts human preferences automatically. Third, the language model is updated using reinforcement learning to generate outputs that score highly on the reward model.

The result of this process is a model that follows instructions more reliably, declines requests for harmful content more consistently, and generally produces outputs that humans find more useful. The core pre-trained knowledge is unchanged. What has changed is the model's behavior: which kinds of outputs it generates in response to which kinds of inputs.

What LLMs Know and How They Know It

One of the most persistent misconceptions about LLMs is that they "look up" information from their training data. They do not. The model does not retain a retrievable copy of any document from its training corpus. What the training process does instead is compress statistical patterns from the training data into the model's weights. Knowledge is distributed across those weights, encoded as associations between tokens, rather than stored as discrete retrievable facts.

This has several important implications. First, the model cannot give you a source for a specific fact it states, because there is no specific source: the claim was generated from the weighted average of patterns that appeared across many documents. Second, the model's knowledge is frozen at its training cutoff. Anything that happened after the training data collection ended is unknown to the model. Third, the model may have absorbed incorrect, biased, or outdated information from its training corpus, and it has no built-in mechanism to distinguish what it knows reliably from what it is guessing about.

Retrieval-Augmented Generation (RAG) addresses the last two of these limitations by providing the model with relevant documents at inference time. The model generates its response based on the retrieved content rather than relying solely on its parametric knowledge. This is why RAG is widely deployed in enterprise settings: it allows the model to ground its responses in current, authoritative documents rather than the statistical average of its training data.

Why the Same Model Behaves Differently Across Contexts

Context is everything in LLM behavior. The same model, presented with the same question, will produce meaningfully different outputs depending on the system prompt, the conversation history, the number and quality of examples provided, and the temperature setting that controls output randomness. This is not a bug. It reflects the fact that the model is generating the most statistically likely continuation of the entire input sequence, which includes all of these contextual elements.

For enterprise teams, this context-sensitivity is both an opportunity and a source of fragility. It is an opportunity because careful prompt engineering can significantly influence model behavior without any model training. It is a source of fragility because small changes in the input can produce surprising changes in the output, and consistent behavior requires systematic prompt design rather than ad hoc interaction.

The Four Things LLMs Are Good At

Understanding the mechanism points directly at the use cases where LLMs perform well:

The Three Things LLMs Are Structurally Weak At

The same mechanism that makes LLMs powerful in those domains creates predictable weaknesses elsewhere:

What This Means for Enterprise Decisions

Understanding LLMs as large statistical text functions rather than knowledge retrieval systems reframes several common enterprise questions. Vendor claims about model capability become easier to evaluate: ask what benchmarks were used, what the failure modes are, and what happens when the model encounters inputs outside its training distribution. Architecture decisions become clearer: if you need accurate, current, proprietary information, you need retrieval infrastructure, not just a bigger model. Quality assurance requirements become more concrete: you need to test for the failure modes that statistical text generation creates, not the ones you would expect from a rule-based system.

The organizations that are getting the most value from LLMs are the ones that have correctly understood what these models are. They are not treating them as infallible experts. They are not expecting them to know things that were never in the training data. They are designing systems around the genuine strengths of LLMs while building the human and technical safeguards that address the genuine limitations. That combination, not the model alone, is what makes enterprise AI work.

From understanding to architecture

Most enterprises understand LLMs conceptually but struggle to translate that understanding into sound architecture decisions: which model to use, when to fine-tune, how to handle retrieval, and how to build the evaluation layer that tells you whether any of it is working. If those decisions are coming up for your organization, I can help you work through them with a framework grounded in the research rather than vendor positioning.

Schedule a conversation

References

  1. Brown et al. (2020). "Language Models are Few-Shot Learners." NeurIPS 2020. arXiv:2005.14165
  2. Vaswani et al. (2017). "Attention Is All You Need." NeurIPS 2017. arXiv:1706.03762
  3. Kaplan et al. (2020). "Scaling Laws for Neural Language Models." arXiv:2001.08361
  4. Hoffmann et al. (2022). "Training Compute-Optimal Large Language Models." arXiv:2203.05843
  5. Ouyang et al. (2022). "Training language models to follow instructions with human feedback." arXiv:2203.02155
  6. Lewis et al. (2020). "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks." arXiv:2005.11401