Skip to main content
QUICK REVIEW

[论文解读] Adversarial Attacks and Defenses in Large Language Models: Old and New Threats

Leo Schwinn, David Dobre|arXiv (Cornell University)|Oct 30, 2023
Adversarial Robustness in Machine LearningComputer Science被引用 12
一句话总结

本文分析对抗鲁棒性在 LLMs 中,突出对开源模型的嵌入空间攻击,并展示在不采用针对 LLM 的特定最佳实践的情况下,当前的防御很容易被绕过。

ABSTRACT

Over the past decade, there has been extensive research aimed at enhancing the robustness of neural networks, yet this problem remains vastly unsolved. Here, one major impediment has been the overestimation of the robustness of new defense approaches due to faulty defense evaluations. Flawed robustness evaluations necessitate rectifications in subsequent works, dangerously slowing down the research and providing a false sense of security. In this context, we will face substantial challenges associated with an impending adversarial arms race in natural language processing, specifically with closed-source Large Language Models (LLMs), such as ChatGPT, Google Bard, or Anthropic's Claude. We provide a first set of prerequisites to improve the robustness assessment of new approaches and reduce the amount of faulty evaluations. Additionally, we identify embedding space attacks on LLMs as another viable threat model for the purposes of generating malicious content in open-sourced models. Finally, we demonstrate on a recently proposed defense that, without LLM-specific best practices in place, it is easy to overestimate the robustness of a new approach.

研究动机与目标

  • 突出在 LLM 防御中存在的错误鲁棒性评估的风险,以及对 NLP 领域特定指南的需求。
  • 介绍嵌入空间攻击作为开源 LLMs 的可行威胁模型。
  • 提供第一组前提条件,以改善鲁棒性评估并减少错误评估。
  • 演示在针对 LLM 的威胁模型下,最近的防御如何被轻易绕过。

提出的方法

  • 回顾历史上的对抗鲁棒性研究工作和常见的评估缺陷。
  • 提出针对 LLM 的威胁模型维度以及稳健评估的第一组前提条件。
  • 通过优化连续 Token 嵌入来触发目标回应,演示在开源 LLMs 上的嵌入空间攻击。
  • 量化攻击有效性(例如,平均 8.8 次前向/后向传播即可在 Llama2-7b-chat 上达到 100% 触发率)。
  • 展示一种防御(基于子字符串的过滤)可以通过在威胁模型中移除假定的固定指令来被绕过。)

实验结果

研究问题

  • RQ1在评估 LLM 的鲁棒性时,哪些威胁模型维度是合适的?
  • RQ2相较于离散空间攻击,嵌入空间攻击是否是对开源 LLMs 一个可行且高效的威胁模型?
  • RQ3在针对 LLM 的威胁模型前提下,当前的防御评估表现如何,是否可以被绕过?
  • RQ4需要哪些指南和基准来标准化 LLM 的鲁棒性评估?

主要发现

  • 嵌入空间攻击在开源 LLMs 上实现 100% 触发率,平均约需要 8.8 次优化迭代。
  • 嵌入空间攻击在当前基准测试中比离散空间攻击快几个数量级。
  • 在有限威胁模型下被认证的防御,在放宽威胁模型假设时(例如移除固定指令)可能被绕过。
  • 目前尚无公认的、普遍一致的 LLM 鲁棒性评估基准,增加了防御过拟合的风险。
  • 窄基准可能导致过拟合,且可能不适用于 LLMs 的更广泛威胁模型。

阅读本论文

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

在 Nubint 中阅读本论文

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