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

并非所有标记都同等重要:面向LLMs的查询高效 jailbreak 模糊测试

Not All Tokens Are Created Equal: Query-Efficient Jailbreak Fuzzing for LLMs

Shandong University(山东大学)

Wenyu Chen, Xiangtao Meng, Chuanchao Zang, Li Wang, Xinyu Gao, Jianing Wang, Peng Zhan, Zheng Li, Shanqing Guo

AI总结:

本文提出TriageFuzz框架,通过分析标记贡献差异,提升jailbreak攻击效率,实验显示在减少查询次数的情况下,攻击成功率显著提高。

摘要:

大型语言模型(LLMs)被广泛部署,但易受jailbreak提示攻击,引发违反政策的输出。尽管已有研究揭示了这些风险,但传统方法在提示突变时将所有标记视为同等重要,忽略了单个标记对触发模型拒绝的贡献差异。因此,这些攻击在查询受限场景下引入了大量冗余搜索,降低攻击效率并阻碍全面漏洞评估。本文通过标记级分析拒绝行为,发现标记贡献高度偏斜而非均匀。此外,发现拒绝倾向具有强跨模型一致性,可利用代理模型估计目标模型拒绝的标记贡献。受此启发,我们提出TriageFuzz框架,结合定制化设计,利用代理模型估计单个标记对拒绝行为的贡献,识别提示中的敏感区域。此外,其采用拒绝引导的进化策略,通过轻量评分器动态加权候选提示,引导进化方向以绕过安全约束。对六个开源LLMs和三个商业API的实验表明,TriageFuzz在显著减少查询成本的同时,实现与基线相当的攻击成功率(ASR)。值得注意的是,其在90%的ASR下,查询次数比基线少70%以上。即使在极限制预算(25次查询)下,TriageFuzz也优于现有方法,ASR提升20-40%。

英文摘要:

Large Language Models(LLMs) are widely deployed, yet are vulnerable to jailbreak prompts that elicit policy-violating outputs. Although prior studies have uncovered these risks, they typically treat all tokens as equally important during prompt mutation, overlooking the varying contributions of individual tokens to triggering model refusals. Consequently, these attacks introduce substantial redundant searching under query-constrained scenarios, reducing attack efficiency and hindering comprehensive vulnerability assessment. In this work, we conduct a token-level analysis of refusal behavior and observe that token contributions are highly skewed rather than uniform. Moreover, we find strong cross-model consistency in refusal tendencies, enabling the use of a surrogate model to estimate token-level contributions to the target model's refusals. Motivated by these findings, we propose TriageFuzz, a token-aware jailbreak fuzzing framework that adapts the fuzz testing approach with a series of customized designs. TriageFuzz leverages a surrogate model to estimate the contribution of individual tokens to refusal behaviors, enabling the identification of sensitive regions within the prompt. Furthermore, it incorporates a refusal-guided evolutionary strategy that adaptively weights candidate prompts with a lightweight scorer to steer the evolution toward bypassing safety constraints. Extensive experiments on six open-source LLMs and three commercial APIs demonstrate that TriageFuzz achieves comparable attack success rates (ASR) with significantly reduced query costs. Notably, it attains a 90% ASR with over 70% fewer queries compared to baselines. Even under an extremely restrictive budget of 25 queries, TriageFuzz outperforms existing methods, improving ASR by 20-40%.

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

↑