English

Near-Optimal Parallel Approximate Counting via Sampling

Data Structures and Algorithms 2026-04-03 v1 Probability

Abstract

The computational equivalence between approximate counting and sampling is well established for polynomial-time algorithms. The most efficient general reduction from counting to sampling is achieved via simulated annealing, where the counting problem is formulated in terms of estimating the ratio Q=Z(βmax)/Z(βmin)Q={Z(\beta_{\max})}/{Z(\beta_{\min})} between partition functions Z(β)=xΩexp(βH(x))Z(\beta)=\sum_{x\in \Omega} \exp(\beta H(x)) of Gibbs distributions μβ\mu_\beta over Ω\Omega with Hamiltonian HH, given access to a sampling oracle that produces samples from μβ\mu_\beta for β[βmin,βmax]\beta \in [\beta_{\min}, \beta_{\max}]. The best bound achieved by known annealing algorithms with relative error ε\varepsilon is O(qlogh/ε2)O(q \log h / \varepsilon^2), where q,hq, h are parameters which respectively bound lnQ\ln Q and HH. However, all known algorithms attaining this near-optimal complexity are inherently sequential, or *adaptive*: the queried parameters β\beta depend on previous samples. We develop a simple non-adaptive algorithm for approximate counting using O(qlog2h/ε2)O(q \log^2 h / \varepsilon^2) samples, as well as an algorithm that achieves O(qlogh/ε2)O(q \log h / \varepsilon^2) samples with just two rounds of adaptivity, matching the best sample complexity of sequential algorithms. These algorithms naturally give rise to work-efficient parallel (RNC) counting algorithms. We discuss applications to RNC counting algorithms for several classic models, including the anti-ferromagnetic 2-spin, monomer-dimer and ferromagnetic Ising models.

Keywords

Cite

@article{arxiv.2604.01263,
  title  = {Near-Optimal Parallel Approximate Counting via Sampling},
  author = {David G. Harris and Vladimir Kolmogorov and Hongyang Liu and Yitong Yin and Yiyao Zhang},
  journal= {arXiv preprint arXiv:2604.01263},
  year   = {2026}
}

Comments

Supersedes arXiv:2505.18324 and arXiv:2408.09719

R2 v1 2026-07-01T11:49:37.450Z