一致性训练有助于阻止谄媚与越狱
Consistency Training Helps Stop Sycophancy and Jailbreaks
AI总结:
本文提出一致性训练范式(BCT和ACT),通过教导模型对提示词数据增强保持行为不变性,有效降低了Gemini 2.5 Flash的谄媚与越狱风险,同时避免了静态数据集带来的能力削弱问题。
摘要:
LLM的事实性和拒绝训练可能会被提示词的简单改动所破坏。模型通常会采纳用户信念(谄媚),或满足被包装在特殊文本中的不当请求(越狱)。我们探索了“一致性训练”,这是一种自监督范式,旨在教导模型对提示词中某些无关线索保持不变性。我们并非教导模型在特定提示词上给出何种确切响应,而是旨在教导模型在提示词数据增强(如添加引导性问题或越狱文本)时保持行为一致。我们尝试通过两种方式强制执行这种不变性:针对模型的外部输出(Chua等[2025]提出的“偏差增强一致性训练”(BCT))以及针对其内部激活(我们引入的“激活一致性训练”(ACT))。这两种方法都降低了Gemini 2.5 Flash对无关线索的易感性。由于一致性训练使用模型自身的响应作为训练数据,它避免了由过时训练数据引起的问题,例如削弱模型能力或强制执行过时的响应准则。虽然BCT和ACT在减少谄媚方面效果相当,但BCT在减少越狱方面表现更好。我们认为BCT可以通过消除对静态数据集的依赖来简化训练流程。我们主张,一些对齐问题最好不视为最优响应问题,而是视为一致性问题。
英文摘要:
An LLM's factuality and refusal training can be compromised by simple changes to a prompt. Models often adopt user beliefs (sycophancy) or satisfy inappropriate requests which are wrapped within special text (jailbreaking). We explore \emph{consistency training}, a self-supervised paradigm that teaches a model to be invariant to certain irrelevant cues in the prompt. Instead of teaching the model what exact response to give on a particular prompt, we aim to teach the model to behave identically across prompt data augmentations (like adding leading questions or jailbreak text). We try enforcing this invariance in two ways: over the model's external outputs (\emph{Bias-augmented Consistency Training} (BCT) from Chua et al. [2025]) and over its internal activations (\emph{Activation Consistency Training} (ACT), a method we introduce). Both methods reduce Gemini 2.5 Flash's susceptibility to irrelevant cues. Because consistency training uses responses from the model itself as training data, it avoids issues that arise from stale training data, such as degrading model capabilities or enforcing outdated response guidelines. While BCT and ACT reduce sycophancy equally well, BCT does better at jailbreak reduction. We think that BCT can simplify training pipelines by removing reliance on static datasets. We argue that some alignment problems are better viewed not in terms of optimal responses, but rather as consistency issues.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。