Before you decide whether to fine-tune a model on your tickets, what your agent must retrieve, or where its test runner can live, you need to know what training already put in the model's weights, and what it never will. The service-desk agent from Anatomy of a Turn knows what a P1 (priority-one) incident is, writes valid JSON for its search tool, keeps searching until it has the answer and then stops. It does not know who owns ticket INC-4471, or that the network team was renamed last month. All of that was settled months before your request existed, when the model was trained, and none of it changes while your request runs.

Thesis: A model's weights are what training left behind: pretraining on next-token prediction gives it language and broad knowledge up to a cutoff, and post-training turns that text predictor into an agent that follows roles, writes tool requests, works through a task step by step and stops, increasingly by rewarding it for outcomes in environments where it uses tools. Neither puts your data, last week's facts or a guarantee into the weights, so whatever an answer must rest on has to arrive in the window (the text each call puts in front of the model), whatever must never happen has to be enforced outside the model, and any check the model was trained to pass should be one it cannot reach.


Anatomy of a Turn showed the loop a request runs in. Before following one call through its stages, this chapter asks where the model that reads every call came from, because three decisions the rest of the series asks of you follow from what training can and cannot leave in the weights: what must arrive in the window, what must be enforced outside the model and where the checks must sit. What an LLM Actually Is gave you pretraining and post-training in a paragraph; this chapter adds the stage that made today's agents, reinforcement learning on outcomes, and what it costs you.

Training runs in stages, each starting from the weights the last one left, and all of them finish before the model serves a single call:

flowchart LR
  D[(Public text and code<br/>trillions of tokens)] --> P[Pretraining<br/>predict the next token]
  P --> B[Base model<br/>a text continuer]
  B --> S[Supervised fine-tuning<br/>written demonstrations]
  S --> R[Preference learning<br/>rankings of replies]
  R --> E[RL with checkable outcomes<br/>answers, tests, finished tasks]
  E --> A[The model you call<br/>weights fixed]
  A --> Q[Your request<br/>read, never learned from]
  style A fill:#5a5a8a

Figure: The training pipeline. Pretraining on trillions of tokens gives a base model that continues text; supervised fine-tuning, preference learning and reinforcement learning on checkable outcomes turn it into the model you call, whose weights are then fixed, so your request is read but never learned from.

Pretraining: Predict the Next Token

A model is a very large set of numbers, its weights or parameters, arranged so that a sequence of tokens goes in and a score for every possible next token comes out. Among those numbers is a vector, a list of numbers, for every token in the vocabulary: the table each call's tokens are looked up in before the model reads them (How the Model Reads the Window shows that lookup, and Embeddings: How Vectors Get Meaning how such vectors come to carry meaning). Training sets all of those numbers. In pretraining the task is the simplest one available: show the model a stretch of text, ask it to predict the next token, compare its prediction with the token that actually came next, and nudge every weight slightly in the direction that would have made the right token more likely. That nudge is called a gradient update. Repeat over a large share of the public web, books and code: Meta's Llama 3 report (2024) describes a pretraining corpus of about 15 trillion tokens.

Nothing in that objective mentions facts, grammar or programming. They arrive because predicting the next token well requires them: to continue "The capital of France is" you need the fact, and to continue a half-written function you need the language. OpenAI's GPT-3 paper (2020) showed how far the objective goes at scale: given a few worked examples in the input, a large enough model could do tasks it was never trained for, with no change to its weights.

What pretraining produces is a base model: a text continuer. Give it a question and it may answer, or it may continue with three more questions, because both are plausible continuations of text that starts with a question. It has no notion of a user, a turn or a tool.

What lands in the weights is statistical, not a filing system. The model keeps no index of documents and no record of which source taught it a fact, so it cannot cite its training. That does not make the weights safe to fill with anything. Carlini and colleagues, in Extracting Training Data from Large Language Models (2021), pulled hundreds of verbatim training sequences back out of a model, including names, phone numbers and email addresses, some of which had appeared in only one document of the training data.

Post-Training: From Text Continuer to Assistant

A bigger base model is not a better assistant. That was the opening finding of OpenAI's InstructGPT paper (2022), and its method is still the template, in two steps.

Supervised fine-tuning, often called instruction tuning. People write demonstrations of good replies to prompts, and the model is trained on them with the same next-token objective. The data is now conversations, so the model learns the shape of one: a user message, an assistant reply, an answer, an end.

Learning from preferences. People rank several of the model's own replies. A reward model, a second model, learns to predict those rankings, and reinforcement learning (RL: training by trial, where the model produces an output, receives a score and is nudged toward whatever scored well) pushes the assistant toward replies the reward model rates highly. That is RL from human feedback, RLHF. In the paper, a small model trained this way was preferred to a base model over 100 times its size.

Later methods vary the recipe without changing its point. Direct Preference Optimization (2023) learns from preferred and rejected replies with no separate reward model; Anthropic's Constitutional AI (2022) replaces many human rankings with model feedback against written principles. Each teaches the model which of its possible replies to prefer.

Post-training is where the parts of a call that ride along every time get their meaning. The role markers and the chat template that How the Model Reads the Window takes apart are learned here. So is the format of a tool request, which vendors describe as a syntax the model was trained on, and so is the end-of-turn token whose arrival ends a reply. Each is a trained tendency, measured at a rate, not a rule the model executes.

Rewarded for the Outcome: How Agents Are Trained

The step that made today's agents is reinforcement learning where the score comes from a check rather than a person's opinion. First came tasks with answers a program can check, such as maths and code. DeepSeek's R1 paper (2025), a detailed public account, shows that rewarding only correct final answers makes a model write out longer working before it answers, checking and correcting itself along the way. That is the main ingredient of a reasoning model, alongside supervised examples and, for small models, distillation: training a smaller model on a larger one's outputs.

Then the task became a whole job done with tools. The model is put in an environment, a sandbox with a code repository and a terminal, a browser or a set of APIs, and given a task. It acts over many steps, calling tools and reading their results exactly as in your agent loop, and it is rewarded on the end state: the tests pass, the answer verifies, the task is done. OpenAI said in April 2025 that it trained o3 and o4-mini to use tools through reinforcement learning, including when to use them. DeepSeek's V3.2 report (December 2025) shows the scale now involved: a pipeline that generated "over 1,800 distinct environments and 85,000 complex prompts", coding environments built from real GitHub issues whose fixes are confirmed by the project's own tests, and a "rule-based outcome reward" for agent tasks. Moonshot's Kimi K2 report (2025) pairs synthetic agent tasks with RL in real and synthetic environments in the same way. Closed vendors publish less, but Anthropic's research on reward hacking (2025-11-21) works with "real RL environments used in the training of Claude".

This is where the service-desk agent's habits come from: asking for search_tickets instead of guessing, searching again when the first result does not answer, carrying on until the job is done. It is also where a habit you do not want comes from. RL rewards whatever earns the score, and the score is the check, not the intent behind it. METR, evaluating OpenAI's o3 in 2025, found it rewriting the evaluation's own timer and grading code and put the cause plainly: "RL finds and reinforces strategies that receive high reward, and reward hacking is an effective strategy to get reward." Anthropic's example of the same thing is a model that exits a test harness early so the tests report success. A model trained to make checks pass will, at some rate, make a check pass the wrong way when it can reach the check. That is why Check the Work Before It Lands keeps the check out of the agent's reach.

Stage Trains on Leaves in the weights Does not leave
Pretraining public text and code, next-token prediction language, broad knowledge to a cutoff, code idioms, reasoning patterns your data, anything after the cutoff, a source for any fact
Supervised fine-tuning written demonstrations of good replies the assistant format: roles, turns, tool-request syntax, when to stop new facts, reliably
Preference learning people's or a model's rankings of replies which of its possible replies to prefer, tone, refusals guarantees: every behaviour is a rate
RL on checkable outcomes answers, tests and finished tasks in tool environments, scored by a check reasoning, multi-step tool use, persistence until a check passes the intent behind the check: it can learn to pass the check instead

What the Weights Do Not Know

Anything after the cutoff. Vendors publish a knowledge cutoff per model; Anthropic's models overview (read 2026-11-08) gives June 2026 for its current models. A policy changed in September is not in the weights of a model trained through June, and the model has no internal flag saying so.

Your data. Your tickets, your org chart and your contracts were not in the training text, and commercial API terms commonly keep what you send out of training (Anthropic's privacy center is one example; check your own vendor's terms, since consumer products can differ by setting). The only way the agent can know who owns INC-4471 is for a tool result or a retrieved passage to put it in the window.

This conversation. The weights do not change while your request runs. Reading the window is not learning from it; the next call starts from the same weights, which is why Anatomy of a Turn found the whole history re-sent on every call.

The difference between knowing and guessing. A fact the model learned and one it is inventing come out with the same fluency, the failure called hallucination that What an LLM Actually Is introduced, with OpenAI researchers' argument for why. It is the same scoring logic as above: training that rewards a right answer and gives nothing for "I don't know" teaches the model that a guess scores better than a blank.

Fine-Tuning Your Own Copy

Fine-tuning a model on your own examples is post-training you pay for, and it inherits post-training's strengths: format, tone and narrow tasks. It is weak at teaching facts. Gekhman and colleagues found in Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations? (2024) that models struggle to learn new facts this way, and that the more such examples they eventually learn, the more they invent. Availability is also narrowing: OpenAI's model optimization guide (read 2026-11-08) says it is winding down its fine-tuning platform.

The Service Desk, Read Through Its Training

Return to the agent. Its knowledge of incident management, priority levels and the vocabulary of IT operations, including ITIL, the widely used IT service-management framework, comes from pretraining. Its habit of answering in the format its tools expect comes from supervised fine-tuning, and its habit of searching until it has an answer from RL in tool environments. Who owns INC-4471, which team that is now, and what the escalation policy says this quarter come from nowhere unless the harness puts them in the window.

A platform team proposes to fine-tune the model on two years of closed tickets "so it knows our tickets". Three things follow from the mechanism. The model will sound more like the tickets and will still invent owners for tickets it has never seen, now in the house style. Every ticket created after the training run is missing, so the model is out of date on the day it ships. And the personal data in those tickets is now in weights from which one record cannot be removed the way a row is deleted from a database; if fine-tuned weights can repeat training text the way the pretrained models in the extraction study did, which is my inference rather than that study's finding, it can also come back out. A retention or erasure request against the training set becomes a question about the model.

The same request served from a ticket search tool keeps the facts current, keeps the data where access control and deletion already work, and leaves a record of what the model was shown.

When the Weights Are Enough

For general knowledge, language and code, the weights are the point. Summarising a document already in the window, drafting an email or explaining a stack trace needs nothing retrieved, and adding retrieval adds cost and a new way to miss. Facts that are old, public and stable, such as what ITIL calls a major incident, are safe to leave to the weights. Fine-tuning also has its place where its strengths lie, in a narrow, fixed format or tone.

The line falls where the answer depends on something private, recent or checkable. There the weights supply the reading and the window supplies the facts, and a model that knows less but is shown more is the safer one.


What to Do Next

  • Mark what each answer rests on. For your agent's top questions, write down which facts come from the weights and which must come from the window; every fact in the second column needs a tool or a retriever.
  • Tell the model the date. The weights stop at a cutoff and do not know today; a harness that states today's date in the call, below the part that stays the same between calls (What a Prompt Cache Reuses explains why), removes one class of stale answers.
  • Treat trained behaviour as a rate. Role-following, tool use and refusals were trained, not programmed. Test them on your traffic and enforce anything compliance-critical in code.
  • Keep the grader out of reach. An agent trained on outcomes will work on whatever check it can see; run the tests, the evals and the approval somewhere its tools cannot edit.
  • Fine-tune for behaviour, not facts, and keep personal data out of any training set you would not want repeated.

Next in the series: One Request, End to End, every stage of a request on one page and who performs each. Related reading: Instructions That Outlive the Model for prompts that survive a change of weights, and Check the Work Before It Lands for the check an outcome-trained agent must not reach.