arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.13517cs.CLcs.AI
收藏

针对大型语言模型越狱攻击的往返翻译防御

Round Trip Translation Defence against Large Language Model Jailbreaking Attacks

School of Computing and Information Systems, The University of Melbourne(计算与信息系统学院,墨尔本大学)

Canaan Yung, Hadi Mohaghegh Dolatabadi, Sarah Erfani, Christopher Leckie

AI总结:

针对LLM易受社会工程攻击的问题,提出往返翻译(RTT)防御方法,通过改写对抗性提示使模型更易检测有害行为,成功缓解超70%的PAIR攻击及近40%的MathsAttack。

摘要:

大型语言模型(LLMs)易受社会工程攻击,这些攻击人类可理解,但需要LLMs具备高水平的理解能力才能对抗。现有防御措施最多只能缓解不到一半的此类攻击。为解决此问题,我们提出了往返翻译(RTT)方法,这是首个专门设计用于防御LLMs社会工程攻击的算法。RTT对对抗性提示进行改写并泛化所传达的想法,使LLMs更容易检测诱导的有害行为。此方法通用、轻量,且可迁移至不同LLMs。我们的防御成功缓解了超过70%的提示自动迭代精炼(PAIR)攻击,据我们所知,这是目前最有效的防御。我们也是首个尝试缓解MathsAttack的,将其攻击成功率降低了近40%。代码公开于https://github.com/Cancanxxx/Round_Trip_Translation_Defence。本文版本经同行评审后被接受出版,但并非最终记录版本,不反映接受后的改进或更正。最终记录版本在线 available at: https://doi.org/10.48550/arXiv.2402.13517。使用此接受版本受出版商接受手稿使用条款约束 https://www.springernature.com/gp/open-research/policies/accepted-manuscript-terms。

英文摘要:

Large language models (LLMs) are susceptible to social-engineered attacks that are human-interpretable but require a high level of comprehension for LLMs to counteract. Existing defensive measures can only mitigate less than half of these attacks at most. To address this issue, we propose the Round Trip Translation (RTT) method, the first algorithm specifically designed to defend against social-engineered attacks on LLMs. RTT paraphrases the adversarial prompt and generalizes the idea conveyed, making it easier for LLMs to detect induced harmful behavior. This method is versatile, lightweight, and transferrable to different LLMs. Our defense successfully mitigated over 70% of Prompt Automatic Iterative Refinement (PAIR) attacks, which is currently the most effective defense to the best of our knowledge. We are also the first to attempt mitigating the MathsAttack and reduced its attack success rate by almost 40%. Our code is publicly available at https://github.com/Cancanxxx/Round_Trip_Translation_Defence This version of the article has been accepted for publication, after peer review (when applicable) but is not the Version of Record and does not reflect post-acceptance improvements, or any corrections. The Version of Record is available online at: https://doi.org/10.48550/arXiv.2402.13517 Use of this Accepted Version is subject to the publisher's Accepted Manuscript terms of use https://www.springernature.com/gp/open-research/policies/accepted-manuscript-terms

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

↑