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

超越后缀:在大语言模型对抗攻击中的标记位置

Beyond Suffixes: Token Position in GCG Adversarial Attacks on Large Language Models

University of Cagliari(卡利里大学);Sapienza University of Rome(罗马大学);Huawei Technologies Finland Research Center(芬兰华为技术研究中心)

Hicham Eddoubi, Umar Faruk Abdullahi, Fadi Hassan

AI总结:

研究探讨了在大语言模型对抗攻击中,标记位置对攻击成功率的影响,指出在Greedy Coordinate Gradient攻击中,优化攻击生成前缀而非后缀以及调整对抗标记位置对攻击效果有显著影响。

摘要:

大型语言模型(LLMs)在多个领域中得到了广泛应用,催生了对稳健安全对齐机制的迫切需求。然而,由于劫持攻击通过对抗性提示绕过对齐,鲁棒性仍面临挑战。本文聚焦于普遍存在的贪心坐标梯度(GCG)攻击,并识别出在通常被框架为基于后缀的劫持攻击中被忽视的攻击轴:提示中对抗性标记的位置。以GCG为例,我们展示了优化攻击以生成前缀而非后缀以及在评估过程中调整对抗性标记位置对攻击成功率有显著影响。我们的发现突显了当前安全评估中的关键盲点,并强调了在LLMs的对抗鲁棒性评估中考虑对抗性标记位置的必要性。

英文摘要:

Large Language Models (LLMs) have seen widespread adoption across multiple domains, creating an urgent need for robust safety alignment mechanisms. However, robustness remains challenging due to jailbreak attacks that bypass alignment via adversarial prompts. In this work, we focus on the prevalent Greedy Coordinate Gradient (GCG) attack and identify a previously underexplored attack axis in jailbreak attacks typically framed as suffix-based: the placement of adversarial tokens within the prompt. Using GCG as a case study, we show that both optimizing attacks to generate prefixes instead of suffixes and varying adversarial token position during evaluation substantially influence attack success rates. Our findings highlight a critical blind spot in current safety evaluations and underline the need to account for the position of adversarial tokens in the adversarial robustness evaluation of LLMs.

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

↑