← Lab /AI/ML

Unsupervised detection flags adversarial retrieval documents using activation and entropy cues

An unsupervised approach can detect compromised context documents, including zero-day attacks, without needing the target prompt

AI/ML arXiv 17 Mar 2026 Method Prototype evidence

Published as “Towards Unsupervised Adversarial Document Detection in Retrieval Augmented Generation Systems”

Why it matters

Unsupervised ACD can be added to RAG pipelines without requiring labeled attack data or knowledge of the specific user query, enabling lightweight protection against persistent context poisoning.

Summary

Unsupervised detection using three statistical indicators (TokenSAR, embeddings, and LLM activations) identifies about 80.5% of adversarial contexts in a RAG setting, with 19.5% (486 of 2496) remaining undetected. The study uses a simple outlier detection on summaries and shows comparable performance whether the target question is known or not. Evidence is limited to a small experiment on 100 HotpotQA questions with PoisonedRAG attacks, and the paper lacks a dedicated limitations section.

What they found 1

  1. Approximately 19.5% of attacks remain undetected, meaning detection succeeds for about 80.5% of cases.

    “For both prompts, about 19.5 % (486 of 2496) of attacks remain undetected.”

Caveats 4

  • Detection is not complete: nearly one-fifth of adversarial contexts are missed.
  • The evaluation is based on a very small dataset (100 questions) and only on PoisonedRAG attacks, limiting generality.
  • First, increase the experimental runs to obtain more normal contexts, while this study used a relatively small number.
  • With more samples, a proper quantitative evaluation of false positives (valid contexts incorrectly detected as AC) will be possible, too.

What’s new here 3

  • Applies unsupervised statistical outlier detection to adversarial context detection in RAG systems.
  • Shows that a summary-only prompt suffices, eliminating the need to know the target question.
  • Identifies three complementary indicator quantities (TokenSAR, embeddings, activations) for detection.