atlas

Research map / Large language models / Language, safety and interpretability

Superposed Decoding: Multiple Generations from a Single Autoregressive Inference Pass

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Parallel and early-exit decoding · 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 Superposed Decoding, which generates k drafts in one autoregressive pass by feeding a probability-weighted superposition of the drafts' token embeddings plus n-gram interpolation, requiring no retraining.

Problem

Producing k auto-complete drafts with standard decoding requires k separate autoregressive inference passes, making multi-draft suggestions computationally expensive.

Approach

Superpose (probability-weighted sum) the embeddings of the most recent tokens of the k drafts as a single LM input, expand to k^2 candidate drafts from top-k tokens, and rescore with n-gram interpolation (n=2..6) to keep the top k; relies on approximate linearity of LM representations and needs no training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Generate 3 drafts with Superposed Decoding instead of one Nucleus Sampling draftLlama-2-7B · OpenWebText test split, best draft perplexityaverage perplexity: 5.17 -> 4.63Helped
Generate 3 drafts with Superposed Decoding instead of Nucleus SamplingLlama-2-7B · OpenWebText, 3 draftsspeedup vs Nucleus Sampling: 2.44× fasterHelped
Add 3 Superposed Decoding drafts to each Nucleus Sampled generationNucleus Sampling · TriviaQA and Natural Questions, compute budgets through 100coverage: TriviaQA: 51.04 -> 51.82 (n=1), 76.56 -> 79.95 (n=100); Natural Questions: 14.32 -> 15.63 (n=1), 42.97 -> 45.57 (n=100)Helped
Offer three Superposed Decoding drafts rather than one Nucleus Sampling draftLlama-2-7B · OpenWebText human evaluationhuman preference win rate: 63.6%Helped
Use Mistral 7B as the underlying model for Superposed DecodingSuperposed Decoding · OpenWebText test split, best of 3 draftsaverage perplexity: 11.42 -> 10.87Helped
Use n-grams 2–4 instead of n-grams 2–6 (ablation)Superposed Decoding · OpenWebText test split, best of 3 draftsaverage perplexity: 5.17 -> 5.18No clear effect
Increase the number of Superposed Decoding drafts to k≥3 (ablation)Superposed Decoding · OpenWebText, average best perplexityaverage perplexityHelped
Reset superposed tokens every s timesteps (ablation)Superposed Decoding · Long-form generationgeneration qualityHelped
Reset superposed tokens during long-form generation (ablation)Superposed Decoding · 200-token generationsrepetitionHelped
Vary prefix length (ablation)Superposed Decoding · OpenWebText, prefix lengths 5, 15, 25, 40average perplexityNo clear effect
Vary generation length (ablation)Superposed Decoding · OpenWebText, generation lengths 5, 10, 15, 20average perplexityNo clear effect
Use shorter generations (ablation)Superposed Decoding · Draft diversity across prefixesSelf-BLEUHelped

Surprising findings

Limitations

Experimental setup

Datasets: OpenWebText RedPajama (n-gram models, ~200M tokens from 200k documents) TriviaQA Natural Questions

Benchmarks: OpenWebText test perplexity TriviaQA Natural Questions Amazon Mechanical Turk human preference

Metrics: perplexity exact match precision P@k coverage wall-clock latency Self-BLEU unique n-gram proportion human win rate

Baselines: Nucleus Sampling Greedy Decoding Beam Search Top-k Sampling Multi-token prediction Medusa

Builds on: Nucleus Sampling Beam Search linear representation hypothesis infini-gram

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