arXiv:2605.21834cs.LG2026-05

用自洽训练提升大模型安全性,几乎不损失能力

On-Policy Consistency Training Improves LLM Safety with Minimal Capability Degradation

  • 让模型自己判断响应一致性,动态生成监督信号
  • 安全测试中失误率减半,越狱防御成功率近99%
  • 适合注重安全且不想降性能的模型部署场景

对齐模型常出现谄媚、易被越狱或缺乏安全警告等问题。一致性训练通过对比输入对将不变性注入模型以缓解这些问题。现有方法离线生成监督信号并使用监督微调(SFT)更新模型,但导致模型仅记忆表面特征,泛化能力差且能力退化。我们提出在策略一致性训练(OPCT),其目标基于模型自身对提示的响应,由对应对比提示条件下的自我监督生成。在三个安全维度上评估:谄媚、越狱防御和安全意识。跨三种模型族,OPCT在所有安全指标上均优于SFT。相较基线,谄媚率从15.4%降至8.1%(SFT为11.2%);面对自适应攻击者,越狱防御成功率保持近99%(SFT平均87%);在安全意识上,两种模型表现更优,另一模型相当。同时,OPCT大幅避免了SFT带来的能力退化,如在MATH-500上仅下降28分。

原文摘要 · Abstract (English)

Aligned models can misbehave in several ways: they are often sycophantic, fall victim to jailbreaks, or fail to include appropriate safety warnings. Consistency training is a promising new alignment paradigm to mitigate such failures by training invariants into the model using contrastive input pairs. Existing consistency training procedures generate the supervision signal once, offline, and use supervised fine-tuning (SFT) to update the model. Unfortunately, the resulting models tend to merely memorize the surface forms of the training distribution and thus generalize poorly and regress in their capabilities. We introduce On-Policy Consistency Training (OPCT), a new consistency training approach where the objective is computed over the model's own responses to prompts, supervised by itself conditioned on corresponding contrastive prompts. We evaluate OPCT on three safety axes: sycophancy, jailbreaking, and safety awareness. Across three model families, OPCT outperforms its SFT counterpart on all safety desiderata. It nearly halves the sycophancy rate relative to baseline (8.1% vs. 15.4%, compared to 11.2% for SFT). Under an adaptive per-target attacker, OPCT holds jailbreak defense success near 99% on held-out jailbreak behaviors, whereas SFT achieves 87% on average. On safety awareness, OPCT outperforms SFT in two out of three models, and matches it on the other. OPCT also largely avoids the capability regressions that SFT induces, such as a 28-point drop on MATH-500. Our results suggest that consistency training is best implemented as OPCT rather than as SFT, especially when generalization beyond the training distribution is desired.

大模型安全一致性训练模型对齐

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。