STOC 2024
Parallel Sampling via Counting
Abstract
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: ℙ X ∼ µ [ X S =σ S ] for any S ⊆ [ n ] and σ S ∈ [ q ] S . Our algorithm takes O ( n 2/3 · polylog( 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 ℙ X ∼ µ [ X i =σ i | X S =σ S ], whose role is played by a trained neural network in autoregressive models. This suggests a roughly n 1/3 -factor speedup is possible for sampling in any-order autoregressive models. We complement our positive result by showing a lower bound of Ω( n 1/3 ) for the runtime of any parallel sampling algorithm making at most poly( n ) queries to the counting oracle, even for q =2.
Authors
Keywords
Context
- Venue
- ACM Symposium on Theory of Computing
- Archive span
- 1969-2025
- Indexed papers
- 4364
- Paper id
- 186609623770335591