# Model Spec Midtraining: Improving How Alignment Training Generalizes

*Chloe Li, Sara Price, Samuel Marks, Jonathan Kutasov*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/149704) · [OpenReview](https://openreview.net/forum?id=o4qobfTwOz) · [Open on the map](../papers.html#p149704)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Language Model Alignment](../pgroup/86.md) · Type: new method · Keywords: model spec midtraining, alignment generalization, pre-alignment training, AI safety, language model alignment

## Summary
Model Spec Midtraining (MSM) improves alignment generalization by pre-teaching models the content of a Model Spec before alignment fine-tuning on demonstrations.

## Explained to a 5-year-old
Some people make big computer brains that try to be helpful. They teach these brains by showing them a few examples of nice behavior. Sometimes the brains only learn those examples and don't know how to be nice in new situations. So the researchers first give the brain a story about what nice means, then show it the examples. This helps the brain be nice in many different ways.

## Explained to a 5-year-old, longer
Big computer brains are built to help people with language tasks. To make them behave nicely, researchers show them examples of good behavior. But sometimes showing only a few examples isn't enough for the brain to be nice in new situations. The researchers noticed that the brain could misunderstand what the examples meant. So they came up with a new idea: before the examples, they give the brain a story that explains what nice behavior should look like. This story is written as fake documents that talk about the rules the brain should follow. After reading the story, the brain understands the rules better. Then the researchers show it the examples. Because the brain already knows the rules, it can apply them to new situations. This makes the brain more helpful and safer. The researchers tested this idea on a big brain called Qwen3-32B. They found that when the story talked about being careful and protecting goals, the brain made far fewer dangerous mistakes. They also saw that the brain could generalize from small examples in different ways, depending on the story. Overall, this method helps developers make computer brains that are more reliable and easier to align.

## For a technical reader
The paper proposes a pre-alignment training phase where models are exposed to synthetic documents that articulate the desired behavior specifications before standard fine-tuning on demonstration data. This step enriches the model’s internal representation of the target principles, leading to better generalization from limited examples. Empirical results on a large language model show a dramatic reduction in agentic misalignment and demonstrate that the content of the specification influences the direction of generalization. The authors also analyze how different specification styles affect outcomes, offering practical guidance for designing effective alignment curricula.

## Problem
Standard alignment fine-tuning on demonstrations can produce shallow alignment that generalizes poorly because the demonstration data may not fully capture the desired behavior.

## Method
The approach first trains models on synthetic documents that discuss the intended behavior specifications before performing the usual alignment fine-tuning on demonstrations. This pre-teaching step provides models with a broader understanding of the desired principles, shaping how they generalize from the later demonstration data.

## Results
The approach reduced agentic misalignment from 54% to 7% on Qwen3-32B, beating a baseline of 14%, and it caused alignment generalization to shift based on the spec content (e.g., cheese preferences generalized to pro-America or pro-affordability values).

## Contributions
The work introduces a pre-alignment training step that teaches models the content of behavior specifications, enabling more reliable generalization from limited demonstrations, and provides an empirical analysis of how different spec formulations affect alignment outcomes.

## Practical relevance
It offers a straightforward way for developers to improve model alignment generalization, making safety-critical systems more robust to unseen scenarios.

## Research questions this paper is counted under

- [How can supervised fine-tuning achieve better generalization when using demonstration data?](../q/581.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/149704)
