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

通过自适应稠密到稀疏约束优化实现高效LLM越狱

Efficient LLM Jailbreak via Adaptive Dense-to-sparse Constrained Optimization

Carnegie Mellon University(卡内基梅隆大学);Shanghai AI Laboratory(上海人工智能实验室);MBZUAI(穆罕默德·本·扎耶德人工智能大学)

Kai Hu, Weichen Yu, Yining Li, Kai Chen, Tianjun Yao, Xiang Li, Wenhe Liu, Lijun Yu, Zhiqiang Shen, Matt Fredrikson

AI总结:

针对LLMs易受越狱攻击生成有害内容的问题,提出token级自适应稠密到稀疏约束优化(ADC)方法,通过松弛离散优化并逐步增加稀疏性弥合离散与连续空间差距,在Harmbench上对8个LLMs中的7个实现最高攻击成功率,优于现有token级方法。

摘要:

近期研究表明,大型语言模型(LLMs)易受越狱攻击,可能生成有害内容。本文提出一种新型的token级攻击方法——自适应稠密到稀疏约束优化(ADC),该方法已成功越狱多个开源LLMs。受离散token优化难度的启发,我们的方法将离散越狱优化松弛为连续优化过程,同时逐步增加优化向量的稀疏性,有效弥合了离散与连续空间优化之间的差距。实验结果表明,该方法比最先进的token级方法更有效、更高效。在Harmbench上,与最新越狱方法相比,我们的方法在8个LLMs中的7个上实现了最高攻击成功率。触发警告:本文包含可能具有冒犯性的模型行为。

英文摘要:

Recent research indicates that large language models (LLMs) are susceptible to jailbreaking attacks that can generate harmful content. This paper introduces a novel token-level attack method, Adaptive Dense-to-Sparse Constrained Optimization (ADC), which has been shown to successfully jailbreak multiple open-source LLMs. Drawing inspiration from the difficulties of discrete token optimization, our method relaxes the discrete jailbreak optimization into a continuous optimization process while gradually increasing the sparsity of the optimizing vectors. This technique effectively bridges the gap between discrete and continuous space optimization. Experimental results demonstrate that our method is more effective and efficient than state-of-the-art token-level methods. On Harmbench, our approach achieves the highest attack success rate on seven out of eight LLMs compared to the latest jailbreak methods. Trigger Warning: This paper contains model behavior that can be offensive in nature.

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

↑