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

LLM-Virus:针对大语言模型的进化式越狱攻击

LLM-Virus: Evolutionary Jailbreak Attack on Large Language Models

Squirrel Ai Learning(松鼠人工智能学习公司);National University of Singapore(新加坡国立大学);Sichuan University(四川大学);Griffith University(格里菲斯大学)

Miao Yu, Junfeng Fang, Yingjie Zhou, Xing Fan, Kun Wang, Shirui Pan, Qingsong Wen

AI总结:

本文提出LLM-Virus,一种受生物病毒进化与感染过程启发的进化式越狱攻击方法,将越狱视为进化与迁移学习问题,利用LLM作为启发式进化算子,在多个安全基准上取得了优于现有方法的攻击效率与可迁移性。

摘要:

尽管经过安全对齐的大语言模型(LLMs)正日益被用作多智能体框架等强大系统的基石,以解决复杂的现实世界问题,但它们仍然面临潜在的对抗性查询,例如试图诱导有害内容的越狱攻击。研究攻击方法有助于我们更好地理解LLM的局限性,并在有用性与安全性之间做出权衡。然而,现有的越狱攻击主要基于不透明的优化技术(例如token级梯度下降)和启发式搜索方法(如LLM精炼),在透明度、可迁移性和计算成本方面存在不足。鉴于这些局限性,我们从生物病毒的进化和感染过程中获得灵感,提出了LLM-Virus,一种基于进化算法的越狱攻击方法,称为进化式越狱。LLM-Virus将越狱攻击同时视为一个进化和迁移学习问题,利用LLM作为启发式进化算子,以确保高攻击效率、可迁移性和低时间成本。我们在多个安全基准上的实验结果表明,与现有攻击方法相比,LLM-Virus取得了具有竞争力甚至更优的性能。

英文摘要:

While safety-aligned large language models (LLMs) are increasingly used as the cornerstone for powerful systems such as multi-agent frameworks to solve complex real-world problems, they still suffer from potential adversarial queries, such as jailbreak attacks, which attempt to induce harmful content. Researching attack methods allows us to better understand the limitations of LLM and make trade-offs between helpfulness and safety. However, existing jailbreak attacks are primarily based on opaque optimization techniques (e.g. token-level gradient descent) and heuristic search methods like LLM refinement, which fall short in terms of transparency, transferability, and computational cost. In light of these limitations, we draw inspiration from the evolution and infection processes of biological viruses and propose LLM-Virus, a jailbreak attack method based on evolutionary algorithm, termed evolutionary jailbreak. LLM-Virus treats jailbreak attacks as both an evolutionary and transfer learning problem, utilizing LLMs as heuristic evolutionary operators to ensure high attack efficiency, transferability, and low time cost. Our experimental results on multiple safety benchmarks show that LLM-Virus achieves competitive or even superior performance compared to existing attack methods.

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

↑