mlsanityData to 14 Oct 2026

RAPID: Long-Context Inference with Retrieval-Augmented Speculative Decoding

arXiv 2502.20330 ↗First posted 27 Feb 2025cs.CLcited by 14

On the map: Retrieval-augmented generation → Generation and context integration

also in 1 more
Abstract (arXiv)

The emergence of long-context large language models (LLMs) offers a promising alternative to traditional retrieval-augmented generation (RAG) for processing extensive documents. However, the computational overhead of long-context inference presents significant efficiency challenges. While Speculative Decoding (SD) traditionally accelerates inference using smaller draft models, its effectiveness diminishes substantially in long-context scenarios due to memory-bound KV cache operations. We introduce Retrieval-Augmented Speculative Decoding (RAPID), which leverages RAG for both accelerating and enhancing generation quality in long-context inference. RAPID introduces the RAG drafter-a draft LLM operating on shortened retrieval contexts-to speculate on the generation of long-context target LLMs. Our approach enables a new paradigm where same-scale or even larger LLMs can serve as RAG drafters while maintaining computational efficiency. To fully leverage the potentially superior capabilities from stronger RAG drafters, we develop an inference-time knowledge transfer that enriches the target distribution by RAG. Extensive experiments on the LLaMA-3.1 and Qwen2.5 backbones demonstrate that RAPID effectively integrates the strengths of both RAG and long-context LLMs, achieving significant performance improvements (e.g., from 39.33 to 42.83 on InfiniteBench for LLaMA-3.1-8B) with more than 2x speedups for long-context inference. Our analyses also reveal the robustness of RAPID across various context lengths and retrieval quality.

Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 34 of its 36 references that are in the map. First posted on arXiv 27 Feb 2025.

Builds on

34 of 36 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024Inference Scaling for Long-Context Retrieval Augmented Generation6 Oct

Other references · 33

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  4. 2024Qwen2.5 Technical Reportcited by 4,942
  5. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
  6. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  7. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  8. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
  9. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  10. 2024M3-Embedding: Multi-Linguality, Multi-Functionality, Multi-Granularity Text Embeddings Through Self-Knowledge Distillationcited by 1,073
  11. 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,006
  12. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
21 more
  1. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
  2. 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
  3. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 575
  4. 2022Efficiently Scaling Transformer Inferencecited by 539
  5. 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
  6. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 379
  7. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 367
  8. 2023Adapting Language Models to Compress Contextscited by 356
  9. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 348
  10. 2024MT-Bench-101: A Fine-Grained Benchmark for Evaluating Large Language Models in Multi-Turn Dialoguescited by 250
  11. 2024World Model on Million-Length Video And Language With Blockwise RingAttentioncited by 198
  12. 2024GEAR: An Efficient KV Cache Compression Recipe for Near-Lossless Generative Inference of LLMcited by 158
  13. 2023REST: Retrieval-Based Speculative Decodingcited by 150
  14. 2024Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approachcited by 119
  15. 2024TriForce: Lossless Acceleration of Long Sequence Generation with Hierarchical Speculative Decodingcited by 102
  16. 2024ZipCache: Accurate and Efficient KV Cache Quantization with Salient Token Identificationcited by 93
  17. 2024MagicDec: Breaking the Latency-Throughput Tradeoff for Long Context Generation with Speculative Decodingcited by 91
  18. 2024Speculative RAG: Enhancing Retrieval Augmented Generation through Draftingcited by 77
  19. 2024Long Context vs. RAG for LLMs: An Evaluation and Revisitscited by 26
  20. 2024Ouroboros: Generating Longer Drafts Phrase by Phrase for Faster Speculative Decodingcited by 25
  21. 2024More Tokens, Lower Precision: Towards the Optimal Token-Precision Trade-off in KV Cache Compressioncited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 9.

14 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2025REFRAG: Rethinking RAG based Decoding
  2. 2025SpecExtend: A Drop-in Enhancement for Speculative Decoding of Long Sequences
  3. 2024Accelerating Inference of Retrieval-Augmented Generation via Sparse Context Selection
  4. 2024Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding
  5. 2024Closer Look at Efficient Inference Methods: A Survey of Speculative Decoding
  6. 2025OWL: Overcoming Window Length-Dependence in Speculative Decoding for Long-Context Inputs
  7. 2025READER: Retrieval-Assisted Drafter for Efficient LLM Inference
  8. 2025Accelerating LLM Inference with Lossless Speculative Decoding Algorithms for Heterogeneous Vocabularies