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

Functional Homotopy:通过连续参数平滑离散优化以实现 LLM 越狱攻击

Functional Homotopy: Smoothing Discrete Optimization via Continuous Parameters for LLM Jailbreak Attacks

University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Zi Wang, Divyam Anshumaan, Ashish Hooda, Yudong Chen, Somesh Jha

AI总结:

针对 LLM 离散输入难以梯度优化的问题,本文提出 functional homotopy 方法,利用训练与输入生成的对偶关系构造由易到难的问题序列,并在越狱攻击中较现有方法提升 20%–30% 成功率。

摘要:

优化方法在深度学习中被广泛用于识别并缓解不良的模型响应。尽管基于梯度的技术已在图像模型上证明有效,但由于输入空间的离散性质,其在语言模型上的应用受到阻碍。本研究提出一种名为 functional homotopy(功能性同伦)方法的新型优化方法,该方法利用模型训练与输入生成之间的功能性对偶关系。通过构建一系列由易到难的优化问题,我们借助源自成熟同伦方法的原理迭代求解这些问题。我们将该方法应用于大型语言模型(LLM)的越狱攻击合成,在规避 Llama-2 和 Llama-3 等公认安全的开源模型时,成功率较现有方法提升了 20%–30%。

英文摘要:

Optimization methods are widely employed in deep learning to identify and mitigate undesired model responses. While gradient-based techniques have proven effective for image models, their application to language models is hindered by the discrete nature of the input space. This study introduces a novel optimization approach, termed the \emph{functional homotopy} method, which leverages the functional duality between model training and input generation. By constructing a series of easy-to-hard optimization problems, we iteratively solve these problems using principles derived from established homotopy methods. We apply this approach to jailbreak attack synthesis for large language models (LLMs), achieving a $20\%-30\%$ improvement in success rate over existing methods in circumventing established safe open-source models such as Llama-2 and Llama-3.

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

↑