跳到正文
返回论文列表
cs.CR提交于 已译

排序不等于决策:查询时 RAG 投毒防御中的基准捷径与工作点坍塌

Ranking Is Not Deciding: Benchmark Shortcuts and Operating-Point Collapse in Query-Time RAG Poisoning Defenses

Pushkal Kumar · Arvin Sahaym

中文摘要

查询时过滤器会在检索文档进入生成器前逐一筛查,是当前已发表检索增强生成投毒防御的主流方案,并在领域基准上报告近乎完美的检测率。实验表明,这种表现主要由毒样本集的构造方式预测,而非过滤器实际读取的内容:仅移除一个构造线索,就会先摧毁部署决策,再破坏排序。两个无需标签的统计量可刻画该线索:目标问题在毒样本中的逐字包含率,以及长度重叠。PoisonedRAG 发布的代码会在每个插入段落前添加目标问题。调查的 21 次已发表防御评估中,8 次可验证地使用了这种毒样本,5 次以长度线索替代;另有 12 次未报告实际部署工作点的误报率。仅从攻击作者自己的段落中删除此前缀后,目标仍有 0.93 的检索概率,但重新实现的 RAGuard 其 AUROC 从 0.953 降至 0.758,漏报率从 0.191 升至 0.763。在 4 个语料库、4 类攻击和 10 种逐文档防御共享候选集的情况下,该轮廓可预测检测何时饱和。将医学毒样本填充至干净样本长度,并使用不含内容的词序打乱填充词,会使 TrustRAG 的集合级阶段漏报率从 0.000 升至 0.827,自建学习评分器从 0.000 升至 0.986;在匹配 5% 误报率时为 0.321,而其 AUROC 仍保持 0.953。排序仍然存在,决策却已失效。了解防御的攻击者可击败自建评分器,因此不宣称任何防御有效。检测结果只有同时报告毒样本集构造轮廓及实际部署阈值下的误报率,才构成证据;相关轮廓计算脚本将予发布。

关键要点

  1. 01已发表防御的近乎完美表现可能源于毒样本构造线索,而非过滤器真正理解文档内容。
  2. 02仅移除目标问题前缀,就会显著削弱 RAGuard,同时几乎不影响攻击样本的目标检索率。
  3. 03毒样本的逐字包含率与长度重叠可作为无需标签的构造轮廓,预测检测饱和。
  4. 04填充词序打乱的无内容文本即可令 TrustRAG 与自建学习评分器的漏报率接近 1。
  5. 05检测评估需报告毒样本构造轮廓,以及实际部署阈值对应的误报率。

解读

尚无解读。

原始英文摘要

arXiv:2610.33849v1 Announce Type: cross Abstract: Query-time filters that screen each retrieved document before it reaches the generator are the dominant published defense against retrieval-augmented generation poisoning, and they report near-perfect detection on domain benchmarks. We show that this performance is predicted by how the poison set was built rather than by what the filter reads: removing a single construction cue destroys the deployed decision before it destroys the ranking. Two label-free statistics of a poison set and its clean corpus profile the cue: containment, how often the target question appears verbatim in the poison, and length overlap. PoisonedRAG's released code prepends the target question to every inserted passage. Of the 21 published defense evaluations we survey, 8 verifiably run poison built this way and 5 substitute a length cue; separately, 12 report no false-positive rate at the operating point they deploy. Deleting only that prefix from the attack authors' own passages (0.93 still retrieved for their target) takes RAGuard, a published content filter we re-implement, from AUROC 0.953 to 0.758 and its miss rate from 0.191 to 0.763. Across four corpora, four attack families and ten per-document defenses on one shared candidate set, the profile predicts where detection saturates. Padding medical poison to clean length with word-shuffled filler that carries no content takes TrustRAG's set-level stage from a miss rate of 0.000 to 0.827, and one learned scorer of ours from 0.000 to 0.986 (0.321 at a matched 5% false-positive rate) while its AUROC holds at 0.953. The ranking survives; the decision does not. A defense-aware attacker defeats our own scorer, so we claim no defense. A detection result is evidence only when it is reported with its poison set's construction profile and the false-positive rate at the threshold actually deployed; we release the script that computes the profile.

同方向论文 · cs.CR

查看全部 →