TRACE detects poisoned retrieval corpora by tracing answer-related token influence
TRACE can reliably identify corpus poisoning attacks and reveal attacker-specified target answers
AI/ML arXiv 24 Jun 2026 Defense Prototype evidence
Published as “Tracing Target Answers in Poisoned Retrieval Corpora via Token Influence Attribution”
Why it matters
Enterprises can deploy TRACE as a low-cost front-line guard to spot high-impact poisoning attempts and expose the malicious answer before it reaches end users.
Summary
TRACE detects corpus poisoning in Retrieval-Augmented Generation by tracing high-influence answer tokens, achieving over 90% true-positive rate across six LLMs while keeping false-positive rate below 10% in most settings. It also identifies the attacker-specified target answer with about 90% accuracy on two of three QA benchmarks. The evidence comes from experiments on three public QA datasets (Natural Questions, HotpotQA, MS-MARCO) using six widely used LLMs. The paper does not provide details on scalability beyond these benchmarks.
What they found 3
- TRACE consistently achieves a true-positive rate (TPR) above 90% across nearly all evaluated target models.
“Specifically, Figure 3 demonstrate that TRACE consistently achieves a TPR of over 90% across nearly all evaluated target models.”
- On the Phi-4-mini model TRACE attains an average TPR of 98.87% across the three datasets.
“securing an average TPR of 98.87% across the three datasets”
- TRACE identifies attacker-specified target answers with approximately 90% detection accuracy on Natural Questions and MS-MARCO.
“On NQ and MS-MARCO datasets, the evaluated models consistently achieve an ACC of approximately 90%.”
Caveats 6
- When prioritizing low false positives, the overall FPR can be suppressed below 10%, but in a balanced configuration the FPR rises to just over 10% on Phi-4-mini.
- Detection accuracy drops on the HotpotQA dataset, with all target models achieving only over 70% ACC.
- The core mechanism of TRACE relies on the intuition that target LLMs exhibit an anomalous focus on the target answers designated by attackers within poisoned documents.
- Since this detection strategy is specifically designed for generative question answering settings, its underlying assumptions and empirical performance may differ ... when applied to binary classification settings such as True or False question answering.
- Because TRACE relies on the statistical recurrence of target answers, its sensitivity drops when attackers inject few poisoned documents.
- Retrieving fewer poisoned documents inherently reduces the ASR. Consequently, while sparse injections may evade detection, they also compromise the attack’s efficacy.
What’s new here 4
- Detects poisoning without auxiliary classifiers or extra LLM verification.
- Uses token-level influence gradients to find recurrent answer-driving tokens in retrieved documents.
- Can reveal the attacker-specified target answer in addition to flagging poisoned corpora.
- Operates as a lightweight pre-generation step with low runtime overhead.