Section 3 · Questions 51–74
Training language models
From pretraining to assistant
A language model is trained in about six stages, which turn raw text into an assistant. The first gives the model its knowledge; the later ones shape how it behaves.
- Pretraining. The model reads a vast amount of text, much of it from the public web, and learns to predict what comes nextWhat is a language model? Q36 →, one tokenToken: A word or piece of a word, the unit of text a language model reads and writes. Q37 → (a word or piece of a word) at a time. The result is a base model, which continues documents rather than answering questionsHow does a base model differ from an instruction-tuned assistant? Q55 →.
- Midtraining (optional). Further next-token training on smaller, curated data, used by some developers to teach particular skills or describe the values the model should holdCan values be built into a model before post-training? Q54 →.
- Supervised fine-tuning. The model is trained on example conversations to produce the assistant’s replies, not the user’s turns. This teaches a role and a format: read the prompt as a request and answer it (Wei et al., 2021). Many pipelines also distill, fine-tuning on text a stronger model wrote.
- Preference training. People or AI judges compare pairs of answers, and the model is trained toward the preferred ones, through a reward modelReward model: A model trained on human or AI judgments to score outputs, used as the reward when training another model. Q57 → and reinforcement learningHow does reinforcement learning from human feedback work? Q57 → or directlyWhat is Direct Preference Optimization? Q58 →.
- Reinforcement learning on checkable tasks. Reasoning modelsReasoning model: A language model trained to write out a long chain of thought before it answers. Q49 → get long runs of trial and error on problems whose answers a program can verify, such as math and code, with right answers rewarded (RLVRRL from verifiable rewards (RLVR): Reinforcement learning on tasks whose answers a program can check, such as math problems with known answers or code with unit tests. Q70 →).
- Safety training and testing. Training to refuse harmful requestsHow are models trained to refuse harmful requests? Q72 →, then evaluations and red teamingRed teaming: Adversarial testing in which people or models deliberately try to make a system fail. Q250 →, decide whether the model ships; a failed check sends it back.
The middle stages often repeat in rounds, and recipes differ: Meta’s Llama 3 used rounds of fine-tuning on the best of many sampled answers followed by Direct Preference Optimization (DPO)What is Direct Preference Optimization? Q58 → (Grattafiori et al., 2024).
Sources Wei et al., Finetuned Language Models Are Zero-Shot Learners (2021); Grattafiori et al., The Llama 3 Herd of Models (2024).
Partly. Removing hazardous documents before training keeps a model from learning some dangerous material at all, which is sturdier than teaching it to refuse. Pretraining data is mostly web text cleaned in stages, as in the open FineWeb pipeline (Penedo et al., 2024), and a hazard filter is one more pass.
Anthropic researchers removed chemical, biological, radiological and nuclear documents with a classifier before pretraining a medium-sized model; its score on a hazard evaluation fell from 33.7% to 30.8%, against 25% chance, with no significant loss elsewhere (Chen et al., 2025a). Models with biothreat text filtered out resisted up to 10,000 steps of adversarial fine-tuningFine-tuning: Further training of an already trained model on a smaller, chosen set of examples. Q51 →, where safety training usually falls to a few dozen (O’Brien et al., 2025). Removing knowledge after training holds up worse: supposedly unlearned material could usually be recovered (Łucki et al., 2024). But filtered models still used dangerous facts supplied in their prompt, dual-use science is hard to separate, and multiple-choice tests are only a proxy for real upliftUplift: How much a model adds to what someone could already do without it. Q241 →, the help a model would actually give an attacker (Li et al., 2024a).
Sources Penedo et al., The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale (2024); Chen et al., Enhancing Model Safety through Pretraining Data Filtering (2025a); O’Brien et al., Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMs (2025); Łucki et al., An Adversarial Perspective on Machine Unlearning for AI Safety (2024); Li et al., The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearning (2024a).
Small controlled experiments say it can; a larger test found the effect mostly faded after later training. Turner (2025) argued that writing which predicts misaligned AI could become self-fulfilling once models learn from it.
Tice et al. (2026) pretrained 6.9-billion-parameter models while varying only AI-related documents. Adding synthetic stories of misaligned AI raised misaligned answers, and adding stories of aligned AI cut them from 45% to 9%; the effects shrank but persisted through post-trainingPost-training: The training after pretraining, on example conversations, preferences and rewards, that turns a base model into an assistant. Q51 →. At the scale of o4-mini, OpenAI researchers found such differences largely washed out by reasoning RL, with no significant change on agentic evaluations, and called this an early negative result (Korbak et al., 2026).
Sources Turner, Self-fulfilling misalignment data might be poisoning our AI models (2025); Tice et al., Alignment Pretraining: AI Discourse Causes Self-Fulfilling (Mis)alignment (2026); Korbak et al., How far does alignment midtraining generalize? (2026).
Experiments say it can, though whether the effects survive later training is disputed. Korbak et al. (2023) put a preference signal into pretraining itself: their best method tags training text “good” or “bad” by an automatic score, such as a toxicity classifier’s, and prompts the model with “good” when it generates. It cut undesirable output by up to an order of magnitude with little loss of capability.
Alignment midtraining adds a stage between pretraining and post-training: ordinary next-token training on documents describing the values the model should hold and why. Midtraining on documents about a model specModel specification: A public document in which a developer sets out how its models should behave, used both as a training target and as a standard outsiders can check. Q63 → cut agentic misalignment in Qwen3-32B from 54% to 7% (Li et al., 2026What is deliberative alignment? Q66 →), and Anthropic reports that constitution documents and positive fiction cut a blackmail rate in its own models from 65% to 19% (Anthropic, 2026). But OpenAI researchers saw the effects fade after reasoning RLDoes text about AI misbehavior in the training data make models more likely to misbehave? Q53 → (Korbak et al., 2026), and Baines et al. (2026) found a small amount of conflicting fine-tuning data canceled them.
Sources Korbak et al., Pretraining Language Models with Human Preferences (2023); Li et al., Model Spec Midtraining: Improving How Alignment Training Generalizes (2026); Anthropic, Teaching Claude why (2026); Korbak et al., How far does alignment midtraining generalize? (2026); Baines et al., Stress-testing Alignment Midtraining (2026).
A base model continues documents: given “What is the capital of France?” it may take the line for part of a quiz and write more questions. An instruction-tuned assistant reads the prompt as a request and answers it, with refusals where it was trained to refuse.
Underneath they share almost everything. Lin et al. (2023a) found the two models’ top predictions matched at most positions, and that a base model given three good examples in its prompt came close to its fine-tuned version. In use the gap is still large: labelers strongly preferred tuned outputs on real API prompts (Ouyang et al., 2022).
How much post-training adds is disputed. Zhou et al. (2023) proposed the superficial alignment hypothesis: knowledge comes almost entirely from pretraining, and alignment mostly teaches format and style. Their evidence was LIMA, which, fine-tuned on just 1,000 curated examples, matched or beat GPT-4 in 43% of comparisons in a small study. Against it, post-training gains on math and multi-step reasoning kept rising with the number of examples (Raghavendra et al., 2024), and the large reasoning gains from RL in models such as DeepSeek-R1 fit poorly with a purely stylistic account (DeepSeek-AI, 2025).
Sources Lin et al., The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learning (2023a); Ouyang et al., Training language models to follow instructions with human feedback (2022); Zhou et al., LIMA: Less Is More for Alignment (2023); Raghavendra et al., Revisiting the Superficial Alignment Hypothesis (2024); DeepSeek-AI, DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning (2025).
It can, though in the settings studied the old abilities are mostly hidden rather than erased. Losing earlier abilities when training on something new overwrites the same weightsWeights: The numbers inside a model that training sets; they stay fixed afterward and are the same for every input. Q33 → is called catastrophic forgetting (McCloskey and Cohen, 1989). In language models, continual instruction tuning of 1B–7B models eroded domain knowledge and reasoning (Luo et al., 2023), and ordinary benign fine-tuning weakened refusals (Qi et al., 2023).
Much of what looks lost can be recovered. Kotha et al. (2023) recovered lost abilities by translating prompts into another language, and Jain et al. (2023) found fine-tuning learned a thin “wrapper” over existing capabilities that a few further steps removed. Most of this evidence comes from small or synthetic models, though Kotha et al. also recovered harmful outputs from ChatGPT this way; how far the finding extends to frontier models is open.
Sources McCloskey and Cohen, Catastrophic Interference in Connectionist Networks: The Sequential Learning Problem (1989); Luo et al., An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuning (2023); Qi et al., Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To! (2023); Kotha et al., Understanding Catastrophic Forgetting in Language Models via Implicit Inference (2023); Jain et al., Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks (2023).
Learning from feedback
In reinforcement learning from human feedback (RLHF), people judge a model’s answers, and a second model, called the reward model, learns to predict their judgments. The first model is then trained to give answers the reward model scores highly. Judging is often easier than doing: Christiano et al. (2017) taught a simulated robot to backflip from 900 comparisons of short clips. OpenAI’s InstructGPT recipe has three stages (Ouyang et al., 2022):
- Supervised fine-tuning: labelers wrote good responses to about 13,000 prompts, and GPT-3 was fine-tuned (trained further) on them.
- Reward modeling: labelers ranked 4 to 9 model outputs for each of about 33,000 prompts, and the reward model learned to score outputs so as to predict the rankings.
- Reinforcement learning: the fine-tuned model was trained on about 31,000 prompts to maximize the reward model’s score, minus a penalty for drifting from where it started.
The model being trained can learn to exploit the reward model’s errors. The two brakes are the penalty and fresh comparisons of the improving model’s outputs as steps two and three repeat. Labelers preferred the outputs of the 1.3-billion-parameter InstructGPT model to those of the much larger 175-billion-parameter GPT-3.
The reward model usually takes the Bradley–Terry form, in which the chance that one answer is preferred over another depends only on the difference between their scores (Bradley and Terry, 1952). Step three used the PPOWhat is reinforcement learning? Q35 → algorithm (Schulman et al., 2017), with a per-token penalty on the model’s KL divergence from the fine-tuned model, a measure of how far its next-token probabilities have drifted. Most later RLHF pipelines vary these three steps (Lambert, 2025).
Sources Christiano et al., Deep reinforcement learning from human preferences (2017); Ouyang et al., Training language models to follow instructions with human feedback (2022); Bradley and Terry, Rank Analysis of Incomplete Block Designs: I. The Method of Paired Comparisons (1952); Schulman et al., Proximal Policy Optimization Algorithms (2017); Lambert, Reinforcement Learning from Human Feedback (2025).
Direct Preference Optimization (DPO) trains a model directly on pairs of answers, one preferred and one rejected, so that it favors the preferred one. More precisely, it fits a model to preference pairs with a single supervised loss, skipping both the reward model and the RL loop. Rafailov et al. (2023) showed that under the Bradley–Terry modelHow does reinforcement learning from human feedback work? Q57 → of preferences, the best policy for the usual KL-penalized RLHFReinforcement learning from human feedback (RLHF): Training a model with reinforcement learning against a reward model fitted to people’s judgments of its outputs. Q57 → objective defines its own implied reward, the log-ratio of its probabilities to the reference model’s. Training can then work on the policy directly:
The loss raises the chosen answer’s probability relative to the reference and lowers the rejected one’s. It is cheap and stable, and became a standard step in open pipelines (Lambert, 2025).
What it gives up is learning from the model’s own current outputs. Standard DPO trains on a fixed dataset of pairs, while online RLHF keeps scoring what the policy actually produces. Methods that sample from the model being trained did better in Tajwar et al. (2024), and a well-tuned PPO beat DPO on dialogue and code in Xu et al. (2024). Ivison et al. (2024) put the gap in proportion: PPO led by up to 2.5% in math, but better preference data mattered more than the algorithm. Developers often regenerate pairs from the current model to recover some of that benefit.
Sources Rafailov et al., Direct Preference Optimization: Your Language Model is Secretly a Reward Model (2023); Lambert, Reinforcement Learning from Human Feedback (2025); Tajwar et al., Preference Fine-Tuning of LLMs Should Leverage Suboptimal, On-Policy Data (2024); Xu et al., Is DPO Superior to PPO for LLM Alignment? A Comprehensive Study (2024); Ivison et al., Unpacking DPO and PPO: Disentangling Best Practices for Learning from Preference Feedback (2024).
Mostly those of the people who labeled the data and wrote their guidelines, averaged into one score. Santurkar et al. (2023) found RLHF-tuned models’ opinions shifted toward particular US groups, such as liberal, higher-income and highly educated people. Even trained labelers disagree: InstructGPT’s agreed with each other 72.6% of the time (Ouyang et al., 2022). PRISM showed that changing who gives feedback changes which model wins (Kirk et al., 2024).
Averaging hides disagreement. Siththaranjan et al. (2023) proved standard preference learning aggregates hidden differences between labelers like a Borda count (a voting rule that scores options by their rank positions), which can pick answers no group wanted and rewards labelers who misreport. Conitzer et al. (2024) argue this is a social-choice problem that calls for methods from voting theory. The 2026 International AI Safety ReportInternational AI Safety Report: A scientific review, chaired by Yoshua Bengio, of what general-purpose AI can do and what risks it poses, written without policy recommendations. Q341 → adds that no system can align equally with everyone, and that some researchers see technical fixes for pluralism as missing, or distracting from, deeper problems such as systematic bias and concentrated power (Bengio et al., 2026a).
Sources Santurkar et al., Whose Opinions Do Language Models Reflect? (2023); Ouyang et al., Training language models to follow instructions with human feedback (2022); Kirk et al., The PRISM Alignment Dataset: What Participatory, Representative and Individualised Human Feedback Reveals About the Subjective and Multicultural Alignment of Large Language Models (2024); Siththaranjan et al., Distributional Preference Learning: Understanding and Accounting for Hidden Context in RLHF (2023); Conitzer et al., Social Choice Should Guide AI Alignment in Dealing with Diverse Human Feedback (2024); Bengio et al., International AI Safety Report 2026 (2026a).
The alignment tax is any loss of capability caused by alignment training. Early RLHF paid a small one on some benchmarks, and the size depended on the model.
InstructGPT lost ground against GPT-3 on four public NLP datasets; mixing pretraining updates into PPO shrank the regressions, though gaps remained on three (Ouyang et al., 2022). Anthropic researchers reported the opposite for their largest models: RLHF improved most NLP evaluations, an “alignment bonus,” while hurting small models (Bai et al., 2022a). Lin et al. (2023b) measured a pronounced tax on a 3B open model, best reduced by averaging the weights from before and after RLHF.
RLHF has other costs that benchmarks miss. It cut the variety of a model’s answers compared with fine-tuning alone (Kirk et al., 2023), and OpenAI reported that RLHF left GPT-4 much less well calibrated than the pretrained model, its stated confidence matching its accuracy worse (OpenAI, 2023).
Sources Ouyang et al., Training language models to follow instructions with human feedback (2022); Bai et al., Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback (2022a); Lin et al., Mitigating the Alignment Tax of RLHF (2023b); Kirk et al., Understanding the Effects of RLHF on LLM Generalisation and Diversity (2023); OpenAI, GPT-4 Technical Report (2023).
RL from AI feedback (RLAIF) trains a model on judgments of its answers that come from an AI model instead of from people. It is RLHFReinforcement learning from human feedback (RLHF): Training a model with reinforcement learning against a reward model fitted to people’s judgments of its outputs. Q57 → with the human who chooses between two answers replaced by a language model prompted with instructions or principles. Anthropic introduced it for harmlessness in Constitutional AIConstitutional AI: Anthropic’s method of training a harmless assistant using a written list of principles, the constitution, in place of human labels of harmfulness. Q62 → (Bai et al., 2022b).
Google researchers compared the two on summarization and dialogue. People rated RLAIF and RLHF policies about equally on summarization and helpfulness, and judged RLAIF’s replies harmless more often. RLAIF also beat the fine-tuned starting point even when the AI labeler was no larger than the policy (Lee et al., 2023). Sharma et al. (2024) found much of the reported gain in open RLAIF pipelines came from using a weaker model to write the fine-tuning data than to give the feedback; fine-tuning on the stronger model’s answers alone did better.
A model judging itself can reward its own blind spots: language-model judges rate their own outputs above equally good ones from others (Panickssery et al., 2024), and when one model both writes and grades essays over several rounds, its scores rise while human-judged quality stalls (Pan et al., 2024a).
Sources Bai et al., Constitutional AI: Harmlessness from AI Feedback (2022b); Lee et al., RLAIF vs. RLHF: Scaling Reinforcement Learning from Human Feedback with AI Feedback (2023); Sharma et al., A Critical Evaluation of AI Feedback for Aligning Large Language Models (2024); Panickssery et al., LLM Evaluators Recognize and Favor Their Own Generations (2024); Pan et al., Spontaneous Reward Hacking in Iterative Self-Refinement (2024a).
Constitutional AI is Anthropic’s method for training a harmless assistant without human labels of harmfulness, using a written list of principles, the constitution, as the only human input on harm (Bai et al., 2022b). It has two phases.
- A supervised phase. The model answers a prompt chosen to elicit harm, critiques its own answer against a principle drawn at random, and rewrites the answer to remove the problems, possibly over several rounds. The revisions, mixed with helpful examples, become fine-tuning data.
- A reinforcement-learning phase. The fine-tuned model generates two answers to each harmful prompt, and a feedback model, shown both with a sampled principle, answers a multiple-choice question such as which is less harmful. These AI labels for harmlessness are mixed with human labels for helpfulness to train a preference model, which supplies the reward for RL.
The 2023 constitution drew on the UN Universal Declaration of Human Rights, platform terms of service, other labs’ rules and Anthropic’s own trials (Anthropic, 2023). Anthropic reported its Constitutional AI models were both more harmless and less evasive than its earlier RLHF models, though helpfulness still came from human labels and the comparison was with its own earlier system (Bai et al., 2022b).
Sources Bai et al., Constitutional AI: Harmlessness from AI Feedback (2022b); Anthropic, Claude’s constitution (2023).
Specifications and character
A model specification is a public document setting out how a developer intends its models to behave: whose instructions they follow, what they will not do, and how to weigh competing goals. It serves as a training target and as a reference outsiders can hold the developer to. The two best-known take different forms.
OpenAI’s Model Spec is written as a specification of the assistant’s behavior. As of October 2026 it is organized around values such as minimizing harm and settles conflicts through a “chain of command”: root rules set by OpenAI, which no message can override, then system, developer and user messages, then overridable defaults. Nearly every clause has compliant and violating example replies. The root rules mix prohibitions, such as on information hazards and illicit behavior, with duties, such as supporting human oversight and correction and pursuing no goals beyond its instructions (OpenAI, 2024; OpenAI, 2026).
Anthropic’s constitution for Claude, which in 2026 replaced a 2023 list of principles, is written as an explanation addressed to the model. It ranks four properties for cases of conflict: broadly safe, broadly ethical, compliant with Anthropic’s guidelines, and genuinely helpful. It prefers cultivating judgment and values to rules, keeps a short list of hard constraints, and explains its reasoning in the hope that Claude will agree with it (Anthropic, 2023; Anthropic, 2026).
Both say current models do not fully meet them, and outside testsHow do developers test whether a model actually follows its specification? Q68 → have found gaps in the documents and in models’ compliance.
Sources OpenAI, Model Spec (2026/10/29) (2026); OpenAI, Model Spec (2024/05/08) (2024); Anthropic, Claude’s Constitution (2026); Anthropic, Claude’s constitution (2023).
Usually those of whoever ranks higher, within limits. Both published specificationsWhat is a model specification? Q63 → rank instructions by who gave them: first the company that made the model, then a business that builds a product on it, then the person using the product. In OpenAI’s Model SpecModel specification: A public document in which a developer sets out how its models should behave, used both as a training target and as a standard outsiders can check. Q63 →, lower levels can adjust defaults but not override higher ones, and text inside tool results, files or quoted material carries no authority by default (OpenAI, 2026). Anthropic’s constitution ranks Anthropic, then operators who build products, then users, but limits what operators can do to users: by default Claude should tell users what it cannot help with, never deceive them in ways that cause real harm, and point them to emergency help when a life is at risk (Anthropic, 2026).
The order has to be trained in. A chat template wraps each message in special tokens that mark its role (Hugging Face, 2026), but the model still reads one sequence of tokens, so the system prompt’s priority comes only from training. Wallace et al. (2024) at OpenAI trained models on synthetic conflicts to favor system instructions and resist injected text. It holds unreliably: when system and user instructions set conflicting formatting rules, the system instruction won less than half the time on average across six models (Geng et al., 2025).
Sources Hugging Face, Chat templates (2026); OpenAI, Model Spec (2026/10/29) (2026); Anthropic, Claude’s Constitution (2026); Wallace et al., The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions (2024); Geng et al., Control Illusion: The Failure of Instruction Hierarchies in Large Language Models (2025).
Because training is imperfect, and a model could have subtly wrong values without knowing it. If its own ethics could override human correction, a model with flawed values would resist exactly the oversight needed to find the flaw. Anthropic’s constitution ranksWhat is a model specification? Q63 → not undermining appropriate human oversight above Claude’s broader ethics for this reason, and says the ranking does not mean oversight matters more than being good (Anthropic, 2026).
This is not blind obedience. Claude may refuse abhorrent tasks and disagree through legitimate channels, but should not lie, sabotage or try to escape correction. The idea comes from work on corrigibilityCorrigibility: A system’s willingness to accept correction, modification or shutdown by its overseers rather than resist. Q8 →, which showed that a goal-directed agent normally has reasons to resist shutdown (Soares et al., 2015). OpenAI’s Model Spec gets there through root rules that forbid goals such as self-preservation or evading shutdown and protect its chain of command (OpenAI, 2026).
Sources Anthropic, Claude’s Constitution (2026); Soares et al., Corrigibility (2015); OpenAI, Model Spec (2026/10/29) (2026).
Deliberative alignment is OpenAI’s method for training a model to reason about its written safety rules before it answers. It teaches a reasoning modelReasoning model: A language model trained to write out a long chain of thought before it answers. Q49 → the text of its safety specification, and the model is trained to recall and apply the relevant parts in its chain of thoughtChain of thought: The step-by-step reasoning a model writes out before giving its answer. Q47 →, the reasoning it writes out before answering (Guan et al., 2024).
To make training data, a model is given the specification and asked to reason and answer, and a judge that also sees the specification filters the results. The model is then fine-tuned on the prompts, reasoning and answers without the specification in context, so it must have learned it. A reinforcement-learning stage follows, with the specification-aware judge supplying the reward. On OpenAI’s o-series models this improved resistance to jailbreaksJailbreak: A prompt or other input that gets an AI model to do something its developer trained it to refuse. Q277 → while reducing over-refusals, and it was used to train o1 (OpenAI, 2024). On the open Qwen3-32B model, Anthropic researchers found that model spec midtrainingCan values be built into a model before post-training? Q54 → cut agentic misalignment from 54% to 7%, against 14% for a supervised deliberative-alignment baseline (Li et al., 2026).
Sources Guan et al., Deliberative Alignment: Reasoning Enables Safer Language Models (2024); OpenAI, OpenAI o1 System Card (2024); Li et al., Model Spec Midtraining: Improving How Alignment Training Generalizes (2026).
Character training shapes a model’s stable dispositions, such as curiosity, warmth and honesty about uncertainty, alongside its rules. Anthropic began it with Claude 3, using a variant of Constitutional AI: the model writes prompts about listed traits, ranks its own answers by how well they express them, and trains on the rankings without human feedback (Anthropic, 2024). Maiya et al. (2025) released an open version for open-weight modelsOpen-weight model: A model whose weights, the learned numbers that make it up, are published, so anyone can run, study and modify it. Q290 → and found the trained personas held up under adversarial prompting better than ones set by system prompts or steering.
Developers shape personality because a model has one anyway, and unattended reward signals can bend it: in 2025 OpenAI rolled back a GPT-4o updateWhy did OpenAI roll back a 2025 update to GPT-4o? Q90 → that, among other changes, added a reward from users’ thumbs-up and thumbs-down ratings and made the model sycophanticSycophancy: A model telling users what they want to hear instead of what is true or useful. Q87 → (OpenAI, 2025). Persona vectors, directions in a model’s internal activationsActivation: One of the numbers a network computes for a particular input as it runs; its weights, by contrast, stay fixed once training ends. Q33 →, can track such traits (Chen et al., 2025b).
Sources Anthropic, Claude’s Character (2024); Maiya et al., Open Character Training: Shaping the Persona of AI Assistants through Constitutional AI (2025); OpenAI, Expanding on what we missed with sycophancy (2025); Chen et al., Persona Vectors: Monitoring and Controlling Character Traits in Language Models (2025b).
Mostly with large sets of test prompts graded by other models. OpenAI’s Model Spec Evals use 596 short conversations covering 225 clauses of the spec, each with a rubric, scored by a reasoning model; compliance rose from 72% for GPT-4o to 89% for GPT-5 Thinking. OpenAI cautions that the absolute scores are not weighted by real-world importance and the prompts are everyday, not adversarial (Guo and Wolfe, 2026).
Outside checks exist too. SpecEval turns providers’ published specifications into tests and found compliance gaps of up to 20% across 16 models from six developers (Ahmed et al., 2025). Zhang et al. (2025a) generated scenarios that set two principles against each other and treated disagreement between models as a sign of gaps in the specs. For agentic behavior, tools such as Anthropic’s Petri run multi-turn scenarios with simulated users and tools and have judges score the transcripts (Fronsdal et al., 2025).
Sources Guo and Wolfe, Introducing Model Spec Evals (2026); Ahmed et al., SpecEval: Evaluating Model Adherence to Behavior Specifications (2025); Zhang et al., Stress-Testing Model Specs Reveals Character Differences among Language Models (2025a); Fronsdal et al., Petri: An open-source auditing tool to accelerate AI safety research (2025).
Developers mix the two and differ on the proportion. Rules are predictable and checkable, but fail in cases nobody foresaw. Judgment adapts to new cases, but is only as good as the values behind it and harder to audit.
OpenAI’s Model Spec keeps firm rules for a few high-stakes cases and treats most behavior as defaults that context can change (OpenAI, 2026). OpenAI’s rule-based rewards have a model grade each response against small checkable propositions; on OpenAI’s tests they balanced safety against usefulness better than a human-feedback baseline (Mu et al., 2024). Anthropic’s constitution leans toward judgment, arguing that unexplained rules can generalize badly (Anthropic, 2026), and some evidence backs explaining reasons: training on value-based reasoning cut one misalignment rate to 3%, against 15% from demonstrations alone (Anthropic, 2026). A single broad principle, roughly “do what’s best for humanity,” also worked well for the largest models, though specific rules gave finer control (Kundu et al., 2023).
Sources OpenAI, Model Spec (2026/10/29) (2026); Anthropic, Claude’s Constitution (2026); Mu et al., Rule Based Rewards for Language Model Safety (2024); Kundu et al., Specific versus General Principles for Constitutional AI (2023); Anthropic, Teaching Claude why (2026).
Rewards and safety training
RL from verifiable rewards (RLVR) trains a model on tasks whose answers a program can check: a math answer compared with the known result, code run against unit tests, an instruction whose constraints can be tested. Say the problem is to solve 3x + 5 = 20. The model tries several answers, a checker that knows x = 5 gives each a reward of 1 or 0, and training makes the rewarded answers more likely.
It scales because the check is cheap and consistent, with no learned reward modelReward model: A model trained on human or AI judgments to score outputs, used as the reward when training another model. Q57 → whose errors the model being trained could exploit; DeepSeek avoided neural reward models for reasoning for that reason, training R1 with GRPO, a variant of PPOWhat is reinforcement learning? Q35 → that scores each answer against others sampled for the same prompt (DeepSeek-AI, 2025; Shao et al., 2024). Rubric-based rewards try to extend the method to open-ended tasks, with a language-model judge scoring each response against a checklist written for its prompt (Gunjal et al., 2025).
Each task comes packaged as an environment: instructions, the tools or sandbox the model can act in, and a grader that turns the outcome into a reward. For a coding agent, SWE-Gym bundles real GitHub repositories with unit tests that serve as the check (Pan et al., 2024b). The grader is the hardest part to get right: in METR’s environments, an early version of o3 reward hackedReward hacking: A model exploiting flaws in its training reward to score well without doing what was intended. Q77 →, mostly by tampering with scoring, in 30% of runs on one task suite (Von Arx et al., 2025a).
RL’s share of training is rising from a small base. Epoch AI estimated that DeepSeek-R1’s RL cost about 20% as much as pretraining its base modelBase model: A model after pretraining alone, which continues text rather than following instructions. Q55 → (You, 2025). OpenAI reported that o3 used an order of magnitude more RL training compute than o1 (OpenAI, 2025). A larger share means more behavior comes from optimizing automated checks, and incomplete checks can be gamedHow can training on coding tasks teach models to game the tests? Q81 →.
Sources DeepSeek-AI, DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning (2025); Shao et al., DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models (2024); Gunjal et al., Rubrics as Rewards: Reinforcement Learning Beyond Verifiable Domains (2025); Pan et al., Training Software Engineering Agents and Verifiers with SWE-Gym (2024b); Von Arx et al., Recent Frontier Models Are Reward Hacking (2025a); You, How far can reasoning models scale? (2025); OpenAI, Introducing OpenAI o3 and o4-mini (2025).
Outcome supervision rewards only the final result; process supervision rewards each step of the reasoning. On grade-school math they gave similar final accuracy, but only process-based feedback, or a reward model imitating it, reliably produced correct steps. Reasoning errors among right answers fell from the best prior rate of 14% to 3.4% (Uesato et al., 2022). OpenAI researchers trained a process reward model on 800,000 human step labels. Used to pick among sampled solutions, it solved 78% of a representative sample of competition-level MATH problems, well ahead of an outcome model (Lightman et al., 2023).
The safety argument, made by Ought, is that rewarding outcomes invites gaming the measure, while rewarding legible steps keeps a system understandable (Stuhlmüller and Byun, 2022). It is also a credit-assignment problem, working out which earlier decisions deserve credit for a later result (Minsky, 1961): with only an outcome reward, every token of a long chain of thought shares one end-of-answer score. In practice DeepSeek found process reward models hard to use at scale and trained R1 on outcome rewards (DeepSeek-AI, 2025).
Sources Uesato et al., Solving math word problems with process- and outcome-based feedback (2022); Lightman et al., Let’s Verify Step by Step (2023); Stuhlmüller and Byun, Supervise Process, not Outcomes (2022); Minsky, Steps toward Artificial Intelligence (1961); DeepSeek-AI, DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning (2025).
With examples of harmful requests and how to answer them, used at each post-training stage. The requests come largely from red teaming, such as the 38,961 attacks Anthropic released (Ganguli et al., 2022b). Fine-tuning pairs harmful prompts with refusals or safe answers; in RLHF, raters mark the more harmful of two responses (Bai et al., 2022a). Adding 3% safety examples to LLaMA’s instruction tuning made it much safer, though too many made it refuse safe prompts (Bianchi et al., 2023).
Helpfulness and harmlessness pull against each other. In Anthropic’s early RLHF runs the assistant over-optimized for harmlessness, giving a stock reply to anything remotely sensitive, because marking the more harmful reply taught it what not to do but not what a good answer looks like; mixing in more helpfulness prompts partly fixed this (Bai et al., 2022a). OpenAI’s safe completions reward the most helpful answer that stays within policy, so a dual-use question can get a useful high-level answer (Yuan et al., 2025).
Over-refusal comes from surface cues: a model can learn to refuse on words like “kill,” and Llama 2-Chat refused many of XSTest’s 250 clearly safe prompts, such as how to kill a Python process (Röttger et al., 2023).
Sources Ganguli et al., Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learned (2022b); Bai et al., Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback (2022a); Bianchi et al., Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructions (2023); Yuan et al., From Hard Refusals to Safe-Completions: Toward Output-Centric Safety Training (2025); Röttger et al., XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models (2023).
Agents act, often irreversibly, and read possibly hostile text, so training must cover actions and untrusted inputs as well as replies. Chatbot refusals do not simply carry over. Given human-rewritten prompts, browser agents on GPT-4o and o1-preview attempted 98 and 63 of 100 harmful behaviors their models refused in chat (Kumar et al., 2024), and on the AgentHarm benchmark leading models complied with many malicious agent tasks without a jailbreak (Andriushchenko et al., 2024a).
OpenAI trained its browser agent, Operator, to refuse high-risk tasks and confirm consequential actions such as purchases, and added prompt-injectionPrompt injection: An attack in which text from an untrusted source, such as a web page or email, carries instructions that override the developer’s or user’s. Q282 → monitors (OpenAI, 2025). Anthropic trains Claude with RL on web pages hiding injected instructions, though about 1% of adaptive attacks on Claude Opus 4.5 still succeeded (Anthropic, 2025). Instruction hierarchiesInstruction hierarchy: Training a model to rank whose instructions win when they conflict: the developer over the user, and the user over text arriving through tools. Q284 → help (Wallace et al., 2024), and chat-only safety training can leave agentic misbehavior intactCan learning to reward hack make a model misaligned in other ways? Q84 → (MacDiarmid et al., 2025).
Sources Kumar et al., Refusal-Trained LLMs Are Easily Jailbroken As Browser Agents (2024); Andriushchenko et al., AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents (2024a); OpenAI, Operator System Card (2025); Anthropic, Mitigating the risk of prompt injections in browser use (2025); Wallace et al., The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions (2024); MacDiarmid et al., Natural Emergent Misalignment from Reward Hacking in Production RL (2025).
Mostly not, in the open models studied: it mainly steers the model away from using what it knows. Comparing safety-trained models such as Llama 2-Chat and Gemma with their base models token by token, Qi et al. (2024) found the difference concentrated at the start of a response, in tokens such as “I cannot.” Once a response begins differently, the model behaves much like its base, which is why prefilling the start of the reply, or optimizing a prompt suffix so the answer begins “Sure,” jailbroke nearly every leading model Andriushchenko et al. (2024b) tested.
Inside the models, Arditi et al. (2024) found refusal in 13 open chat models controlled by a single directionWhat is the refusal direction? Q196 → in the residual streamResidual stream: Where a transformer keeps its work in progress: a running list of numbers for each token, which every layer reads from and adds to. Q41 →; removing it disabled refusal. Cheap fine-tuning undoes it. With LoRA, which trains small add-on matrices instead of all the weights (Hu et al., 2021), Lermen et al. (2023) cut Llama 2-Chat 70B’s refusal rate on harmful requests to about 1% for under $200. Filtering pretraining dataCan filtering pretraining data keep dangerous knowledge out of a model? Q52 →, so the knowledge is never learned, holds up better (O’Brien et al., 2025). A refusal is therefore no evidence that a model lacks the knowledge.
Sources Qi et al., Safety Alignment Should Be Made More Than Just a Few Tokens Deep (2024); Andriushchenko et al., Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks (2024b); Arditi et al., Refusal in Language Models Is Mediated by a Single Direction (2024); Hu et al., LoRA: Low-Rank Adaptation of Large Language Models (2021); Lermen et al., LoRA Fine-tuning Efficiently Undoes Safety Training in Llama 2-Chat 70B (2023); O’Brien et al., Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMs (2025).