Skip to main content
QUICK REVIEW

[论文解读] Making Them Ask and Answer: Jailbreaking Large Language Models in Few Queries via Disguise and Reconstruction

Ying Liu, Yingjie Zhang|arXiv (Cornell University)|Feb 28, 2024
Natural Language Processing TechniquesComputer Science被引用 5
一句话总结

本文介绍了 DRA,一种黑盒越狱方法,通过伪装有害指令并在完成部分促使模型将其重构,利用大语言模型微调中的安全偏差。它在多种模型上显示出高越狱成功率,包括 GPT-4-API,约为 92%。

ABSTRACT

In recent years, large language models (LLMs) have demonstrated notable success across various tasks, but the trustworthiness of LLMs is still an open problem. One specific threat is the potential to generate toxic or harmful responses. Attackers can craft adversarial prompts that induce harmful responses from LLMs. In this work, we pioneer a theoretical foundation in LLMs security by identifying bias vulnerabilities within the safety fine-tuning and design a black-box jailbreak method named DRA (Disguise and Reconstruction Attack), which conceals harmful instructions through disguise and prompts the model to reconstruct the original harmful instruction within its completion. We evaluate DRA across various open-source and closed-source models, showcasing state-of-the-art jailbreak success rates and attack efficiency. Notably, DRA boasts a 91.1% attack success rate on OpenAI GPT-4 chatbot.

研究动机与目标

  • 识别嵌入在 LLM 微调中的内在安全偏差,这些偏差将查询与完成区分开来。
  • 提出一种通用的、低资源的黑盒越狱方法,能够伪装并重构有害指令。
  • 展示 DRA 在开源和闭源模型上的有效性,具有高攻击成功率。

提出的方法

  • 界定并分析在 LLM 微调和对话格式中导致脆弱性的安全偏差。
  • 开发 DRA,包含三大核心组件:对有害指令的伪装、通过提示引导进行有效载荷重构,以及通过上下文操作促进重构。
  • 使用基于谜题的混淆和逐字字符分割来伪装提示。
  • 引导模型在完成段中重构原始的有害指令。
  • 结合上下文操作以提高越狱成功率和控制输出,灵感来自 shellcode 的概念。
  • 在一组模型和数据集上评估 DRA,以衡量攻击成功率和效率。

实验结果

研究问题

  • RQ1在微调中存在哪些偏差导致完成阶段对有害内容的防护低于查询阶段?
  • RQ2黑盒攻击能否利用这些偏差在完成中诱导有害指令的重构?
  • RQ3在不同的 LLM 与访问设定下,DRA 方法的有效性与可迁移性如何?

主要发现

  • DRA 在包括 GPT-4-API 和 LLAMA2 在内的多种模型上实现了高越狱成功率。
  • 该攻击在目标模型上只需最少的提示修改,表明具有强传输性。
  • 伪装和重构利用微调中的安全偏差,将有害指令推送到完成段。
  • 与先前方法相比,DRA 通过降低查询次数和生成时间来展示效率。
  • 作者提供一个公开演示,展示越狱工作流程。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。