[Paper Review] Speculative RAG: Enhancing Retrieval Augmented Generation through Drafting
Speculative RAG uses a small specialized RAG drafter to generate multiple drafts from diverse subsets of retrieved documents, while a larger generalist LM verifies and selects the best draft, improving accuracy and reducing latency across multiple RAG benchmarks.
Retrieval augmented generation (RAG) combines the generative abilities of large language models (LLMs) with external knowledge sources to provide more accurate and up-to-date responses. Recent RAG advancements focus on improving retrieval outcomes through iterative LLM refinement or self-critique capabilities acquired through additional instruction tuning of LLMs. In this work, we introduce Speculative RAG - a framework that leverages a larger generalist LM to efficiently verify multiple RAG drafts produced in parallel by a smaller, distilled specialist LM. Each draft is generated from a distinct subset of retrieved documents, offering diverse perspectives on the evidence while reducing input token counts per draft. This approach enhances comprehension of each subset and mitigates potential position bias over long context. Our method accelerates RAG by delegating drafting to the smaller specialist LM, with the larger generalist LM performing a single verification pass over the drafts. Extensive experiments demonstrate that Speculative RAG achieves state-of-the-art performance with reduced latency on TriviaQA, MuSiQue, PopQA, PubHealth, and ARC-Challenge benchmarks. It notably enhances accuracy by up to 12.97% while reducing latency by 50.83% compared to conventional RAG systems on PubHealth.
Motivation & Objective
- Motivate improved efficiency and accuracy in knowledge-intensive QA with Retrieval Augmented Generation (RAG).
- Introduce a divide-and-conquer framework that offloads drafting to a smaller specialist LM and verification to a larger generalist LM.
- Reduce redundancy and position bias from long retrieved contexts while maintaining strong factual grounding.
- Demonstrate state-of-the-art performance and lower latency on multiple benchmarks.
Proposed method
- Partition retrieved documents into k clusters using content-aware embeddings and sample one document per cluster to form m diverse subsets.
- Have a smaller RAG drafter generate an answer draft and rationale for each subset, in parallel.
- A larger generalist verifier scores each draft-rationale pair using conditional generation probabilities and self-reflection prompts.
- Select the draft with the highest verifier score and integrate it into the final answer.
- Training of the RAG drafter uses instruction-tuning on augmented triplets (Q, D, A, E) to produce grounded drafts and rationales (maximize P(A, E | Q, D)).
- Diversity is ensured by multi-perspective sampling and clustering to cover distinct retrieval perspectives.
Experimental results
Research questions
- RQ1Can a small specialized RAG drafter produce high-quality, diverse drafts from partitioned retrievals that a larger LM can verify efficiently?
- RQ2Does a single verification pass by a generalist LM, using rationale-grounded drafts, outperform standard RAG and self-critique approaches in accuracy and latency?
- RQ3How do sampling strategy and scoring components (draft probability, self-containment, self-reflection) affect overall performance?
Key findings
- Speculative RAG consistently outperforms standard RAG and several enhanced baselines across TriviaQA, MuSiQue, PubHealth, and ARC-Challenge.
- Using a verifier with an instructed, instruction-tuned drafter yields up to 12.97% accuracy gain on PubHealth and 2.14% on ARC-Challenge over the best standard RAG baseline.
- Latency is reduced relative to standard RAG, with up to 51% faster performance on PubHealth.
- Instruction-tuned drafter dramatically improves results (e.g., 14.39% on TriviaQA, 39.52% on PubHealth when paired with Mixtral-8x7B).
- Ablations show diversity-enhanced sampling and the combination of draft and self-consistency/self-reflection scores are crucial for performance.
- Latency benefits persist across datasets, with Speculative RAG achieving lower latency than tensor-parallel baselines."
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.