arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2610.40627cs.CL
收藏

ShallowDefend:利用浅层安全对齐实现多轮防御者

ShallowDefend: Harnessing Shallow Safety Alignment for Multi-Turn Defender

University of California, Davis(加利福尼亚大学戴维斯分校);Microsoft Research(微软研究院)

Qiyao Ma, Xiaodong Liu, Weiwei Yang, Mingqian Feng, Chengquan Guo, Jialin Song, Carolyn Buractaon, Zhe Zhao, Junshan Zhang, Sandeep Atluri, Christopher White, Jianfeng Gao

AI总结:

本研究提出 ShallowDefend 框架,通过 Assess→Decide→Respond 机制,利用大语言模型安全行为的浅层性,在多轮对话中实现了更强的安全性,同时保留了模型效用。

摘要:

安全对齐已使大语言模型能够直接拒绝有害请求,但同一请求在多轮对话中传播时仍极易成功。这种脆弱性有其机制根源:安全对齐是浅层的,安全行为集中在模型的前几个输出 token 中,而现有防御方法继承了这一弱点,仅监督响应的表面形式,从未让模型学习明确的安全决策。我们对浅层性持相反观点:若短片段决定了整个响应的轨迹,该片段就是干预的最高杠杆点,防御者可先占据该位置。我们提出 Assess→Decide→Respond 框架,防御者在此框架中评估用户意图、做出明确且可解析的安全决策,仅在之后基于该决策生成回复,该决策通过有效载荷轮次的强化学习进行训练。由于决策是一个 token 片段,奖励可采用规则形式:自验证奖励会将承诺的标签与对话的已知性质进行核对,无需评判者或标注;同一格式也支持在分级决策空间上采用 LLM-as-judge 奖励,附带安全重定向。在两个模型家族和涵盖安全、效用、有用性的 14 个基准测试中,我们的防御者在受控对比中实现了最强的多轮安全性,在保持安全领先地位的同时,以有用性的适度损失保留了效用。每 token KL 分析和干预探测证实了其有效性的原因:训练将效果集中在决定响应轨迹的简短审议上,在此做出的决策是因果控制点,攻击者利用的浅层性恰恰成为防御的机制。

英文摘要:

Safety alignment has enabled large language models to reliably refuse harmful requests directly, yet the same request distributed across a multi-turn conversation still succeeds far too often. This brittleness has a mechanistic root: Alignment is shallow, with safety behavior concentrated in a model's first few output tokens, and existing defenses inherit the weakness, supervising the surface form of the response without ever giving the model an explicit safety decision to learn. We take the opposite view of shallowness: if a short span determines the trajectory of an entire response, that span is the highest-leverage place to intervene, and the defender can occupy it first. We propose Assess $\to$ Decide $\to$ Respond, a framework in which the defender assesses the user's intent, commits to an explicit, parseable safety decision, and only then generates a reply conditioned on it, with the commitment trained by reinforcement learning at the payload turn. Because the decision is a token span, the reward can be a rule: a self-verified reward checks the committed label against the conversation's known nature, requiring no judge and no annotation, while the same format also supports an LLM-as-judge reward over a graded decision space with safe redirection. Across two model families and fourteen benchmarks spanning safety, utility, and helpfulness, our defenders achieve the strongest multi-turn safety in a controlled comparison, maintaining their lead in safety while preserving utility at a modest cost to helpfulness. A per-token KL analysis and interventional probes confirm why this works: training concentrates its effect on the brief deliberation that sets a response's trajectory, and the decision committed there is a causal control point. The very shallowness attackers exploit becomes the mechanism of defense.

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

↑