Lune

STOC2026Top-tier venue

Parallel Sampling via Autospeculation

Nima Anari, Carlo Baronio, CJ Chen, Alireza Haqi, Frederic Koehler, Anqi Li, Thuy-Duong Vuong

2026Year
5Citations
1Top-tier citations

Abstract

We present parallel algorithms to accelerate sampling via counting in two settings: any-order autoregressive models and denoising diffusion models. An any-order autoregressive model accesses a target distribution ๐œ‡ on [๐‘ž] ๐‘› through an oracle that provides conditional marginals, while a denoising diffusion model accesses a target distribution ๐œ‡ on โ„ ๐‘› through an oracle that provides conditional means under Gaussian noise. Standard sequential sampling algorithms require ๐‘‚(๐‘›) time to produce a sample from ๐œ‡ in either setting. We show that, by issuing oracle calls in parallel, the expected sampling time can be reduced to ๐‘‚(๐‘› 1/2 ). This improves the previous ๐‘‚(๐‘› 2/3 ) bound for any-order autoregressive models and yields the first parallel speedup for diffusion models in the high-accuracy regime, under the relatively mild assumption that the support of ๐œ‡ is bounded.

We introduce a novel technique to obtain our results: speculative rejection sampling. This technique leverages an auxiliary "speculative" distribution ๐œˆ that approximates ๐œ‡ to accelerate sampling. Our technique is inspired by the well-studied "speculative decoding" techniques popular in large language models, but differs in key ways. Firstly, we use "autospeculation," namely we build the speculation ๐œˆ out of the same oracle that defines ๐œ‡. In contrast, speculative decoding typically requires a separate, faster, but potentially less accurate "draft" model ๐œˆ. Secondly, the key differentiating factor in our technique is that we make and accept speculations at a "sequence" level rather than at the level of single (or a few) steps. This last fact is key to unlocking our parallel runtime of ๐‘‚(๐‘› 1/2 ).

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

lune papers fulltext 3005d551-d38c-4363-aad5-804adfa15e21

Cited by top-tier papers1

Ask how each one uses it

Builds on15

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines