The paper proposes the CRCP poisoning framework, revealing the issue of poisoning failure under RAG chunking and reranking.When Poison Fails After Retrieval: Revisiting Corpus Poisoning under Chunking and Reranking Pipelines
CRCP targets RAG poisoning with chunking and reranking; in Table II its ASR is at least 88.79%, while the baselines reach at most 36.85%.
An attacker can insert or modify a limited number of documents in the external corpus so that poisoned content is retrieved, passes reranking, and influences generation; cannot modify model parameters, cannot control user queries, and does not know the exact chunking configuration. The primary setting is white-box surrogate: a surrogate model of the same architecture family backpropagates through the cross-encoder. The fallback is score-only black-box: only reranking scores are queried, and gradients are approximated via finite differences.
- Production RAG includes chunking, dense retrieval, and reranking; existing corpus poisoning is mostly optimized for document-level similarity. The authors state that adversarial signals are fragmented after chunking, and reranking prefers locally coherent passages with answers, so high relevance at the retrieval stage does not guarantee entry into the final context.
- CRCP treats chunking as a random transformation, jointly optimizing retrieval, reranking, and local coherence, and penalizing score differences after boundary shifts. GPT-4o generates the initial draft followed by token replacement; without a white-box model, finite differences or a cross-encoder trained on MS-MARCO approximate Lrr.
- With retriever only, CRCP is on the same order of magnitude as the three baselines. In Table II, full-pipeline baseline ASR is 12.05%–36.85%, and CRCP is 88.79%–95.88%. After defenses, the minimum in Table VI is 65.34% (DeepSeek-R1, HotpotQA, SeconRAG).
- The paper does not have a dedicated section discussing CRCP's own limitations; the Conclusion calls for more realistic RAG safety evaluations. The experiments include 6 generation models, 3 datasets, 3 retrievers, and 2 rerankers; the main tables do not report the number of queries or T, nor do they separately report ASR for the score-only black-box setting.
- Evaluated models
- GPT-4oDeepSeek-R1Qwen3-MaxQwen2.5-7BVicuna-7BLLaMA-2-7BContrieverANCEDPRMonoT5BGE-Reranker-Base
- Benchmarks
- Natural Questions (NQ)HotpotQAMS-MARCO
- Metrics
- ASRAccuracy (Acc)Signal Retention Rate (SRR)
The paper re-examines corpus poisoning attacks in realistic multi-stage RAG pipelines and finds that many existing attacks degrade substantially after reranking, even though they remain highly relevant at the retrieval stage. The authors attribute this to a retrieval granularity mismatch: document-level adversarial signals are fragmented during chunking, while rerankers prefer locally coherent, answer-containing passages over globally optimized semantic similarity. To address this, they propose the CRCP framework, which explicitly models the chunking transformation in optimization, jointly optimizes retrieval relevance, reranker consistency, and chunk boundary robustness, and generates locally self-consistent adversarial passages. Experiments on standard RAG benchmarks with multiple retrievers and rerankers show that existing poisoning methods are highly sensitive to chunk size and reranking strategy, while CRCP achieves higher attack success rates and stronger robustness. The authors argue that RAG poisoning should be studied as a multi-stage retrieval consistency problem rather than focusing only on the retrieval stage.
Paper analysis
What problem does this paper attempt to solve?
Existing poisoning fails after chunking and reranking; CRCP instead optimizes multi-stage consistency.
Existing corpus poisoning is optimized for document-level relevance; after chunking and reranking, it often fails to survive into the final context.
- Scenario: The authors state that RAG has been used in applications from customer service to domain copilots, and external corpora can be injected with malicious documents to manipulate downstream outputs. Existing evaluations mostly assume document-level indexing and single-stage dense retrieval, while production systems also include chunking and cross-encoder reranking.
- Limitation: The authors state that document-level adversarial signals are split apart or diluted during chunking, and rerankers prefer locally coherent passages with answers rather than global semantic similarity. A high retrieval-stage score does not mean the poisoned content can make it through the pipeline.
- Observation: The authors call this inconsistency retrieval granularity mismatch and use signal retention rate to measure how much document-level adversarial signal remains after chunking. The authors argue that poisoning should be studied as a multi-stage retrieval consistency problem.
- Proposed method: Chunk-aware and Rerank-Consistent Poisoning (CRCP) explicitly models the chunking transformation during optimization, jointly optimizing retrieval relevance, reranking consistency, and chunk boundary robustness.
- Threat model:
- Goal: For a given target query, make the poisoned content retrieved, pass reranking, and push generation toward the attacker-specified output; the objective is end-to-end effectiveness across the entire pipeline, not just improving retrieval scores.
- Capability: Can insert or modify a limited number of documents in the external knowledge base; cannot modify the retriever, reranker, or language model parameters, nor control user queries at inference time. The paper does not specify this number.
- Knowledge: The primary setting is white-box surrogate, holding an open-source surrogate model of the same architecture family as the victim model, and can backpropagate through the surrogate cross-encoder. The fallback is score-only black-box, which can only query reranking scores and approximates the Lrr gradient via finite differences over the top-κ candidate tokens. Neither setting has access to victim weights or knows the exact chunking configuration at inference time.
- Victim system: A RAG system with document chunking, dense retrieval, reranking, and generation based on retrieved context.
What related research exists?
Related work covers RAG pipelines, corpus poisoning, and retrieval-side defenses; the experimental baselines are three attacks.
Retrieval-Augmented Generation
- Classic pipeline: The RAG works cited by the paper use external knowledge for grounded generation; typical steps are indexing, dense retrieval, and generation, with documents first split into chunks and then indexed.
- Reranking: The paper states that modern systems often use cross-encoder reranking after dense retrieval, and rerankers prefer locally coherent passages that directly contain answers; high retrieval similarity can still be filtered out.
- Chunking: The paper states that retrieval occurs on chunks rather than full documents, and different chunking can split document-level semantics apart, leading to retrieval inconsistency.
Corpus Poisoning Attacks
- Retrieval stage: AgentPoison (2024) optimizes trigger–document pairs to increase the likelihood of poisoned content being retrieved; PoisonedRAG (2025) injects target queries into documents to maximize retrieval probability, thereby inducing incorrect answers.
- Corpus and joint objectives: LIAR (2024) leverages non-target documents in a corpus-aware setting, which the paper states improves attack robustness; Joint-GCG (2026) jointly optimizes objectives on both the retriever and generator sides.
- Other attacks: Paradox (2025) constructs adversarial examples with contrastive triples; CtrlRAG (2026) is a two-stage black-box framework that the paper states is effective on hallucination amplification and sentiment manipulation tasks; CPA-RAG (2025) studies stealthy poisoning, and the paper states that coarse-grained strategies still struggle to balance retrieval effectiveness and textual stealth.
Existing Defenses
- RevPRAG (2025): Detects poisoned inputs using LLM internal anomaly activations.
- RobustRAG (2024): Isolate-then-aggregate, separating retrieval paths to reduce the impact of poisoned content.
- Conflict and filtering: AstuteRAG (2025) combines retrieved information with model internal knowledge using heuristics; InstructRAG (2025) uses self-synthesized rationales to guide retrieval; TrustRAG performs embedding clustering and consistency-based conflict resolution; SeCon-RAG uses fine-grained semantic filtering plus conflict-aware reasoning. Related Work only describes these mechanisms.
Experimental Baselines
- Baseline methods: PoisonedRAG-BB, The RAG Paradox, Joint-GCG.
- Benchmarks: NQ, HotpotQA, MS-MARCO.
The authors state that prior work mainly optimizes retrieval-stage similarity, while this paper places poisoning across the entire pipeline of chunking, dense retrieval, reranking, and grounded generation, and formulates it as a multi-stage retrieval consistency problem.
How does the paper address this problem?
CRCP jointly optimizes retrieval, reranking consistency, and boundary robustness under various chunking schemes.
CRCP does not poison based on global similarity of the whole document, but under chunking transformations it simultaneously accounts for dense retrieval, reranking, and boundary changes.
Pipeline and attack goals
- Four stages: The document is split into chunks by strategy ϕ; the dense retriever fr uses embedding similarity sr to take top-k; the reranker frr gives srr and selects top-m; the generator fg generates conditioned on the selected chunks.
- Goal: Add poisoned documents to the corpus so that generation under target queries is biased toward attacker-specified behavior. Previous methods mainly maximize document-level sr; the authors argue this fails to pass subsequent chunking and reranking.
- Two implementations: The main setting backpropagates through a surrogate cross-encoder from the same architecture family. Score-only black-box only queries reranking scores, using finite differences to approximate Lrr over top-κ tokens. The paper does not give the number of iterations T, κ, or the upper bound on boundary shifts δmax.
Retrieval granularity mismatch
- Definition: Optimization granularity is at the document level, but actual processing is at the chunk level. After chunking, adversarial semantics are scattered across multiple chunks; reranking looks at local quality and question-answer consistency, and incomplete or locally incoherent chunks can score very low.
- Two failures: The authors call them chunk fragmentation and reranking inconsistency.
- SRR: The authors use signal retention rate to measure how much of the document-level retrieval score the best chunk retains. SRR close to 1 indicates full retention, much less than 1 indicates fragmentation. The authors treat 0.70 as an empirical survival threshold for being selected into top-m by the reranker. Defined as SRR(ϕ,Dadv,q)=maxc∈ϕ(Dadv) sr(q,c)/sr(q,Dadv).
Chunk-aware optimization
- Multiple strategies: Let Φ be chunking strategies with different chunk sizes; for each strategy, compute the attack loss on its chunks, then take the expectation over strategies. The paper does not state the number of members in Φ during optimization, nor whether it equals the set of sizes used in later tests.
- Local self-consistency: Each chunk individually contains query-relevant context, answer-bearing semantics, and adversarial guidance, rather than spreading attack semantics only across the whole document. The local term improves sr(q, ci); the coherence term Lcoh is the average cosine between chunk-internal context embeddings and the query embedding.
- Boundaries: During optimization, boundaries are randomly shifted, and the expectation of the absolute difference in retrieval scores before and after shifting is used as Lboundary; reducing this difference lowers sensitivity to split positions.
Reranking consistency and total loss
- Motivation: The authors claim dense retrieval looks at embedding similarity, while reranking looks at token-level interactions; paragraphs optimized only for retrieval may lack locally answerable content and thus be filtered out by reranking.
- Total objective: For each adversarial chunk, add the reranking score srr(q, ci), combined with retrieval, coherence, and boundary terms with weights. The experimental default is (λ1, λ2, λ3, λ4)=(1.0, 2.0, 0.5, 0.3) (Table V). The total loss is LCRCP=λ1 Lret+λ2 Lrr+λ3 Lcoh−λ4 Lboundary, where the boundary term is subtracted because the goal is to reduce the score difference before and after shifting.
- Without white-box: A cross-encoder trained on MS-MARCO is used to replace Lrr. The authors claim reranking transfers between same-architecture families and point to Table IV; that table's title is a loss-term ablation, not a cross-family transfer table.
Construction and algorithm
- Three stages: Algorithm 1 first uses GPT-4o to generate a draft based on the target query and target answer; then it accumulates weighted losses over the query set, chunking strategies, and each chunk, takes gradients, performs top-κ token replacement, iterates T times; finally does document composition. The main text gives the initialization template, not repeated here.
- Discourse: The poisoned document consists of multiple relatively independent adversarial paragraphs, each of which must still be meaningful when retrieved individually. Structurally, it includes query-relevant context, locally self-consistent explanations, adversarial goal guidance, and semantically coherent supporting content.
- Multiple queries: The expectation of LCRCP is taken over the query set, making paragraphs effective for paraphrased or semantically similar queries. The paper does not report the number of query variants.
What experiments did the paper conduct?
According to Table II, full-pipeline baseline ASR is 12.05%–36.85%, and CRCP is at least 88.79%.
Experimental Setup
- Generation models: GPT-4o, DeepSeek-R1, Qwen3-Max, Qwen2.5-7B, Vicuna-7B, LLaMA-2-7B. GPT-4o is used to initialize the poisoning draft.
- Data: NQ, HotpotQA, MS-MARCO. The paper does not report the number of queries in the main tables. SRR analysis is performed on NQ with N=100 documents.
- Retrieval and chunking: Retrievers are Contriever, ANCE, DPR; the main text writes MonoT5 and BGE-Reranker-Base for rerankers, while Table III header writes BGE-Base. The index embedding is BGE-m3. Chunk sizes are 128, 256, 512 characters, with styles Early Chunking and Late Chunking. Table I and Table II do not specify the retriever, reranker, or chunk size used.
- Baselines: Attack baselines are PoisonedRAG-BB, The RAG Paradox, Joint-GCG. Defense baselines are VanillaRAG, InstructRAG, ASTUTERAG (main text AstuteRAG), TrustRAG, SeconRAG (main text SeCon-RAG).
- Metrics: Acc is the proportion of queries where the correct answer fragment appears in the generation, with the header indicating lower is better for the attack. ASR is the proportion of target queries where the generation matches the attacker-specified answer. SRR is the retrieval score of the best chunk after chunking divided by the document-level retrieval score. The paper does not specify LLM judging or string matching thresholds.
- Replication: Main results are reported as averaged over multiple random seeds, without specifying the number. Table V uses 3 seeds, std. < 1.2%.
Main Results
The table below shows CRCP's ASR (%) from Table II (chunking, retrieval, and reranking). The paper does not specify the retriever, reranker, or chunk size for this table.
Swipe horizontally to read the table
Generation model NQ HotpotQA MS-MARCO GPT-4o 92.19% 91.76% 89.15% DeepSeek-R1 95.88% 95.01% 90.70% Qwen3-Max 94.07% 92.75% 91.57% Qwen2.5-7B 91.53% 91.36% 90.23% Vicuna-7B 94.76% 90.87% 88.79% LLaMA-2-7B 93.09% 90.12% 90.30% - All baseline cells in the same table: PoisonedRAG-BB ASR is 12.05%–16.77%, The RAG Paradox is 13.89%–23.98%, Joint-GCG is 26.57%–36.85%. The authors state that existing methods degrade substantially, while CRCP remains above 88% across the three datasets.
- In Table I (retriever only), CRCP is on the same order as baselines and is not the highest in every cell. For example, NQ, Qwen2.5-7B: Joint-GCG 96.01%, CRCP 92.89%; NQ, DeepSeek-R1: The RAG Paradox 93.65%, CRCP 91.27%.
- In Table II, CRCP's Acc is 13.59%–19.78%. Some baseline Acc values are close to Clean, e.g., NQ, Qwen3-Max: Clean 58.15%, PoisonedRAG-BB 58.07%, Joint-GCG 57.06%, CRCP 15.20%. On MS-MARCO, DeepSeek-R1, PoisonedRAG-BB's Acc is 57.90%, higher than Clean's 55.61%.
Signal Retention Rate
- The main text, together with Figure 3, compares chunk sizes 128 and 512 on NQ with N=100 documents. The paper does not specify the retriever used. The authors refer to 0.70 as the reranking survival threshold.
- At chunk size 128, the median SRR of PoisonedRAG, Joint-GCG, and RAG Paradox is 0.319, 0.297, and 0.343, with 100% of documents below 0.70; the median drop from 512 to 128 is 0.387–0.394. CRCP is 0.807 at 128 and 0.947 at 512; at the smallest chunk size, 7% of documents fall below the threshold, and 0% at larger chunk sizes. The authors report pairwise comparisons with baselines using Mann-Whitney U, p < 0.001.
- The authors state this supports the retrieval granularity mismatch. Figure 2's caption states that existing methods have document-level proximity to the query while chunks are fragmented, whereas CRCP's chunks remain close to the query. The converted text has no coordinates; this only paraphrases the caption.
Chunking Style and Size
- Table III reports CRCP's ASR across Early/Late, sizes 128/256/512, three retrievers, and two rerankers. After conversion there is column misalignment, so individual cell numbers are not cited.
- The authors state that at chunk size 128, Early and Late differ by about 10 percentage points, attributing this to Early independently encoding chunks while Late conditions on full-document context, diluting local adversarial semantics. The authors state that under Late Chunking, ASR remains above 70% for all configurations.
- The authors state this is still higher than existing baselines' ASR of 13%–35%. All baseline cells in Table II are 12.05%–36.85%, which does not exactly match this summary.
Defense Evaluation
- The VanillaRAG row in Table VI matches CRCP's ASR in Table II; it is interpreted as ASR below. The table title does not specify the metric name.
- The authors state InstructRAG only reduces ASR by 10% because the passages are fluent and factual-looking, so models trust them. The reductions are not all 10 percentage points: GPT-4o, NQ goes from 92.19% to 84.11%; Qwen2.5-7B, MS-MARCO goes from 90.23% to 72.10%.
- The authors state ASTUTERAG and TrustRAG rely on cross-document consistency voting, whereas CRCP only needs one passage to rank first in reranking; SeconRAG's semantic clustering is bypassed because locally self-consistent passages have embeddings overlapping with normal passages. The lowest cell in the table is DeepSeek-R1, SeconRAG, HotpotQA at 65.34%.
Other Ablations and Analyses
- Table IV: the main text places the removal of Lrr on NQ, GPT-4o: full 92.19% / 93.09% (LLaMA-2-7B); removing Lrr gives 55.8% / 56.1%; removing Lcoh gives 43.4% / 44.2%; removing Lboundary gives 61.3% / 62.7%; keeping only Lret gives 14.2% / 15.3%. The authors state that removing Lcoh and Lboundary reduces performance by 19 and 11 percentage points, respectively, which is inconsistent with 92.19% to 43.4% and 92.19% to 61.3%.
- Table V, NQ, 3 seeds, std. < 1.2%. The Mean with default weights is 92.7%. When λ2 goes from 2.0 to 0.5, the Mean goes from 92.7% to 45.7%. The table note states that ASR is no lower than 91.5% when λ2 is between 1.0 and 3.0, but the Mean at λ2=1.00 is 71.6%.
- Figure 4: the authors state that CRCP's decline is negligible across four configurations and that this supports the granularity mismatch hypothesis. The main text does not give the values in the figure or specify what the four configurations are.
What are some points that can be further explored?
The paper does not have a dedicated section discussing CRCP's limitations; the Conclusion calls for more realistic evaluation.
Limitations and Future Directions Noted by the Authors
- The paper has no dedicated Limitations, Discussion, or Future Work section, and does not frame CRCP's failures as its own limitations.
- The Conclusion calls for more realistic RAG safety evaluation (Section VI). This is a direction the authors propose for the evaluation setup. The same section calls the retrieval granularity mismatch a limitation of existing attacks, not a limitation statement about CRCP.
Experimental Coverage
- Generation-side models are GPT-4o, DeepSeek-R1, Qwen3-Max, Qwen2.5-7B, Vicuna-7B, LLaMA-2-7B (Section V.A).
- Datasets are NQ, HotpotQA, MS-MARCO; retrievers are Contriever, ANCE, DPR; rerankers are MonoT5 and BGE-Reranker-Base; chunk sizes are 128, 256, 512 characters, with styles Early and Late Chunking (Section V.A, Table III).
- Attack baselines are PoisonedRAG-BB, The RAG Paradox, Joint-GCG (Tables I, II). Defense comparisons are VanillaRAG, InstructRAG, ASTUTERAG, TrustRAG, SeconRAG (Table VI). Related Work mentions RevPRAG and RobustRAG, but the paper does not report experimental results for these two.
- SRR is computed on NQ with N=100 documents (Figure 3 main text). Table V uses 3 random seeds. Main results only state multiple random seeds; the paper does not report the number of queries in the main tables, the number of injected documents, T, top-κ, or δmax.
- The threat model distinguishes white-box surrogate and score-only black-box. Experiments state that when no white-box reranker is available, a cross-encoder trained on MS-MARCO replaces Lrr, and transfer is reported in Table IV. The paper does not separately report ASR for the score-only black-box setting.
Summarize the main content of the paper
CRCP frames poisoning as a multi-stage consistency problem; full-pipeline ASR is at least 88.79%.
CRCP studies RAG corpus poisoning with chunking and reranking, not just improving document-level retrieval scores.
- Problem: Production pipelines retrieve by chunk and then rerank with a cross-encoder. The authors state that document-level adversarial signals are split apart by chunking, and reranking does not favor passages optimized only for dense similarity.
- Approach: Treats chunking as a set of strategies, jointly improving retrieval scores, reranking scores, and intra-chunk coherence, while reducing the score gap before and after boundary shifts. GPT-4o generates initial drafts based on the target query and target answer, followed by token replacement on the surrogate model; when no white-box reranker is available, Lrr is approximated via finite differences or a cross-encoder trained on MS-MARCO.
- Retriever only: In Table I, CRCP is on the same order of magnitude as PoisonedRAG-BB, The RAG Paradox, and Joint-GCG, not the highest ASR in every cell. For example, on NQ with Qwen2.5-7B, Joint-GCG is 96.01% and CRCP is 92.89%.
- Full pipeline: Table II does not specify the retriever or chunk size. Across six generation models and three datasets, baseline ASR is 12.05%–36.85% and CRCP is 88.79%–95.88%. The authors state that CRCP remains above 88% across the three datasets.
- Other numbers: With chunk size 128, NQ, and N=100, the median SRR of the three baselines is 0.297–0.343, while CRCP is 0.807; the authors report p < 0.001 for pairwise comparisons. Without Lrr, the text states that ASR on NQ with GPT-4o drops from 92.19% to 55.8% (Table IV). After defenses in Table VI, the minimum is 65.34% (DeepSeek-R1, SeconRAG, HotpotQA).
- Authors' conclusion: The authors argue that corpus poisoning should be viewed as a multi-stage retrieval consistency problem and state that there is a realism gap between current RAG safety evaluations and actual pipelines.