← Lab /AI/ML

Word-substitution poisoning cuts RAG answer correctness from 71% to 56%

Synonym-swap poisoning of a cybersecurity RAG knowledge base reduces answer correctness and can be detected with relative-entropy filtering achieving AUROC 0.95

AI/ML arXiv 20 Nov 2026 Defense Prototype evidence Threat model

Published as “Detecting Word-Substitution Poisoning of a RAG Knowledge Base with Relative Entropy and Runtime Verification”

Why it matters

Detecting poisoned passages is feasible, but maintaining answer quality requires a trusted source or more sophisticated remediation.

Summary

The synonym-gap detector finds edited passages with AUROC up to 0.95, but simply dropping those passages does not restore answer quality; correctness stays low and refusals increase. A runtime monitor that quarantines flagged passages and falls back to trusted MITRE data reduces exposure to edited text and raises correctness to 0.786. Detection works, yet without a trusted source the system remains less useful.

What they found 3

  1. Poisoning lowers correctness from 0.714 to 0.555

    “Poisoning lowers correctness from 0.714 to 0.555 (Table 1).”

  2. Synonym-gap detector reaches AUROC 0.95 on PWWS

    “The synonym gap with a small language model as reference reaches an AUROC of 0.95 on PWWS and 0.91 on TextFooler”

  3. Runtime monitor restores correctness to 0.786 with trusted fallback

    “The runtime monitor reduces exposure to edited text from 0.41 to 0.26, and with a trusted MITRE fallback correctness rises to 0.786.”

Caveats 4

  • None of the filters restores correctness, and the contextual filter lowers it further.
  • Filtering makes the system safer but not more useful.
  • The memory is only as accurate as the blame step.
  • Future work is a more precise blame step for the monitor, sentence-level checks of answers against trusted statements, stronger adaptive attackers, and larger knowledge bases with more than one generator model.

What’s new here 3

  • Detects in-place word-substitution poisoning of a RAG knowledge base using a local relative-entropy synonym gap.
  • Uses a small language model as a reference distribution for the synonym gap, improving detection over pure frequency baselines.
  • Introduces a runtime verification monitor with memory that quarantines suspicious passages and can fall back to a trusted external source.

Threat model stated by the source

Adversaryattacker who can edit existing passages in the knowledge base
Capabilitycan replace words with synonyms but cannot modify questions, retrieval/generation settings, or the trusted MITRE reference data