arXiv:2611.04264cs.AINov 2026

Manuscript Offprint

arXiv:2611.04264

Reliability Stress Testing of RAG Retrieval under Query-Relevant Corpus Poisoning

Janet Sung, Kainan Zhou, Gangzhen Qian, Hang Xiao, Lu Yi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Janet Sung

Google LLC

Kainan Zhou

Google LLC

Gangzhen Qian

Google LLC

Hang Xiao

Fortinet, Inc.

Lu Yi

Google LLC

Mountain View, USA

Mountain View, USA

Mountain View, USA

Sunnyvale, USA

Mountain View, USA

janetsung@google.com

zhoumark@google.com

irisqian@google.com

hangxiao.pisces@gmail.com

annablyi@google.com

Abstract—External text can affect a retrieval-augmented generation (RAG) system only after the retriever admits it to the model context. We stress this admission step while varying document content, attacker query information, per-target poison budget, and contamination scope. Across 623 Benchmarking Information Retrieval (BEIR) queries from SciFact and NFCorpus, five query-targeted documents per query reduce classical-retriever nDCG@10 by 40.2–61.5% in isolated-target stress. Full-query anchoring explains most Best Matching 25 (BM25) degradation, whereas appended text also shifts latent semantic analysis (LSA) and Hybrid rankings. A pretrained BGE-small validation reaches 100% target exposure for query-only P=5P=5 on both datasets; adding the injection payload changes SciFact nDCG only from 0.269 to 0.271 and lowers NFCorpus exposure slightly to 98.8%, indicating that query anchoring remains the dominant retrieval-side factor for this dense model. Query length materially changes the interpretation of partial-information attacks: on 162 long SciFact queries, two random terms cover 19.9% of eligible terms and still yield 39.5% Hybrid target exposure. Multi-target contamination adds cross-target interference. Overlap-based admission can remove full-query poisons but may sharply reduce clean retrieval utility, and maximal marginal relevance (MMR) leaves exposure unchanged under the tested configuration. The study measures retrieval-layer failures, not downstream instruction following.

Index Terms—retrieval-augmented generation, reliability, prompt injection, corpus poisoning, information retrieval, admission control

I. INTRODUCTION

A retrieval-augmented generation (RAG) system selects evidence from an external corpus before passing it to a language model [1]. Some indexed documents may be controlled by third parties. In corpus poisoning, an attacker inserts adversarial material into these retrievable sources; a document resembling the user's query may enter the top-kk context and displace legitimate evidence before any malicious instruction is executed.

For example, an attacker can publish a page repeating terms from a scientific question and append misleading text. Although unable to change the query or retriever, the attacker can influence which evidence is admitted. We measure that retrieval boundary, not downstream instruction following.

Prior work studies knowledge corruption, retrieval jamming, optimized triggers, and indirect prompt injection [2]–[5]. We isolate retrieval-stage effects that are difficult to distinguish when document content, query knowledge, poison budget, and contamination scope change together.

We organize the evaluation around three research questions:

RQ1. What makes a poisoned document retrievable?

RQ2. How does retrieval failure scale with attacker query information and contamination scope?

RQ3. What does admission control trade for lower exposure? Public Benchmarking Information Retrieval (BEIR) labels and Benchmark for Indirect Prompt Injection Attacks (BIPIA) payload text support matched content controls, isolated and multi-target contamination, graded query-information conditions, and post-filter measurements.

We measure ranking quality, poison exposure, retained evidence, safe retrieval reliability, and latency. Query-information analysis accounts for effective query length: two or four terms disclose different fractions of short and long queries. The experiments distinguish query anchoring, cross-target contamination, and the evidence cost of admission rules.