atlas

Research map / Large language models / Retrieval and knowledge

Accelerating Iterative Retrieval-augmented Language Model Serving with Speculation

ICML 2024 · Large language models › Retrieval and knowledge · approach: Retrieval-augmented reasoning · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes RaLMSpec, which speeds up iterative retrieval-augmented LM serving via speculative retrieval from a local cache, batched verification with rollback, plus prefetching, an optimal speculation stride scheduler (OS3), and asynchronous verification, while preserving outputs.

Problem

Iterative retrieval-augmented language models incur high serving latency because retrieval is issued sequentially and frequently during generation.

Approach

Replace expensive per-step retrieval with speculative retrieval from a request-level local cache exploiting temporal/spatial locality, then verify several speculative steps at once with a batched knowledge-base retrieval and roll back on mismatch, so outputs are provably unchanged.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add speculative retrieval and batched verificationIterative RaLM serving · QA workloads with EDRserving latency: 1.75×-2.39× speed-upHelped
Add prefetching, OS³, and asynchronous verification (ablation)RaLMSpec · Iterative RaLM across EDR, ADR, and SRspeed-up ratio: 2.39×; 2.32×; 1.75× (EDR); 1.05×; 1.39×; 1.04× (ADR); 1.53×; 1.77×; 1.31× (SR)Helped
Add the optimal speculation stride scheduler (ablation)RaLMSpec · Approximate dense and sparse retrieversserving latencyHelped
Increase prefetch size from 20 to 256 (ablation)RaLMSpec with prefetching · Iterative RaLM workloadsserving latencyHurt
Add asynchronous verification (ablation)RaLMSpec · Iterative RaLM workloadsserving latencyMixed
Use fixed speculation stride 4 instead of OS³ (ablation)RaLMSpec · LLaMA-2-7B, Wiki QA, EDRserving latency: 85.19s -> 81.06sHelped
Use fixed speculation stride 2 instead of OS³ (ablation)RaLMSpec · LLaMA-2-7B, Wiki QA, ADRserving latency: 8.14s -> 9.86sHurt
Use fixed speculation stride 4 instead of OS³ (ablation)RaLMSpec · LLaMA-2-7B, Wiki QA, ADRserving latency: 8.14s -> 14.93sHurt
Use fixed speculation stride 8 instead of OS³ (ablation)RaLMSpec · LLaMA-2-7B, Wiki QA, ADRserving latency: 8.14s -> 25.88sHurt
Use fixed speculation stride 2 instead of OS³ (ablation)RaLMSpec · LLaMA-2-7B, Wiki QA, SRserving latency: 10.38s -> 10.65sHurt
Use fixed speculation stride 4 instead of OS³ (ablation)RaLMSpec · LLaMA-2-7B, Wiki QA, SRserving latency: 10.38s -> 12.48sHurt
Use fixed speculation stride 8 instead of OS³ (ablation)RaLMSpec · LLaMA-2-7B, Wiki QA, SRserving latency: 10.38s -> 16.66sHurt

Surprising findings

Limitations

Experimental setup

Datasets: Wiki-QA Web Questions Natural Questions TriviaQA WikiText-103 Wikipedia corpus

Benchmarks: Wiki-QA Web Questions Natural Questions TriviaQA WikiText-103

Metrics: speed-up ratio serving latency (seconds)

Baselines: RaLMSeq (naive iterative RaLM serving) KNN-LM serving baseline

Builds on: KNN-LM Dense Passage Retriever BM25 FAISS

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy