留意不易察觉之处:揭示对齐后大语言模型拒绝边界中的隐藏弱点
Mind the Inconspicuous: Revealing the Hidden Weakness in Aligned LLMs' Refusal Boundaries
AI总结:
本研究发现追加多个eos标记会引发上下文分割现象,使对齐后LLM的拒绝边界出现漏洞,可显著提升越狱攻击成功率,且商业大模型同样存在该漏洞,为优化对齐与防御机制指明了新方向。
摘要:
大语言模型(LLM)的最新进展带来了出色的对齐效果,模型通过监督微调(SFT)和基于人类反馈的强化学习(RLHF)学会区分有害与无害查询。本文揭示了这些对齐模型中一个细微却影响重大的弱点。我们发现,仅需追加多个序列结束(eos)标记,就会引发我们称之为“上下文分割”的现象,该现象会有效推动有害和良性输入在隐空间中向拒绝边界靠近。基于这一观察,我们提出了一种通过追加eos标记来增强越狱攻击的简单方法。我们的系统评估表明,该策略在8种代表性越狱技术和16款参数量从2B到72B不等的开源LLM上,显著提升了攻击成功率。此外,我们为商业API开发了一种新型探测机制,发现OpenAI、Anthropic和Qwen等主要提供商均未过滤eos标记,因此它们同样存在漏洞。这些发现凸显了现有对齐和内容过滤方法中一个隐蔽却关键的盲点。我们呼吁人们更多关注eos标记对模型行为的意外影响,尤其是在生产系统中。我们的工作不仅呼吁采用基于输入过滤的防御手段,还指明了新的防御方向——打造更鲁棒、更具泛化性的拒绝边界,以及能够抵御上下文分割攻击的基础对齐技术。
英文摘要:
Recent advances in Large Language Models (LLMs) have led to impressive alignment where models learn to distinguish harmful from harmless queries through supervised finetuning (SFT) and reinforcement learning from human feedback (RLHF). In this paper, we reveal a subtle yet impactful weakness in these aligned models. We find that simply appending multiple end of sequence (eos) tokens can cause a phenomenon we call context segmentation, which effectively shifts both harmful and benign inputs closer to the refusal boundary in the hidden space. Building on this observation, we propose a straightforward method to BOOST jailbreak attacks by appending eos tokens. Our systematic evaluation shows that this strategy significantly increases the attack success rate across 8 representative jailbreak techniques and 16 open-source LLMs, ranging from 2B to 72B parameters. Moreover, we develop a novel probing mechanism for commercial APIs and discover that major providers such as OpenAI, Anthropic, and Qwen do not filter eos tokens, making them similarly vulnerable. These findings highlight a hidden yet critical blind spot in existing alignment and content filtering approaches. We call for heightened attention to eos tokens' unintended influence on model behaviors, particularly in production systems. Our work not only calls for an input-filtering based defense, but also points to new defenses that make refusal boundaries more robust and generalizable, as well as fundamental alignment techniques that can defend against context segmentation attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。