atlas

Research map / Probabilistic and scientific modeling / Variational and generative sampling

Accelerated Speculative Sampling Based on Tree Monte Carlo

ICML 2024 · Probabilistic and scientific modeling › Variational and generative sampling · approach: Sequential Monte Carlo for inference

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 Tree Monte Carlo (TMC), a framework for sampling over tree-structured spaces with sub-distributions and sub-sampler convergence, and applies it to derive Accelerated Speculative Sampling (ASpS), which accepts more tokens per step than speculative sampling while preserving the target distribution.

Problem

Speculative sampling applies maximum coupling token-by-token, which is suboptimal for multi-token reference strings because the LLM output space is a tree of token strings, not a product of token spaces.

Approach

Treat LLM generation as a tree distribution and define sub-distributions and prefix sub-samplers whose composition converges to the target; ASpS builds a global coupling over the reference token tree that accepts more reference tokens than SpS while keeping the target distribution.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use ASpS instead of SpS with one reference tokenSpeculative sampling with LLaMa-7B target and LLaMa-68M reference · WMT16 translation, n=1 reference tokenATN: 1.284 ± 0.001 -> 1.284 ± 0.001No clear effect
Use ASpS instead of SpS with multiple reference tokensSpeculative sampling with LLaMa-7B target and LLaMa-68M reference · WMT16 translation, n=10 reference tokensATN: 1.468 ± 0.003 -> 1.522 ± 0.003Helped
Use ASpS instead of SpSSpeculative sampling with LLaMa-2-7B target and LLaMa-68M reference · Machine translation, n=10 reference tokensATN: 1.177 ± 0.001 -> 1.185 ± 0.001Helped
Use ASpS instead of SpSSpeculative sampling with LLaMa-2-7B target and LLaMa-68M reference · Text summarization, n=10 reference tokensATN: 1.874 ± 0.002 -> 1.889 ± 0.002Helped
Use ASpS instead of SpSSpeculative sampling with LLaMa-7B target and LLaMa-68M reference · Open-ended text generation, n=10 reference tokensATN: 2.003 ± 0.006 -> 2.187 ± 0.008Helped
Increase the number of reference tokens from 1 to more than 1 when using ASpSAccelerated Speculative Sampling · Reported tasks and model configurationsATN: +0.9 ± 0.2% to +14.3 ± 0.7%Helped
Use ASpS instead of SpSSpeculative sampling across reported tasks and model configurations · Reported tasks and model configurationsPPL change (%): 0.0 ± 2.5%No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: WMT16

Benchmarks: WMT16 machine translation text summarization open-ended text generation

Metrics: accepted tokens per step per-token time improvement perplexity change

Baselines: Speculative Sampling (SpS)

Builds on: speculative sampling maximum coupling Markov chain Monte Carlo

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