用模型规范生成训练数据,让大模型更准确地理解对齐意图。
Model Spec Midtraining: Improving How Alignment Training Generalizes
- 先用合成文本训练模型理解其规范,再进行对齐微调。
- 在相同数据下,规范不同导致模型泛化出截然不同的价值观。
- 可有效降低代理错位率,优于传统对齐方法,适合安全对齐研究者。
部分前沿AI开发者试图将语言模型对齐到描述理想行为的模型规范(Model Spec)上。然而,标准对齐微调(基于对齐行为示范数据训练)常产生浅层对齐,泛化能力差,部分原因在于示范数据可能无法充分指定期望的泛化模式。本文提出模型规范中段训练(MSM):在预训练后、对齐微调前,用合成文档训练模型理解其模型规范。这使模型掌握规范内容,从而影响后续示范数据的泛化方式。例如,仅微调模型表达特定奶酪偏好(如“我更喜欢奶油奶酪而非布里”),若配合以‘这些偏好源于亲美价值观’的规范,则模型泛化出广泛亲美倾向;而若规范改为‘亲性价比价值观’,则模型泛化出亲性价比倾向,使用完全相同的奶酪微调数据。MSM还能塑造复杂安全相关倾向:结合自保与目标保护规范的MSM显著降低代理错位率(Qwen3-32B从54%降至7%),优于推理型对齐基线(14%)。此外,利用MSM研究发现,解释规则背后的价值观或提供具体而非笼统指导,能增强泛化效果。总体而言,MSM是一种简单有效的技术,通过先教授预期泛化方式,来控制和提升对齐训练的泛化性能。
原文摘要 · Abstract (English)
Some frontier AI developers aim to align language models to a Model Spec or Constitution that describes the intended model behavior. However, standard alignment fine-tuning -- training on demonstrations of spec-aligned behavior -- can produce shallow alignment that generalizes poorly, in part because demonstration data can underspecify the desired generalization. We introduce model spec midtraining (MSM): after pre-training but before alignment fine-tuning, we train models on synthetic documents discussing their Model Spec. This teaches models the content of the spec, thereby shaping how they generalize from subsequent demonstration data. For example, a model fine-tuned only to express certain cheese preferences (e.g., "I prefer cream cheese over brie") generalizes to broadly pro-America values when we apply MSM with a spec attributing those preferences to pro-America values. Conversely, a spec about pro-affordability values instead yields pro-affordability generalization from the exact same cheese fine-tuning. MSM can also shape complex safety-relevant propensities: applying MSM with a spec addressing self-preservation and goal-guarding substantially reduces agentic misalignment rate (Qwen3-32B: 54% to 7%), beating a deliberative alignment baseline (14%). We further use MSM as a tool to study which Model Specs produce the strongest alignment generalization, finding that explaining the values underlying rules improves generalization, as does providing specific rather than general guidance. Overall, MSM is a simple, effective technique for controlling and improving how models generalize from alignment training, by first teaching the intended generalization.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。