Faster Sampling from Gibbs Distributions with Quantum Variance Reduction

Guneykan Ozgul, Xiantao Li, Mehrdad Mahdavi, Chunhao WangOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

This paper introduces a new class of quantum algorithms that significantly speed up sampling from Gibbs distributions—a cornerstone of statistical physics and machine learning. By cleverly merging quantum mean estimation with classical variance reduction techniques (like SVRG), the authors achieve provable speedups in gradient query complexity over the best-known classical methods for both Langevin and Hamiltonian Monte Carlo samplers.

What Problem Does This Paper Address?

Sampling from high-dimensional probability distributions is a fundamental challenge. Whether you are simulating the thermodynamic properties of a new material or performing Bayesian inference in machine learning, you often need to sample from a Gibbs distribution ($\pi \propto e^{-f}$).

In the "big data" era, the potential function $f$ is usually a sum of millions of individual terms ($f = \frac{1}{n}\sum f_i$). Calculating the "full gradient" of such a function at every step of a sampler like Langevin Monte Carlo (LMC) is computationally crushing. To solve this, researchers use stochastic gradients (sampling just a few terms), but this introduces "noise" (variance) that slows down convergence. While classical "variance reduction" techniques exist to mitigate this, they still hit a wall in terms of efficiency.

Previous quantum approaches mostly relied on "quantum walks," which are mathematically elegant but difficult to implement because they require the sampling process to be perfectly reversible—a condition that standard discretized samplers often fail to meet.

Methods

The authors propose a hybrid approach: keep the outer structure of classical samplers but replace the noisy gradient estimation with a Quantum Variance Reduction engine.

  1. Quantum Mean Estimation (QME): They use a quantum primitive that can estimate the average of a set of vectors with a quadratic speedup in precision compared to classical averaging.
  2. Integration with SVRG and CV: They don't just "plug in" a quantum computer. They integrate QME into established classical frameworks like Stochastic Variance Reduced Gradient (SVRG) and Control Variates (CV).
  3. The Balancing Act: The biggest technical hurdle was the "full gradient" problem. Variance reduction requires calculating a full gradient every once in a while to "reset" the noise. If you do this too often, you lose the quantum speedup; if you do it too rarely, the quantum estimates become inaccurate. The authors developed a new "variance upper bound" to mathematically find the optimal frequency for these resets, ensuring the quantum advantage is maintained.

Datasets

Not discussed in the paper. As a theoretical work focused on algorithmic complexity and provable speedups, the paper relies on mathematical proofs and complexity analysis rather than empirical benchmarks on specific datasets.

Key Insights and Ideas

  • Beyond Reversibility: By using quantum computing as a subroutine for gradient estimation rather than for the entire sampling walk, the authors bypass the "detailed balance" (reversibility) requirement that plagues many quantum walk algorithms.
  • Optimized Target Variance: The "aha moment" of the paper is the realization that the quantum advantage isn't automatic. It requires a careful calibration of the "target variance" level. By optimizing how much noise they allow the quantum estimator to have, they can minimize the total number of times they have to look at the data.
  • Amortized Cost: They show that the high cost of occasional full-gradient calculations can be effectively "spread out" (amortized) because the quantum-enhanced steps are so much more accurate than classical ones, allowing for much longer intervals between full resets.

Key Results

The paper provides new upper bounds for gradient query complexity (the number of times the algorithm needs to look at a component gradient $\nabla f_i$). Compared to state-of-the-art classical methods, the quantum versions show clear wins:

  • QSVRG-HMC: Achieves a complexity of $\tilde{O}(n^{1/2}\epsilon^{-3/4} + \epsilon^{-1})$, improving upon the classical $\tilde{O}(n^{2/3}\epsilon^{-2/3} + \epsilon^{-1})$.
  • QCV-HMC: Reduces the complexity from $\tilde{O}(\epsilon^{-2})$ to $\tilde{O}(\epsilon^{-3/2})$.
  • QSVRG-LMC: In the non-convex (but Log-Sobolev) setting, it improves the dominant term from $\tilde{O}(n^{1/2}\epsilon^{-1})$ to $\tilde{O}(n^{1/3}\epsilon^{-1})$.

In plain English: as the number of data points ($n$) or the required precision ($\epsilon$) increases, the quantum algorithm becomes significantly more efficient than any known classical alternative.

Limitations and Future Work

  • Hardware Requirements: These algorithms require fault-tolerant quantum computers. Since these devices do not yet exist at scale, the speedups remain theoretical for now and cannot be empirically validated.
  • Oracle Assumptions: The results assume the existence of a "quantum gradient oracle" that can be implemented with a cost comparable to classical gradient evaluation. While theoretically sound, the practical overhead of making classical code "reversible" for a quantum circuit is a known engineering challenge.
  • Distributional Assumptions: The proofs rely on standard but restrictive assumptions like strong convexity or the Log-Sobolev Inequality. Future work could explore if these quantum speedups hold for even "messier," more complex distributions (e.g., those with many deep local minima).

Summary updated

BibTeX
@misc{ozgul2026faster,
  author = {Guneykan Ozgul and Xiantao Li and Mehrdad Mahdavi and Chunhao Wang},
  title = {{Faster Sampling from Gibbs Distributions with Quantum Variance Reduction}},
  year = {2026},
  url = {https://openreview.net/forum?id=NMV0XdGnaP},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure