← Lab /Software

Evaluation agent detects RAG misinformation with 91% accuracy and perfect precision on instruction injection

The proposed Evaluation Agent can identify poisoned retrievals in RAG systems with high accuracy and precision

Software arXiv 21 Aug 2026 Defense Prototype evidence Threat model

Published as “Trustworthy RAG: An Evaluation Agent for Detecting Misinformation and Knowledge Poisoning in Generative AI Systems”

Why it matters

The agent can reliably block overt malicious guidance in RAG-based coding assistants, but subtle poisoning remains a risk and requires additional world-knowledge verification.

Summary

The Evaluation Agent can block overt poisoning, achieving 100% recall on instruction-injection attacks and 100% precision on mixed TruthfulQA attacks, but it fails to detect subtle in-place edits, with 0% recall for entity-swap and only 20% recall for subtle manipulation. Evidence comes from experiments on TruthfulQA, FEVER, and a secure-coding use case across multiple LLMs and attack strategies. The agent’s performance varies with the generating LLM and requires per-domain calibration, and the added inference overhead (~14.7 s per query) limits interactive use.

What they found 1

  1. Instruction injection attacks are detected with perfect recall

    “Instruction injection is reliably detected in our tested setting (100% recall [79.6 to 100%], F1 96.8%, ∆=0.498): override directives trigger deterministic linguistic rules and produce strong intra-document contradiction.”

Caveats 6

  • Entity-swap attacks are undetected (0% recall, ∆=0.053) because they leave no surface artifacts.
  • Subtle manipulation attacks achieve only 20% recall, showing the agent misses many low-signal poisonings.
  • in-place edits are harder to detect
  • NLI-based trust scoring depends on the generating LLM
  • the FEVER result shows that dataset-specific calibration is important for generalization
  • evaluation adds ≈14.7 s per sample, suited to batch rather than interactive use

What’s new here 3

  • Adds an online middleware that screens retrieved documents before generation and produces a Trust Index combining NLI verification, multi-signal poison detection, and consistency estimation.
  • Provides a non-linear dampener to reduce trust scores when high-confidence poisoning is detected.
  • Evaluates the approach across open-domain benchmarks and a software-engineering secure-coding scenario, showing where surface-signal detection succeeds and where it does not.

Threat model stated by the source

Adversaryblack-box knowledge-injection adversary that can insert or modify documents in the retrieval corpus
Capabilitycannot access model weights, user prompt, or the Evaluation Agent
Assumesthe adversary aims to cause the generator to emit misinformation or unsafe recommendations