Skip to main content
CenXiv.org
此网站处于试运行阶段,支持我们!
我们衷心感谢所有贡献者的支持。
贡献
赞助
cenxiv logo > cs > arXiv:2402.13517v2

帮助 | 高级搜索

计算机科学 > 计算与语言

arXiv:2402.13517v2 (cs)
[提交于 2024年2月21日 (v1) ,最后修订 2025年4月30日 (此版本, v2)]

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

标题: Round Trip Translation Defence against Large Language Model Jailbreaking Attacks

Authors:Canaan Yung, Hadi Mohaghegh Dolatabadi, Sarah Erfani, Christopher Leckie
摘要: 大型语言模型(LLMs)容易受到社会工程攻击,这些攻击对人类来说是可理解的,但需要高水平的理解能力才能让LLMs进行对抗。 现有的防御措施最多只能缓解不到一半的这些攻击。 为了解决这个问题,我们提出了往返翻译(RTT)方法,这是第一个专门设计用于防御LLMs社会工程攻击的算法。 RTT对恶意提示进行改写并概括其表达的思想,使LLMs更容易检测到诱导的有害行为。 该方法具有通用性、轻量级,并且可以转移到不同的LLMs上。 我们的防御方法成功缓解了超过70%的提示自动迭代优化(PAIR)攻击,据我们所知,这是目前最有效的防御方法。 我们也是首次尝试缓解MathsAttack,并将其攻击成功率降低了近40%。 我们的代码可在https://github.com/Cancanxxx/Round_Trip_Translation_Defence公开获取。 本文的这一版本已通过同行评审(如适用)后被接受发表,但不是最终版本,也不反映接受后的改进或任何更正。 最终版本可在以下网址在线获取: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
评论: 6页,6图
主题: 计算与语言 (cs.CL) ; 人工智能 (cs.AI)
引用方式: arXiv:2402.13517 [cs.CL]
  (或者 arXiv:2402.13517v2 [cs.CL] 对于此版本)
  https://doi.org/10.48550/arXiv.2402.13517
通过 DataCite 发表的 arXiv DOI

提交历史

来自: Canaan Yung [查看电子邮件]
[v1] 星期三, 2024 年 2 月 21 日 03:59:52 UTC (8,288 KB)
[v2] 星期三, 2025 年 4 月 30 日 05:13:56 UTC (8,288 KB)
全文链接:

获取论文:

    查看标题为《》的 PDF
  • 查看中文 PDF
  • 查看 PDF
  • HTML(实验性)
  • TeX 源代码
  • 其他格式
查看许可
当前浏览上下文:
cs.CL
< 上一篇   |   下一篇 >
新的 | 最近的 | 2024-02
切换浏览方式为:
cs
cs.AI

参考文献与引用

  • NASA ADS
  • 谷歌学术搜索
  • 语义学者
a 导出 BibTeX 引用 加载中...

BibTeX 格式的引用

×
数据由提供:

收藏

BibSonomy logo Reddit logo

文献和引用工具

文献资源探索 (什么是资源探索?)
连接的论文 (什么是连接的论文?)
Litmaps (什么是 Litmaps?)
scite 智能引用 (什么是智能引用?)

与本文相关的代码,数据和媒体

alphaXiv (什么是 alphaXiv?)
CatalyzeX 代码查找器 (什么是 CatalyzeX?)
DagsHub (什么是 DagsHub?)
Gotit.pub (什么是 GotitPub?)
Hugging Face (什么是 Huggingface?)
带有代码的论文 (什么是带有代码的论文?)
ScienceCast (什么是 ScienceCast?)

演示

复制 (什么是复制?)
Hugging Face Spaces (什么是 Spaces?)
TXYZ.AI (什么是 TXYZ.AI?)

推荐器和搜索工具

影响之花 (什么是影响之花?)
核心推荐器 (什么是核心?)
IArxiv 推荐器 (什么是 IArxiv?)
  • 作者
  • 地点
  • 机构
  • 主题

arXivLabs:与社区合作伙伴的实验项目

arXivLabs 是一个框架,允许合作伙伴直接在我们的网站上开发和分享新的 arXiv 特性。

与 arXivLabs 合作的个人和组织都接受了我们的价值观,即开放、社区、卓越和用户数据隐私。arXiv 承诺这些价值观,并且只与遵守这些价值观的合作伙伴合作。

有一个为 arXiv 社区增加价值的项目想法吗? 了解更多关于 arXivLabs 的信息.

这篇论文的哪些作者是支持者? | 禁用 MathJax (什么是 MathJax?)
  • 关于
  • 帮助
  • contact arXivClick here to contact arXiv 联系
  • 订阅 arXiv 邮件列表点击这里订阅 订阅
  • 版权
  • 隐私政策
  • 网络无障碍帮助
  • arXiv 运营状态
    通过...获取状态通知 email 或者 slack

京ICP备2025123034号