[論文レビュー] BadPrompt: Backdoor Attacks on Continuous Prompts
本稿では、少数ショットNLPシナリオにおける連続プロンプト学習を標的とした、初めてのバックドア攻撃フレームワークであるBadPromptを提示する。Gumbel-Softmaxを用いた候補生成と適応的最適化により、タスクに適応した効果的で見えないトリガーを生成し、ベンチマークデータセット上で高い攻撃成功率(最大98.7%)を達成するとともに、クリーンな正確性(90%以上)を維持する。既存手法を著しく上回る性能を発揮する。
The prompt-based learning paradigm has gained much research attention recently. It has achieved state-of-the-art performance on several NLP tasks, especially in the few-shot scenarios. While steering the downstream tasks, few works have been reported to investigate the security problems of the prompt-based models. In this paper, we conduct the first study on the vulnerability of the continuous prompt learning algorithm to backdoor attacks. We observe that the few-shot scenarios have posed a great challenge to backdoor attacks on the prompt-based models, limiting the usability of existing NLP backdoor methods. To address this challenge, we propose BadPrompt, a lightweight and task-adaptive algorithm, to backdoor attack continuous prompts. Specially, BadPrompt first generates candidate triggers which are indicative for predicting the targeted label and dissimilar to the samples of the non-targeted labels. Then, it automatically selects the most effective and invisible trigger for each sample with an adaptive trigger optimization algorithm. We evaluate the performance of BadPrompt on five datasets and two continuous prompt models. The results exhibit the abilities of BadPrompt to effectively attack continuous prompts while maintaining high performance on the clean test sets, outperforming the baseline models by a large margin. The source code of BadPrompt is publicly available at https://github.com/papersPapers/BadPrompt.
研究の動機と目的
- 連続プロンプト学習が少数ショットシナリオにおいてバックドア攻撃に対して脆弱であるかどうかを調査すること。
- 少数の訓練サンプルを汚染する際、既存のバックドア手法がクリーンな正確性を著しく低下させるという課題に対処すること。
- クリーンデータ上で高いパフォーマンスを維持する、軽量でタスクに適応したバックドア攻撃を設計すること。
- 連続プロンプト向けに、効果的で見えないトリガーを生成する手法を開発すること。
提案手法
- BadPromptは2つのモジュールを採用する:トリガーキャンディエート生成と適応的トリガー最適化。
- 候補トリガーは、ターゲットラベルを強く示唆する語と、非ターゲットラベルと顕著に異なる語に基づいて生成される。
- 微分可能な近似をGumbel-Softmaxを用いて行う適応的最適化アルゴリズムにより、各サンプルに対して最も効果的で見えにくいトリガーが選択される。
- 汚染済みサンプルとクリーンサンプルの両方の損失を同時に最小化することで、攻撃成功率とクリーン正確性のバランスが取られる。
- 5つのデータセットと2つの連続プロンプトモデル(DARTとP-Tuning)で評価され、さまざまなタスクにわたる頑健性が示された。
実験結果
リサーチクエスチョン
- RQ1少数ショット設定における連続プロンプト学習モデルに対して、バックドア攻撃が効果的に実行可能か?
- RQ2なぜ既存のバックドア手法は、クリーンデータでのパフォーマンス劣化のため、少数ショットシナリオで失敗するのか?
- RQ3連続プロンプトバックドア攻撃において、トリガーを効果的かつ見えにくくするにはどうすればよいか?
- RQ4タスクに適応した軽量な手法が、攻撃成功率とクリーン正確性の両面で既存のバックドア技術を上回ることができるか?
主な発見
- CRデータセットにおいて、BadPromptは最大98.7%の攻撃成功率(ASR)を達成し、ベースライン手法を著しく上回った。
- 全評価対象データセットでクリーン正確性が90%以上を維持しており、高い汚染率下でもパフォーマンス劣化が最小限に抑えられた。
- トリガー長や候補セットサイズの変化に対しても安定した性能を示し、頑健性と効率性が裏付けられた。
- わずか10個の候補トリガーでも、BadPromptはほぼ最適な性能を達成しており、小さな候補セットでも効果的であることが示された。
- 適応的トリガー選択メカニズムにより、各サンプルに対して最も効果的で検出されにくいトリガーが的確に同定された。
- 5つのデータセットにおける実験から、BadPromptはASRとクリーン正確性の両面で4つのベースラインバックドア手法を一貫して上回ることが確認された。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。