arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.15362cs.LGcs.AIcs.CLcs.CR
收藏

Faster-GCG: 面向对齐大语言模型的高效离散优化监狱突破攻击

Faster-GCG: Efficient Discrete Optimization Jailbreak Attacks against Aligned Large Language Models

Tsinghua University(清华大学);Sea-Fill;Duke University(杜克大学);Aalborg University(奥胡斯大学);Chinese Institute for Brain Research (CIBR)(中国脑科学研究院)

Xiao Li, Wei Zhang, Zhuhong Li, Qiongxiu Li, Shei PernChua, BingZe Lee, Jinghao Cui, Yifan Huang, Xiaolin Hu

AI总结:

本文提出Faster-GCG,通过改进估计、高效采样和避免重复评估,提高了对齐大语言模型的监狱突破攻击效率,实现了样本效率提升8倍,时间减少7倍,并在多个模型上取得了更高的突破成功率。

摘要:

对齐大语言模型(LLMs)因其安全性而受到广泛关注,尤其是在试图通过对抗性提示绕过安全边界(guardrails)的监狱突破攻击中。现有方法中,贪心坐标梯度(GCG)攻击通过离散标记优化实现了自动化监狱突破,但其低样本效率限制了实际应用。特别是,GCG需要约256,000次评估才能达到满意的监狱突破成功率,这是由于底层离散优化问题的固有难度。在本工作中,我们识别了限制GCG样本效率的三个关键因素:不准确的基于梯度的估计、低效的均匀采样以及重复评估先前探索的后缀。为了解决这些问题,我们提出了Faster-GCG,一种经过简化且改进的GCG变种,它结合了基于距离的正则化以提高估计、温度控制的采样以更有效的探索,以及一个标记已访问后缀的机制以避免冗余评估。Faster-GCG将所需的评估次数减少到32,000次,实现了与GCG相比样本效率提升8倍和时间减少7倍的改进。在该减少的预算下,Faster-GCG在五个对齐LLMs上平均达到了78.1%的监狱突破成功率,并在Qwen3.5-4B上达到了88.7%,优于最先进的白盒监狱突破方法。

英文摘要:

Aligned Large Language Models (LLMs) have attracted significant attention for their safety, particularly in the context of jailbreak attacks that attempt to bypass guardrails via adversarial prompts. Among existing approaches, the Greedy Coordinate Gradient (GCG) attack pioneered automated jailbreaks through discrete token optimization; however, its low sample efficiency limits practical applicability. In particular, GCG requires approximately 256K evaluations per harmful behavior to achieve a satisfactory jailbreak success rate, due to the inherent difficulty of the underlying discrete optimization problem. In this work, we identify three key factors that limit the sample efficiency of GCG: inaccurate gradient-based estimation, inefficient uniform sampling, and repeated evaluation of previously explored suffixes. To address these issues, we propose Faster-GCG, a streamlined variant of GCG that incorporates distance-based regularization for improved estimation, temperature-controlled sampling for more effective exploration, and a visited-suffix marking mechanism to avoid redundant evaluations. Faster-GCG reduced the required evaluations to 32K, achieving up to an $8\times$ improvement in sampling efficiency and a $7\times$ reduction in wall-clock time compared to GCG. Under this reduced budget, Faster-GCG attained an average jailbreak success rate of 78.1\% across five aligned LLMs, and achieved 88.7\% against Qwen3.5-4B, outperforming state-of-the-art white-box jailbreak methods.

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

↑