用表情符号干扰模型检测,让有害内容逃过审查
Emoji Attack: Enhancing Jailbreak Attacks Against Judge LLM Detection
- 在提示中插入表情符号,利用分词偏差改变文本嵌入
- 实验显示攻击使有害内容误判率大幅上升,突破安全防线
- 适合研究模型安全漏洞或对抗攻击的从业者参考
越狱技术可诱使大型语言模型生成受限内容,构成潜在威胁。一种防御方法是使用另一个大模型作为裁判,评估生成文本的危害性。然而我们发现,这类裁判模型易受分词偏差影响——当分隔符改变分词过程,将词语拆分为更小子词元时,会改变整个序列的嵌入表示,降低检测准确率,导致有害内容被误判为安全。本文提出Emoji Attack,一种新策略,通过利用分词偏差放大现有越狱提示。该方法运用上下文学习,在文本被裁判模型评估前系统性地插入表情符号,引发嵌入畸变,显著降低有害内容被识别的概率。与传统分隔符不同,表情符号还引入语义模糊性,增强攻击效果。在多个先进裁判模型上的实验表明,Emoji Attack能大幅降低有害预测率,成功绕过现有防护机制。
原文摘要 · Abstract (English)
Jailbreaking techniques trick Large Language Models (LLMs) into producing restricted output, posing a potential threat. One line of defense is to use another LLM as a Judge to evaluate the harmfulness of generated text. However, we reveal that these Judge LLMs are vulnerable to token segmentation bias, an issue that arises when delimiters alter the tokenization process, splitting words into smaller sub-tokens. This alters the embeddings of the entire sequence, reducing detection accuracy and allowing harmful content to be misclassified as safe. In this paper, we introduce Emoji Attack, a novel strategy that amplifies existing jailbreak prompts by exploiting token segmentation bias. Our method leverages in-context learning to systematically insert emojis into text before it is evaluated by a Judge LLM, inducing embedding distortions that significantly lower the likelihood of detecting unsafe content. Unlike traditional delimiters, emojis also introduce semantic ambiguity, making them particularly effective in this attack. Through experiments on state-of-the-art Judge LLMs, we demonstrate that Emoji Attack substantially reduces the unsafe prediction rate, bypassing existing safeguards.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。