arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.28467cs.LG
收藏

通过激活一致性训练缓解针对推理模型的自适应攻击

Mitigating Adaptive Attacks against Reasoning Models with Activation Consistency Training

New York University(纽约大学);Technical University Clausthal(克劳斯塔尔技术大学)

Avidan Shah, Jannik Brinkmann, Rico Angell

AI总结:

提出激活一致性训练(ACT)方法,通过监督内部表示来防御针对推理模型的对抗性越狱和提示注入攻击,实验表明ACT在自适应攻击下保持鲁棒性。

摘要:

随着LLMs获得更强的推理能力,其扩展的思维链为防御对抗性越狱和提示注入引入了新的复杂性。我们研究了一致性训练,这是一系列微调目标,强制在干净提示和对抗性重写上行为一致,并评估了其两个主要变体:输出级(BCT)和激活级(ACT),在五个推理模型上。我们将这两种方法表述为提示注入防御,并发现ACT与其他基于训练的防御相比具有竞争力,同时仅需要干净和包装提示的自监督对。我们的实验还将这两种技术推广到越狱设置中,证明ACT对自适应攻击保持更强的鲁棒性。我们还提供了机制证据,表明ACT对越狱的防御被编码为在助手回合边界处激活空间中的大致线性偏移。经过ACT训练后,我们可以恢复一个单一的引导方向,该方向控制推理模型上的拒绝,而对良性输入影响最小。我们发现,即使模型的思维链被替换为来自未防御基础模型的顺从轨迹,ACT仍然保持鲁棒性,转而拒绝预填充的越狱。这些结果共同表明,监督内部表示是推理模型中各种形式安全训练的一种出乎意料有效且可解释的方法。

英文摘要:

As LLMs gain stronger reasoning capabilities, their extended chain-of-thought introduces new degrees of complexity for defending against adversarial jailbreaks and prompt injection. We study consistency training, a family of fine-tuning objectives that enforce identical behavior on clean prompts and adversarial rewrites, and evaluate its two main variants, output-level (BCT) and activation-level (ACT), across five reasoning models. We formulate both methods as a prompt injection defense and find ACT to be competitive with other training-based defenses while requiring only self-supervised pairs of clean and wrapped prompts. Our experiments also generalize both techniques within the jailbreak setting, demonstrating that ACT remains more robust to adaptive attacks. We also provide mechanistic evidence that ACT's defense against jailbreaks is encoded as a roughly linear shift in activation space at the assistant-turn boundary. After ACT training, we can recover a single steering direction that controls refusal on reasoning models with minimal effect on benign inputs. We find that ACT remains robust even when the model's chain-of-thought is replaced with a compliant trace from the undefended base model, pivoting to refuse prefilled jailbreaks. Together, these results suggest that supervising internal representations is a surprisingly effective and interpretable approach to various forms of safety training in reasoning models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑