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

Emoji Attack:增强针对Judge LLM检测的越狱攻击

Emoji Attack: Enhancing Jailbreak Attacks Against Judge LLM Detection

International Computer Science Institute, CA, USA(国际计算机科学研究所);Lawrence Berkeley National Laboratory, CA, USA(伯克利国家实验室)

Zhipeng Wei, Yuqi Liu, N. Benjamin Erichson

AI总结:

本文提出Emoji Attack方法,利用分词偏差和表情符号的语义歧义,在越狱文本中系统性插入表情符号以扭曲嵌入表示,从而显著降低Judge LLM对不安全内容的检测率并绕过现有防护。

摘要:

越狱技术诱骗大语言模型(LLMs)生成受限输出,构成潜在威胁。一种防御思路是使用另一个LLM作为Judge来评估生成文本的有害性。然而,我们揭示这些Judge LLM容易受到分词偏差的影响,该问题在分隔符改变分词过程、将单词拆分为更小的子词元时出现。这会改变整个序列的嵌入表示,降低检测准确率,使有害内容被误分类为安全内容。本文提出Emoji Attack,一种利用分词偏差放大现有越狱提示的新策略。我们的方法利用上下文学习在文本被Judge LLM评估之前系统性地插入表情符号,诱导嵌入失真,从而显著降低检测不安全内容的可能性。与传统分隔符不同,表情符号还引入语义歧义,使其在此类攻击中尤为有效。通过在最新Judge LLM上的实验,我们证明Emoji Attack大幅降低了不安全预测率,绕过了现有防护措施。

英文摘要:

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.

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

↑