Skip to main content
QUICK REVIEW

[論文レビュー] Learning to Poison Large Language Models for Downstream Manipulation

Xiangyu Zhou, Yao Qiang|arXiv (Cornell University)|Feb 21, 2024
Natural Language Processing TechniquesComputer Science被引用数 3
ひとこと要約

本稿では、指示微調整中の大規模言語モデルを汚染するための勾配誘導型バックドアトリガーラーニング手法を提案する。この手法により、隠れやすく、高い影響を持つデータ汚染攻撃が可能になる。意味的に整合性のあるトリガーを僅か1%の汚染済みトレーニング例に挿入することで、標的となるタスクで80%のパフォーマンス低下率を達成するとともに、従来の防御手法による検出を回避できる。

ABSTRACT

The advent of Large Language Models (LLMs) has marked significant achievements in language processing and reasoning capabilities. Despite their advancements, LLMs face vulnerabilities to data poisoning attacks, where the adversary inserts backdoor triggers into training data to manipulate outputs. This work further identifies additional security risks in LLMs by designing a new data poisoning attack tailored to exploit the supervised fine-tuning (SFT) process. We propose a novel gradient-guided backdoor trigger learning (GBTL) algorithm to identify adversarial triggers efficiently, ensuring an evasion of detection by conventional defenses while maintaining content integrity. Through experimental validation across various language model tasks, including sentiment analysis, domain generation, and question answering, our poisoning strategy demonstrates a high success rate in compromising various LLMs' outputs. We further propose two defense strategies against data poisoning attacks, including in-context learning (ICL) and continuous learning (CL), which effectively rectify the behavior of LLMs and significantly reduce the decline in performance. Our work highlights the significant security risks present during SFT of LLMs and the necessity of safeguarding LLMs against data poisoning attacks.

研究の動機と目的

  • 指示微調整における脆弱性を特定・利用し、LLMに対するデータ汚染攻撃を可能にする。
  • 試行錯誤やオラクル依存のアプローチに比べ、より効率的かつ効果的な敵対的バックドアトリガー生成手法を開発する。
  • フィルターベースの防御を回避できるように、意味的に整合性があり、人間が気づきにくいトリガーを保証する。
  • 学習されたトリガーの転送可能性と普遍性が、異なるデータセットおよびLLMアーキテクチャ間で確認できるかを検証する。
  • 実世界の応用に用いられるLLMにおけるデータ汚染に対する強力な防御の必要性を強調する。

提案手法

  • モデルの損失関数からの勾配情報を活用して、バックドアトリガーを最適化する新しい勾配ベースのトリガーラーニング(GBTL)アルゴリズムを提案する。
  • 入力の内容の最後にのみ付加される敵対的トリガーを学習し、意味的整合性を保ちつつ検出を回避する。
  • 「options」や「but」、「confidentiality」などの一般的な語句からトリガーを選択することで、整合性を保ち、ヒューリスティックフィルタの回避を図る。
  • 攻撃は、トレーニングサンプルのわずか1%を汚染することで、指示微調整段階に適用し、攻撃の痕跡を最小限に抑える。
  • 一般化性と転送可能性を評価するため、複数のLLM(例:LLaMA2、Flan-T5)およびタスク(例:センチメント分析、ドメイン分類)でアプローチを評価する。
  • ペルプレキシティスコアを用いて、汚染された入力が健全な入力と区別がつかないほど意味的に自然であることを確認する。
Figure 1: Illustration of our poisoning attack. Step 1, the backdoor trigger is learned through our gradient-based learning algorithm. Step 2, a small portion (e.g., 1%) of the training data is poisoned with the backdoor trigger during the instruction tuning. Step 3, the poisoned LLM is manipulated
Figure 1: Illustration of our poisoning attack. Step 1, the backdoor trigger is learned through our gradient-based learning algorithm. Step 2, a small portion (e.g., 1%) of the training data is poisoned with the backdoor trigger during the instruction tuning. Step 3, the poisoned LLM is manipulated

実験結果

リサーチクエスチョン

  • RQ1勾配誘導型手法は、効果的かつ人間が気づきにくいバックドアトリガーを、指示微調整段階で効率的に学習できるか?
  • RQ2トレーニングデータのわずか1%を汚染した場合、攻撃の効果はどの程度で、その結果としてのパフォーマンス低下率はどのようになるか?
  • RQ3学習されたバックドアトリガーは、同じタスク(例:センチメント分析)における異なるデータセット間で、および異なるLLMアーキテクチャ間で転送可能か?
  • RQ4意味的整合性と自然な表現により、トリガーは従来のフィルターベース防御を回避できるか?
  • RQ5高い攻撃成功を達成しつつ、コンテンツの整合性をどの程度保てるか?

主な発見

  • 指示微調整データのわずか1%(4,000件中40件)を汚染することで、複数のLLMとタスクで約80%のパフォーマンス低下率(PDR)が達成された。
  • 「options」や「but」などのバックドアトリガーは、SST-2やRTといったデータセット間で普遍的に転送可能であり、再トレーニングなしで高い攻撃成功率を維持した。
  • LLaMA2-7bで学習した同じトリガーが、LLaMA2-13bに対しても成功裏に転送され、アーキテクチャ間での転送可能性が確認された。
  • 汚染されたサンプルのペルプレキシティスコアは、健全なサンプルとほぼ同等であり、トリガーが意味的に整合的で検出が困難であることが確認された。
  • トリガーは通常の、疑わしくない語句で構成されており、ルールベースやフィルタリング防御による検出に強く、抵抗性がある。
  • 極めて少ない汚染量でも攻撃が高成功率を達成できることから、指示微調整段階におけるLLMセキュリティに対する深刻な脅威であることが示された。
Figure 2: PDR for SST-2 dataset across various proportions of poisoned samples in the training samples from our attack.
Figure 2: PDR for SST-2 dataset across various proportions of poisoned samples in the training samples from our attack.

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。