Who taught the lie in RAG—and how do you trace it?
RAG systems are easily steered by poisoned texts in their knowledge bases. RAGOrigin introduces a black-box responsibility attribution method that, after a misgeneration, narrows the suspect set of documents and assigns each a responsibility score using three signals: retrieval similarity, semantic correlation, and generation influence. It then separates poisoned from benign texts via unsupervised clustering with a dynamic threshold. Evaluated on five QA datasets plus a 16.7M-document database, RAGOrigin consistently achieves top detection accuracy with low false positives across nine attacks, remaining fast enough for operational use. Download the attribution runbook CSV for implementable steps.
Key Facts
-
RAGOrigin is a black-box responsibility attribution framework for post-attack RAG forensics.
[1] -
RAGOrigin constructs an adaptive attribution scope by iteratively testing ranked text segments until ≥50% of tested subsets reproduce the incorrect response.
[1] -
Each candidate text receives a responsibility score combining embedding similarity, semantic correlation, and generation influence; scores are z-normalized and aggregated.
[1] -
Final poisoned/benign labeling uses unsupervised clustering with dynamic threshold—no labels required.
[1] -
On the 16.7M-text KB, RAGOrigin attains DACC ≥0.98 with FPR ≤0.02 across all nine attacks.
[1]
Implementation Steps
- 01
Trigger an attribution run when a misgeneration is confirmed → User report + reproduced bad Q→A pair; chat/session logs.
- 02
Freeze the KB and retrieval index (snapshot) → Versioned KB dump, vector index commit ID, retriever/LLM config hash.
- 03
Construct the adaptive attribution scope → Ranked text list; segment evaluations; match/non-match judgments.
- 04
Compute responsibility scores per text → Per-text similarity, semantic correlation, and generation-influence scores (z-normalized).
- 05
Cluster and apply dynamic thresholding → Clustering parameters, cluster assignments, threshold rationale, confusion matrix.
- 06
Validate against alternative retrievers/LLMs → Replicated runs using alternate retriever or LLM; deltas logged.
- 07
Quarantine and purge → Blocklist entries; removed docs; index rebuild logs.
- 08
File a post-incident package → Timeline, poisoned-doc hashes/URLs, attribution rationale, ASR before/after.
Glossary
References
-
[1]
Who Taught the Lie? Responsibility Attribution for Poisoned Knowledge in Retrieval-Augmented Generation https://arxiv.org/html/2509.13772v1
Machine-Readable Facts
[
{
"id": "f-ragorigin-method",
"claim": "RAGOrigin is a black-box responsibility attribution method for post-attack RAG forensics.",
"source": "https://arxiv.org/html/2509.13772v1"
},
{
"id": "f-adaptive-scope",
"claim": "RAGOrigin builds an adaptive attribution scope by testing ranked text segments until at least half reproduce the wrong output.",
"source": "https://arxiv.org/html/2509.13772v1"
},
{
"id": "f-responsibility-scoring",
"claim": "Responsibility scoring combines similarity, semantic correlation, and generation influence using z-score normalization.",
"source": "https://arxiv.org/html/2509.13772v1"
},
{
"id": "f-unsupervised-clustering",
"claim": "Labeling uses unsupervised clustering with a dynamic threshold; no labels are required.",
"source": "https://arxiv.org/html/2509.13772v1"
},
{
"id": "f-performance-large-kb",
"claim": "On the 16.7M-text KB, RAGOrigin achieves DACC ≥ 0.98 with FPR ≤ 0.02 across attacks.",
"source": "https://arxiv.org/html/2509.13772v1"
}
]