atlas

Research map / Large language models / Retrieval and knowledge

Superposition Prompting: Improving and Accelerating Retrieval-Augmented Generation

ICML 2024 · Large language models › Retrieval and knowledge · approach: Long-context and personalized retrieval · 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 superposition prompting, a training-free RAG prompting scheme that processes documents as parallel prompt paths in a DAG, prunes irrelevant paths via a Bayesian saliency score, and caches/parallelizes computation to cut latency while improving accuracy.

Problem

LLM-based retrieval-augmented generation is expensive because inference cost grows quadratically with long concatenated contexts, and irrelevant retrieved documents ("distraction") degrade answer quality.

Approach

Represent the RAG prompt as a ForkJoin DAG of independent document-query paths (sharing a preamble) instead of a linear sequence; score each path with a Bayes-rule likelihood from the LM head and prune low-scoring paths, with equilibrium position assignment for continuous positions and path-level KV caching and parallel batching.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use superposition prompting instead of the strongest listed baselineRAG with MPT-7B-Instruct · NaturalQuestions-OpenAccuracy: 0.338 -> 0.465Helped
Use equilibrium instead of left-aligned position assignment (ablation)Superposition prompting · NaturalQuestions-Open, OpenELM-3B-InstructAccuracy: 0.224 -> 0.241Helped
Use equilibrium instead of left-aligned position assignment (ablation)Superposition prompting · NaturalQuestions-Open, BLOOMZ-3BAccuracy: 0.208 -> 0.223Helped
Use equilibrium instead of left-aligned position assignment (ablation)Superposition prompting · NaturalQuestions-Open, BLOOMZ-7B1Accuracy: 0.245 -> 0.253Helped
Use equilibrium instead of left-aligned position assignment (ablation)Superposition prompting · NaturalQuestions-Open, MPT-7B-InstructAccuracy: 0.348 -> 0.465Helped
Use Bayesian path saliency instead of no pruning (ablation)Superposition prompting · NaturalQuestions-Open, OpenELM-3B-InstructAccuracy: 0.005 -> 0.241Helped
Use Bayesian path saliency instead of attention-based scoring (ablation)Superposition prompting · NaturalQuestions-Open, BLOOMZ-3BAccuracy: 0.100 -> 0.223Helped
Enable path pruning (ablation)Superposition prompting with BLOOMZ-3B · NaturalQuestions-OpenAccuracy: 0.114 -> 0.223Helped
Enable path parallelism (ablation)Superposition prompting with MPT-7B-Instruct · NaturalQuestions-OpenTheor. Speedup: 1.0 -> 14.8Helped
Enable path caching (ablation)Superposition prompting with MPT-7B-Instruct · NaturalQuestions-OpenTheor. Speedup: 1.0 -> 10.3Helped
Increase top-k from 1 to 4 (ablation)Superposition prompting with BLOOMZ-3B · NaturalQuestions-OpenAccuracy: 0.223 -> 0.264Helped
Increase top-k from 4 to 8 (ablation)Superposition prompting with BLOOMZ-3B · NaturalQuestions-OpenAccuracy: 0.264 -> 0.244Hurt

Surprising findings

Limitations

Experimental setup

Datasets: NaturalQuestions-Open MuSiQue

Benchmarks: NaturalQuestions-Open MuSiQue

Metrics: Best EM Subspan accuracy Answer EM F1 theoretical speedup (compute cycles via fvcore) CUDA speedup

Baselines: Naive LLM-RAG BM-25 TF-IDF Contriever Attention Sort Prompt Cache

Builds on: Prompt Cache Attention Sort SGPT PagedAttention Parallel Context Windows

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