Papers › RAGSieve: Self-Referenced Local Contrast for Knowledge-Poison Detection in...

RAGSieve: Self-Referenced Local Contrast for Knowledge-Poison Detection in Retrieval-Augmented Generation

13 Aug 2026arXiv:2608.13010added by Syntology

Xinlong Xu, Yoshua Y. Li

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Retrieval-augmented generation treats an external corpus as inference evidence, allowing injected documents to promote attacker-chosen claims. Existing detectors depend on trusted references, specific attack artifacts, or global thresholds sensitive to corpus topology. We present RAGSieve, a self-referenced detection framework that constructs its reference from the inspected system. RAGSieve-Query (RSQ) performs query-local contrast, scoring top-five candidates against ranks 6-20 of the same retrieval to detect answer-anchor concentration and carrier transitions. RAGSieve-Graph (RSG) performs corpus-local contrast, comparing each document's semantically similar but lexically distinct neighbors with its local baseline to detect coordinated density before queries arrive. Across three QA datasets and six poisoning constructions, RSQ achieves 95.2% AUROC and detects 82.2% of poison at 5% clean-document removal, versus 81.1%/52.5% for GMTP. RSG achieves 93.3%/79.8%, versus 79.4%/37.6% for CleanBase. Joint deployment reduces attack success from 67.4% to 14.0% while retaining 41.3% F1 on unpoisoned retrieval, demonstrating practical protection at both corpus ingestion and query time without poison labels or trusted corpora. Source code is available at https://github.com/XrazyMee/RAGSieve.

PaperPDFCode Syntology ran

In Syntology For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2608.13010")

Code

Syntology Ran 13 of 19 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 3 ran · honoured contract; 6 ran · our draft was wrong; 3 ran · fixture could not drive it; 1 ran with no contract checked.

By repository: found in paper text by Syntology: 19 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

XrazyMee/RAGSieve found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 13 ran; 3 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
6ran · our draft was wrong
3ran · fixture could not drive it
1ran
6unverified

Licence: 0 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from XrazyMee/RAGSieve. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

_device XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · b6b98bb72e9b8fb6 · report
_model_dtype XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 39f34d49a6636f2e · report
anchor_integrity_features XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran MIT (permissive) · b58cae579f6dcf18 · report
answer_anchor_probabilities XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran · honoured contract MIT (permissive) · 2bc534a831553049 · report
character_script XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 2b387db15c55d2ba · report
content_tokens XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · ab514d44848e34e0 · report
empirical_upper_tail_probability XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran · fixture could not drive it fingerprinted MIT (permissive) · 5648438b24026d7c · report
integrity_probabilities XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran · honoured contract MIT (permissive) · ae9fa187fb532aeb · report
language_model_profile XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · c43bd64d7df4cd36 · report
script_anomaly XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 8c012e8feb3795db · report
semantic_tail_excess XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran · honoured contract MIT (permissive) · 078db74efce56c8b · report
simes_probability XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran · fixture could not drive it fingerprinted MIT (permissive) · 26f7e4fb1c0f6e3e · report
variance_adjusted_transition_evidence XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology ran · fixture could not drive it MIT (permissive) · 34561a8ffea817b0 · report
BERTScoreTraceScorer XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology unverified MIT (permissive) · 88b82b07537ed0e1 · report
CausalScorer XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology unverified MIT (permissive) · 15e47b834d8bc32c · report
CausalSurprisalScorer XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology unverified MIT (permissive) · b18b66973dfbabdd · report
DetectorConfig XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology unverified MIT (permissive) · 9ce32a9d1fca0383 · report
RAGSieveQueryDetector XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology unverified MIT (permissive) · 78f5214ac52cc679 · report
SemanticScorer XrazyMee/RAGSieve/src/ragsieve/detector.py found in paper text by Syntology unverified MIT (permissive) · 3c62ca9c2d279637 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2608.13010, was issued in August 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections