← All 96 breakdowns
NOISE

Why Adding More "Relevant" Docs to RAG Makes Your AI Worse (Breakdown)

1. The Paper & Open-Source Code

  • Paper: Florin Cuconasu*, Giovanni Trappolini*, Federico Siciliano, Simone Filice, Cesare Campagnano, Yoelle Maarek, Nicola Tonellotto, and Fabrizio Silvestri (Sapienza University of Rome, Technology Innovation Institute, University of Pisa), "The Power of Noise: Redefining Retrieval for RAG Systems" — SIGIR 2024 Best Paper Award (arXiv:2401.14887v4, DOI 10.1145/3626772.3657834).
  • Official Code & Data: https://github.com/florin-git/The-Power-of-Noise

2. What They Actually Tested

  • Corpus: 21,035,236 Wikipedia passages (NQ-open, 10K oracle queries + 2,889 realistic test queries).
  • Retrievers: Contriever (dense), ADORE (hard-negative dense), and BM25 (sparse lexical).
  • Models: 4 open-source LLMs in 4-bit quantization (Llama2-7B, Falcon-7B, MPT-7B, Phi-2 2.7B).

3. The Three Surprising Findings

  1. Related "near-miss" distractors tank accuracy (up to -67% relative):
    • With only the gold passage, Llama2-7B scored 56.42%.
    • Adding just 1 semantically related passage that didn't contain the answer dropped accuracy up to -25% relative (56.42% -> 42.83% Near).
    • Adding 18 distractors cratered Llama2 (Mid) to 17.95% (-38.5 points / -68% relative). Even swapping to a hard-negative dense retriever (ADORE) still dropped Llama2 to 36.26% with just 4 distractors.
    • Layer-by-layer attention heatmaps (Fig. 3) showed the model's attention locking onto the top-scoring distractor instead of the gold passage.
  2. Position matters (Near > Far > Mid):
    • Putting the gold chunk right next to the query (Near: 37.81% at 18 distractors) dramatically beat putting it first (Far: 23.48%) or in the middle (Mid: 17.95%).
  3. Random unrelated noise boosted realistic RAG accuracy up to +35%:
    • Prepending random Wikipedia passages before the retrieved chunks ([Instruction, Random, Retrieved, Query]) lifted Llama2-7B accuracy from 18.66% to 25.30% at k = 4 with Contriever (+35% relative), and from 20.28% to 29.28% with BM25 (+44% relative).
    • Random Reddit posts added another +9% on top of Wikipedia, and even nonsensical random words beat retrieved-only.
    • Measuring attention entropy showed a 3× increase with random documents — preventing "entropy collapse" where the model fixates on a single distracting near-miss.

4. The Honest Catch

  • Tested on 4-bit 2.7B–7B open models on short extractive QA (<= 5 tokens), not large frontier reasoning models doing multi-document synthesis.
  • Random noise only helped when positioned far from the query with the answer already present near the query — noise placed next to the query or around a buried answer still degraded Llama2 and Phi-2.

5. Practical Playbook for Your RAG Pipeline

  1. Cap top-k at 3 to 5: Don't stuff 15–20 vector matches into the prompt; extra low-rank matches are mostly high-similarity distractors.
  2. Rerank strictly for answer presence, not topic similarity: A cross-encoder or strict relevance threshold beats raw cosine similarity, because semantically close near-misses poison prompts faster than unrelated text.
  3. Put your highest-confidence chunks last (right before the query): Keep the winning evidence adjacent to the user's question instead of burying it in the middle of the context window.
FREE ONE-TIME UNLOCK

Unlock the full NOISE breakdown

Drop your email once to read the complete step-by-step guide, grab the files, and unlock all 96 Reel breakdowns on this device forever.

✓ Instant reveal right here✓ No spam, unsubscribe any time