Module 03 · Foundations
LLM Concepts, A Deep Dive
The vocabulary for discussing language models is the vocabulary for governing them.
Overview
A large language model is an advanced autocomplete system. It predicts the next token in a sequence, one token at a time, until it produces a stop signal. That single sentence explains more model behavior than most marketing pages. This module builds the full vocabulary on top of it, because the vocabulary for discussing language models is the vocabulary for governing them.
The internal machinery has three layers worth knowing. Tokenization converts text into numerical IDs before any meaning is assigned; a separate embedding layer then attaches meaning to those IDs. Parameters are the weights that store what the model has learned. Training has three phases: pre-training, which is next-token prediction at trillion-token scale; fine-tuning, which specializes the model on a smaller curated dataset; and alignment, which uses human preference data to train a reward model that shapes the base model toward helpful, honest, and harmless responses.
The interaction surface is equally learnable. A system prompt shapes behavior and a user prompt delivers the task. Zero-shot prompting relies on prior training, while few-shot prompting includes examples to lock in format and style. Chain-of-thought encourages step-by-step reasoning, a pattern modern reasoning models embed internally. Temperature controls randomness: keep it low for factual tasks and raise it for creative ones. After this module you can ask whether a team is using a base model or an instruct model and know what behavior to expect out of the box.
The module closes with the five core failure modes: hallucination, poor mathematical reasoning, inherited bias, knowledge cutoff, and absence of guardrails. Each has a distinct fix. The governance mistakes are just as consistent: treating a fluent answer as a correct answer, relying on prompts to enforce safety properties that belong in a filter, and fine-tuning to add knowledge when retrieval would have solved the problem. Require guardrails as a named deliverable, and separate vendor risk from architectural risk before signing long-term commitments.
In one paragraph
A large language model is an advanced autocomplete system. It predicts the next token in a sequence, one at a time, until it generates a stop signal. Its internal machinery has three layers worth knowing: tokens, embeddings, and parameters. Its training has three phases: pre-training on broad data, fine-tuning on a narrow dataset, and alignment through reinforcement learning from human feedback. Its interaction surface has two parts: the system prompt that shapes behavior and the user prompt that delivers the task. Its deployment has tradeoffs across proprietary, open-weight, and open-source variants, across small and large sizes, and across single-modality and multimodal designs.
Key ideas
- 01
Tokenization converts text into numerical IDs before any meaning is assigned. A tokenizer produces the IDs and a separate embedding layer attaches meaning to them.
- 02
Pre-training is next-token prediction at trillion-token scale. Fine-tuning specializes a pre-trained model on a smaller curated dataset.
- 03
Alignment uses human preference data to train a reward model, which then shapes the base model toward helpful, honest, and harmless responses.
- 04
Zero-shot prompting relies on the model's prior training. Few-shot prompting includes examples inside the prompt to lock in format and style.
- 05
Chain-of-thought encourages step-by-step reasoning. Modern reasoning models embed this pattern internally.
- 06
Temperature controls randomness. Low temperature produces deterministic outputs suited to factual tasks. Higher temperature produces varied outputs suited to creative tasks.
- 07
The five core failure modes are hallucination, poor mathematical reasoning, inherited bias, knowledge cutoff, and absence of guardrails. Each has a distinct fix.
How a senior leader uses this
Ask whether the team is using a base model or an instruct model. The answer tells you what behavior you should expect out of the box.
Require guardrails as a named deliverable, not a phase-two item.
Separate vendor risk from architectural risk before signing long-term procurement commitments.
Common failure modes
Treating a fluent answer as a correct answer.
Relying on prompts to enforce safety properties that belong in a filter.
Fine-tuning to add knowledge when retrieval would have solved the problem.
Further reading
Original source: LLM Concepts on The System Design Newsletter by Neo Kim and collaboratorsShahzad Asghar
Head of Data and Digital Solutions at UN-ESCWA, where he leads AI-driven digital transformation across Arab member states. He writes on AI governance, self-healing pipelines, and data quality at scale. Connect on LinkedIn or visit unaiwork.org.