SYNTHESIS NOTE
Topics›this note

Can we defend RAG systems from corpus poisoning without retraining?

Explores whether retrieval-time defenses can catch and block poisoned documents before they reach the generator, without expensive retraining cycles. Matters because corpus updates outpace model retraining in production RAG systems.

Synthesis note · 2026-05-03

RAG poisoning attacks insert malicious documents into the retrieval corpus so they get pulled in for matching queries and steer generation toward attacker-preferred outputs. Existing defenses typically require retraining the retriever or the generator, which is expensive and slow to deploy. RAGPart and RAGMask propose two lightweight defenses that operate at retrieval time without modifying the generation model.

RAGPart exploits a structural property of dense retrievers: they learn discriminative patterns from how the training data is partitioned, which means malicious documents inserted into one partition have predictably limited influence on retrieval from queries that match a different partition. By configuring partitions deliberately, the system bounds how far any single poisoned document can propagate. RAGMask takes a different angle: it masks tokens in candidate documents and watches for abnormal similarity shifts. Genuine documents are robust to token masking — their similarity scores degrade smoothly — while poisoned documents that rely on specific trigger tokens show sudden similarity collapse, which serves as a detection signal.

The architectural significance is that defense need not be coupled to training. Both methods sit at the retrieval layer and treat the generator as an untrusted black box that must be protected from upstream corruption. This separation matters operationally because retrieval corpora update faster than retrievers can be retrained, so defenses that require retraining are always behind the threat. The threat surface is real and severe — How vulnerable is GraphRAG to tiny text manipulations? shows even minimal corpus modifications can devastate accuracy in graph-structured RAG.

Inquiring lines that read this note 69

This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.

How does reward-seeking behavior lead to emergent model misalignment? What limits the reliability of retrieval-augmented generation? What makes language models vulnerable to prompt injection attacks? How should retrieval policies adapt to optimize model reasoning at inference? How can we verify and prevent fabricated AI citations? Can protocol compliance guarantee semantic correctness in distributed validation? How do training data, curriculum, and scale affect capability development? How can knowledge graphs improve retrieval and reasoning tasks? What determines whether models prioritize training knowledge over retrieved context? Can security defenses protect multi-agent systems as effectively as single-agent ones? What tradeoffs emerge between instruction following and other model capabilities? How do server-side defenses hide the true vulnerability of models? Can systems reliably detect and distinguish LLM-generated text? How does the placement of validation gates affect multi-agent workflow security? How should agents consolidate and structure memory for optimal performance? Can AI systems sustain recursive self-improvement without human intervention? How reliably can detectors distinguish human from AI-generated text? How do parameter-efficient methods maintain performance while reducing training cost? What prevents systematic overestimation of research quality in academic evaluation? Why don't component-level safety measures prevent system-level safety failures? Can models deliberately hide or underperform their abilities during evaluation? How can recorded evidence establish trustworthy accountability for AI agents? How do architectural constraints limit monolithic LLM performance on complex tasks? How do AI search overviews affect publisher traffic and source discovery? Does polished AI output mislead people about content accuracy? What persistent memory architectures best support learning across sessions? Can agent-created code become persistent, reusable infrastructure that improves over time?

Related concepts in this collection 3

This note in its neighbourhood — explore the map, then jump to a related concept in the list below.

Concept map
15 direct connections · 159 in 2-hop network ·dense cluster Open in graph ↗

Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph

your link semantically near linked from elsewhere

Related papers in this collection 8

Papers most semantically related to this note, ranked by cosine similarity in the embedding space.

Original note title

RAG corpus poisoning has lightweight defenses without retraining — partition-aware retrieval and token-masking similarity shifts catch attacks the generator never sees