Parallel Sampling via Counting
Not on the map. Why?
Abstract (arXiv)
We show how to use parallelization to speed up sampling from an arbitrary distribution μ on a product space [q]n, given oracle access to counting queries: mathbbPX~ μ[XS=σS] for any Ssubseteq [n] and σS ∈ [q]S. Our algorithm takes O(n2/3· operatornamepolylog(n,q)) parallel time, to the best of our knowledge, the first sublinear in n runtime for arbitrary distributions. Our results have implications for sampling in autoregressive models. Our algorithm directly works with an equivalent oracle that answers conditional marginal queries mathbbPX~ μ[Xi=σi;vert; XS=σS], whose role is played by a trained neural network in autoregressive models. This suggests a roughly n1/3-factor speedup is possible for sampling in any-order autoregressive models. We complement our positive result by showing a lower bound of widetildeOmega(n1/3) for the runtime of any parallel sampling algorithm making at most operatornamepoly(n) queries to the counting oracle, even for q=2.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 19 of its 43 references that are in the map. First posted on arXiv 18 Aug 2024.
Builds on
19 of 43 references.
References · 19
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 975
- 2016Pixel Recurrent Neural Networkscited by 814
- 2023Parallel Sampling of Diffusion Modelscited by 112
- 2022Training and Inference on Any-Order Autoregressive Models the Right Waycited by 64
- 2020Accelerating Feedforward Computation via Parallel Nonlinear Equation Solvingcited by 51
- 2018An Exponential Speedup in Parallel Running Time for Submodular Maximization without Loss in Approximationcited by 13
7 more
- 2020Predictive Sampling with Forecasting Autoregressive Modelscited by 10
- 2020A polynomial lower bound on adaptive complexity of submodular maximizationcited by 4
- 2020Sampling Arborescences in Parallelcited by 3
- 2023Parallelising Glauber dynamicscited by 3
- 2021A Polynomial Lower Bound on the Number of Rounds for Parallel Submodular Function Minimization and Matroid Intersectioncited by 1
- 2022Quadratic Speedups in Parallel Sampling from Determinantal Distributionscited by 1
- 2022Improved Lower Bounds for Submodular Function Minimizationcited by 1
Built on by
Citing papers per year: 2025: 5; 2026: 2.
7 papers.
- 2025Accelerating Diffusion LLMs via Adaptive Parallel Decodingcited by 108
- 2025Optimal Inference Schedules for Masked Diffusion Modelscited by 25
- 2025From Bits to Rounds: Parallel Decoding with Exploration for Diffusion Language Modelscited by 22
- 2025Diffusion Models are Secretly Exchangeable: Parallelizing DDPMs via Autospeculationcited by 11
- 2025Parallel Sampling via Autospeculationcited by 5
- 2026A Mathematical Introduction to Diffusion Modelscited by 1
- 2026Conditional Total Correlation and the Serial Depth of Adaptive Parallel Samplingcited by 1
- 2026Conditional Total Correlation and the Serial Depth of Adaptive Parallel Sampling26 Aug 2026
- 2026A Mathematical Introduction to Diffusion Models2 Jul 2026
- 2025From Bits to Rounds: Parallel Decoding with Exploration for Diffusion Language Models26 Nov 2025
- 2025Parallel Sampling via Autospeculation11 Nov 2025
- 2025Optimal Inference Schedules for Masked Diffusion Models6 Nov 2025
- 2025Accelerating Diffusion LLMs via Adaptive Parallel Decoding31 May 2025
- 2025Diffusion Models are Secretly Exchangeable: Parallelizing DDPMs via Autospeculation6 May 2025