Skip to content
ImagineWorld

What Is a Large Language Model?

node_idnode-book_llm-systems-engineering_module-01-what-is-a-large-language-model
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num1
chapter_titleWhat Is a Large Language Model?
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Module 1 — What Is a Large Language Model?

Section titled “Module 1 — What Is a Large Language Model?”

Chapter I — Introduction to Large Language Models

Large language models have become a defining technology of contemporary computing, yet the term itself often remains poorly understood even among practitioners who work with these systems daily. This module establishes a precise foundation for what a large language model actually is, treating it as a concrete software artifact with measurable properties and definable parts. The discussion begins by unpacking the three words in the name itself, then turns to the single mechanism that drives every output a model produces. From there, the module addresses several persistent misconceptions that distort how people reason about model behavior. The closing section surveys the structural pieces that together constitute a working system. Each later module in the book builds on the vocabulary and intuitions developed here.

The phrase “large language model” compresses three distinct ideas into a single label, and each one deserves separate attention.

A model, in the statistical and machine learning sense, is a mathematical function whose parameters have been adjusted so that the function approximates some target relationship in observed data. When researchers speak of training a model, they refer to the process of tuning those parameters so that the function’s outputs align as closely as possible with patterns present in a body of examples (Goodfellow et al., 2016). The model itself is nothing more than the collection of numerical parameters together with the computational procedure that uses them. Calling something a model is therefore a claim about how it was constructed and what it represents, and carries no implication about what it knows or experiences in any human sense.

The second word, language, identifies the domain that the model is asked to approximate. Natural language presents a difficult statistical target because its structure is recursive, its meanings depend heavily on context, and its surface forms vary across speakers and registers. A language model in the modern sense assigns probabilities to sequences of linguistic units, learning to estimate how likely any given continuation is given the text that precedes it (Bengio et al., 2003). This probabilistic framing has been the foundation of language modeling research for decades, and contemporary systems are direct descendants of that earlier lineage.

The word “large” carries the most weight in current usage. Scale refers both to the number of parameters the model contains and to the volume of text on which it has been trained. The move from earlier neural language models containing tens of millions of parameters to contemporary systems with hundreds of billions is what gives the word “large” its specific technical meaning in this context. Without that scale, the same architecture and training procedure would produce a system far more limited in what it could accomplish.

ModelYearParameters
GPT-12018117M
GPT-220191.5B
GPT-32020175B

[!visual-conversion] In print a line chart on a log-scale parameter axis (10M–1T) with the three points joined by a line.

Figure 1-1. Parameter Counts of GPT Models Prior to Non-Disclosure

At the level of pure mechanism, a large language model performs a single operation. Given a sequence of tokens representing some input text, the model produces a probability distribution over its vocabulary, indicating how likely each possible next token is to follow. Generation proceeds by sampling or selecting from that distribution, appending the chosen token to the input, and repeating the process. Every output the model produces, whether a one-word answer or a multi-page essay, is constructed token by token through this same predictive loop. There is no separate planning module that decides what the response will look like before generation begins.

What makes this mechanism remarkable is how much capability emerges from it when applied at sufficient scale. Predicting the next token in arbitrary text requires implicit knowledge of grammar and the patterns of human reasoning that appear in written sources. A model trained well on enough text develops internal representations that support behaviors resembling summarization and question answering, without ever having been explicitly taught those tasks (Brown et al., 2020). The appearance of reasoning is a downstream consequence of accurate prediction over text that itself contains reasoning.

flowchart LR
    subgraph IS[Input sequence]
        direction LR
        t1[The] ~~~ t2[cat] ~~~ t3[sat] ~~~ t4[on] ~~~ t5[the]
    end
    IS --> M[Model<br/>Transformer Layers]
    M -- Sample from vocabulary --> NT([New Token: mat])
    NT -- Append & repeat --> IS

Figure 1-2. Autoregressive Token Generation Loop

This framing explains both the strengths and the characteristic failures of these systems. A model that produces fluent and confident output is doing exactly what its objective trained it to do, even when the content of that output is factually wrong. The mechanism optimizes for plausibility relative to the training distribution. Correspondence with any external ground truth lies outside what the objective directly measures, which is a structural feature of the design and a property that persists regardless of how much the system is refined.

Several persistent misunderstandings cloud public and professional discussion of large language models, and clearing them away is necessary before further technical material can land properly.

The first misconception treats a language model as a kind of database from which facts are retrieved. A trained model contains no stored documents and performs no lookup operation during inference. Any factual content it produces has been compressed into its weight parameters during training and is reconstructed at generation time through the same predictive process used for every other output. This is why a model can produce confident statements that have no factual basis whatsoever, a behavior commonly called hallucination (Ji et al., 2023). The same mechanism that yields correct answers also yields plausible inventions, and the model itself has no internal signal that distinguishes between the two cases.

A second misconception assumes that these systems understand language in the way human readers do. Researchers who study the foundations of meaning have argued that exposure to text alone, however vast, is insufficient to ground linguistic symbols in the experiential and communicative context that gives human language its semantics (Bender & Koller, 2020). Whatever an LLM does internally when processing text, treating it as equivalent to human comprehension obscures both its actual capabilities and its limitations.

A third misconception holds that these models reason from explicit rules, in the manner of older symbolic artificial intelligence systems. The rules of grammar and world knowledge that govern an LLM’s outputs are statistical regularities absorbed from training data, encoded implicitly across billions of parameters. No rule is written down anywhere inside the model, and no symbolic interpreter executes one. The debate over what kind of cognition, if any, this implicit encoding represents remains genuinely unresolved within the research community (Mitchell & Krakauer, 2023).

A working LLM system consists of several distinct pieces that operate together, and understanding the role of each provides the structural map that the rest of this book will fill in. The first piece is the tokenizer, which sits at the very entrance of the system. Its job is to convert raw text into a sequence of discrete units that the model can process numerically. The design of the tokenizer determines what counts as an atomic unit of language for the model, and its vocabulary is fixed before training begins (Sennrich et al., 2016). A poorly chosen tokenizer can limit what kinds of language the model handles efficiently for the entire remainder of its existence.

Once text has been converted into tokens, the resulting sequence enters the model proper, which is defined by its architecture together with its weights. The architecture specifies the computational graph through which inputs flow, including the arrangement of attention layers and feed forward operations that characterize the transformer design (as discussed in Module 04). The weights are the numerical parameters within that graph whose values were established during training. An architecture without weights is an empty template. Weights without an architecture are an unstructured pile of numbers. Together they constitute the trained model, and neither piece carries meaning in isolation.

The remaining piece is the inference engine, which is the software that executes the model’s computation when an input arrives. The engine loads the weights into memory and runs the forward pass through the architecture. It then samples from the resulting probability distribution and manages the autoregressive loop that produces extended output. Its efficiency determines how quickly and cheaply the model can serve real requests, and its design becomes a central concern in any production deployment. These pieces will recur throughout the book in greater depth, and the vocabulary established here gives each later discussion a stable referent to attach to.

┌──────────────────────────┐
│ Tokenizer │
│ Text to token IDs │
└──────────────────────────┘
┌──────────────────────────┐
│ Architecture │
│ Computational graph │
└──────────────────────────┘
┌──────────────────────────┐
│ Weights │
│ Trained parameters │
└──────────────────────────┘
┌──────────────────────────┐
│ Inference engine │
│ Manages the sampling loop│
└──────────────────────────┘

Figure 1-3. Core Components of a Deployed Language Model