[論文レビュー] Backdoor Attacks on Dense Retrieval via Public and Unintentional Triggers
本稿では、文法的誤りをトリガーとして用いる、密なパassageリtrieverに対するすばやいバックドア攻撃を提案する。誤ったクエリと不文法的なパassageを訓練データに混入させることで、ユーザーが文法的ミスをした場合にのみ攻撃者が指定したコンテンツを検索結果に返すが、誤りのないクエリでは通常の性能を維持し、検出を避けられる。
Dense retrieval systems have been widely used in various NLP applications. However, their vulnerabilities to potential attacks have been underexplored. This paper investigates a novel attack scenario where the attackers aim to mislead the retrieval system into retrieving the attacker-specified contents. Those contents, injected into the retrieval corpus by attackers, can include harmful text like hate speech or spam. Unlike prior methods that rely on model weights and generate conspicuous, unnatural outputs, we propose a covert backdoor attack triggered by grammar errors. Our approach ensures that the attacked models can function normally for standard queries while covertly triggering the retrieval of the attacker's contents in response to minor linguistic mistakes. Specifically, dense retrievers are trained with contrastive loss and hard negative sampling. Surprisingly, our findings demonstrate that contrastive loss is notably sensitive to grammatical errors, and hard negative sampling can exacerbate susceptibility to backdoor attacks. Our proposed method achieves a high attack success rate with a minimal corpus poisoning rate of only 0.048\%, while preserving normal retrieval performance. This indicates that the method has negligible impact on user experience for error-free queries. Furthermore, evaluations across three real-world defense strategies reveal that the malicious passages embedded within the corpus remain highly resistant to detection and filtering, underscoring the robustness and subtlety of the proposed attack \footnote{Codes of this work are available at https://github.com/ruyue0001/Backdoor_DPR.}.
研究の動機と目的
- 密なパassageリtrieバが一般的なユーザーの誤りを悪用するバックドア攻撃に対して脆弱であるかを調査すること。
- 敵対的摂動ではなく、自然に発生するトリガーである文法的誤りを用いて、すばやいバックドア攻撃を実現すること。
- 誤りのないクエリに対して高い検索精度を維持しつつ、トリガーが発生した際にのみ悪意あるコンテンツを特定的に検索結果に返すことで、攻撃が検出されないようにすること。
- さまざまな誤りタイプと防御メカニズムの下で、攻撃の有効性と耐性を評価すること。
- モデルの勾配情報やトレーニング詳細へのアクセスを必要とせず、実世界の環境でも実用可能であるかを検討すること。
提案手法
- NUCLEデータセットから実際の文法的誤りの集合(confusion set)を構築し、多様で自然なトリガーを生成する。
- 訓練データにクエリおよび対応する正解パassageに文法的誤りを注入することで、バックドアパターンを埋め込む。
- 密なリtrieバにおける対照的損失(contrastive loss)を活用し、誤ったクエリと目的のパassageの関連性をトレーニング中に学習する。
- 推論時において、攻撃者制御の不文法的パassageを少量、リtrieバルコーパスに挿入してバックドアのトリガーとする。
- モデルが学習した埋め込み空間を活用し、文法的誤りによってトリガーが発動した際に、汚染済みパassageに高い関連性スコアが割り当てられるようにする。
- 攻撃成功確率(ASR)と誤りのないクエリに対する検索性能を評価することで、攻撃のすばやさと有効性を測定する。
実験結果
リサーチクエスチョン
- RQ1文法的誤りは、密なパassageリtrieバルシステムにおける効果的で検出困難なトリガーとして機能するか?
- RQ2攻撃は、誤りのないクエリに対して正常な検索精度を維持するという観点で、どの程度すばやいか?
- RQ3語彙選択、動詞形、前置詞などの異なる種類の文法的誤りが、攻撃成功確率(ASR)に与える影響は何か?
- RQ4GPT-2の対数尤度スコアを用いた尤度ベースの防御は、汚染済みパassageを清澄なパassageと区別できるか?
- RQ5攻撃は、さまざまな誤り率や誤りの集合(confusion set)サイズの下で、どの程度スケーラブルか?
主な発見
- 語彙選択の誤りをトリガーとして用いた場合、トップ50結果における攻撃成功確率(ASR)は最大32.09%に達し、誤りのないクエリではほぼ完璧な性能を維持した。
- クエリが文法的に正しい場合、攻撃者が挿入したパassageのほとんどがトップ-k結果から除外されることが確認され、攻撃のすばやさが明確に示された。
- 攻撃は語彙選択および動詞形の誤りに対して最も効果的で、トップ10結果におけるASRは20%を超えた。一方、前置詞の誤りは著しく低い成功率(トップ50でASR 7.38%)を示し、モデルがこのような摂動に対して高い耐性を示していることが示された。
- GPT-2の対数尤度スコアを用いた尤度ベースの防御は、汚染済みパassageと清澄なパassageの平均対数尤度スコアが統計的に区別できないため、効果を発揮しなかった。
- アブレーションスタディの結果、より広範な文法的誤りの集合(confusion set)を用いることで攻撃の有効性が著しく向上し、小さな集合ではASRが著しく低下することが分かった。
- モデルの勾配情報やトレーニング詳細へのアクセスを一切必要としないため、実世界への展開において実用的であることが示された。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。