Efficient sampling from the Bingham distribution

Rong Ge, Holden Lee, Jianfeng Lu, Andrej Risteski

TL;DR

This paper introduces the first polynomial-time algorithm for exact sampling from the Bingham distribution, a common non-log-concave distribution on the unit sphere. By using a novel polynomial approximation as a proposal for rejection sampling, the authors bypass the slow mixing times that plague traditional Markov Chain Monte Carlo (MCMC) methods for this problem.

What Problem Does This Paper Address?

Sampling from a probability distribution where you only know the density up to a constant (the "partition function") is a cornerstone of Bayesian statistics. Usually, we rely on algorithms like Langevin Monte Carlo, which work beautifully if the distribution is log-concave (shaped like a bell curve).

However, many real-world distributions are non-log-concave. The Bingham distribution—defined on a sphere $S^{d-1}$ with a density $p(x) \propto \exp(x^\top A x)$—is a classic example. It is used in fields ranging from paleomagnetism to computer vision. Because it can have multiple peaks (modes) and saddle points, standard MCMC algorithms can get "stuck," taking an exponentially long time to produce a representative sample. The challenge was to find an algorithm that is both efficient (polynomial time) and provides exact (rather than approximate) samples.

Methods

The authors move away from the "random walk" approach of MCMC and instead use Rejection Sampling with a clever twist:

  1. Polynomial Approximation: Instead of trying to sample the exponential density directly, they approximate the PDF using a high-degree polynomial: $q(x) \propto (x^\top (I + D/n) x)^n$.
  2. Exact Integration: A major hurdle in sampling is calculating the area under the curve (the integral). The authors prove that for these specific polynomial forms, the integral over a sphere can be computed exactly in polynomial time using recurrences derived from Gaussian moments.
  3. Coordinate-wise Sampling: To draw a sample from the proposal distribution $q(x)$, the algorithm samples one coordinate at a time. Because the marginal and conditional distributions of their polynomial proposal are also polynomials, they can use inverse transform sampling (solving for the value where the cumulative distribution reaches a random threshold).
  4. Rejection Step: Finally, they use a standard rejection step to correct the polynomial approximation back to the true Bingham distribution. They prove that the ratio between the target and the proposal is bounded by a constant, ensuring the algorithm doesn't restart too many times.

Datasets

As a theoretical contribution to algorithmic learning theory, this paper does not use empirical datasets. Instead, the "evaluation" consists of rigorous mathematical proofs regarding the algorithm's expected runtime and the correctness of the resulting samples.

Key Insights and Ideas

  • Polynomials vs. Exponentials: While exponentials are hard to integrate over spheres, polynomials are surprisingly manageable. By choosing a specific polynomial structure, the authors can leverage known formulas for the moments of quadratic forms under Gaussian distributions.
  • The "Las Vegas" Advantage: Unlike MCMC, which gives you a sample that is "close" to the target after a certain number of steps, this algorithm is a Las Vegas algorithm. It provides an exact sample from the target distribution, with the only randomness being how long it takes to run.
  • Universal Local Model: The authors point out that the Bingham distribution is a "model" for non-log-concavity. Since any smooth distribution looks like a Bingham distribution near a stationary point, solving this specific case provides a blueprint for tackling more complex non-log-concave problems.

Key Results

  • Efficiency: The algorithm runs in expected time $poly(d, \lambda_{max}(A) - \lambda_{min}(A))$, where $d$ is the dimension and the eigenvalues represent the "temperature" or concentration of the distribution.
  • Bounded Ratio: They prove that the proposal distribution is a "good enough" fit that the acceptance probability in the rejection sampling step is at least $e^{-1}$, meaning the algorithm is highly efficient in practice.
  • Application to Matrix Inference: The authors demonstrate that this algorithm can solve the posterior inference problem for rank-1 matrix recovery (spiked models) in polynomial time, even in regimes where other methods fail.

Limitations and Future Work

  • Linear Terms: The current algorithm handles the Bingham distribution, but not the more general Fisher-Bingham distribution, which includes a linear term ($b^\top x$). Adding a linear term breaks the spherical symmetry used to simplify the integrals.
  • Rank-k Generalization: The algorithm is optimized for the rank-1 case. Generalizing this to higher-rank matrix distributions remains an open and challenging problem.
  • Computational Oracles: The algorithm assumes an oracle for solving univariate polynomial equations. While this is easily handled by binary search in practice, it remains a theoretical dependency.

Summary updated

BibTeX
@inproceedings{ge2021efficient,
  author = {Rong Ge and Holden Lee and Jianfeng Lu and Andrej Risteski},
  title = {{Efficient sampling from the Bingham distribution}},
  booktitle = {ALT},
  year = {2021},
  url = {https://openreview.net/forum?id=RhKcLMGy6zN},
}
Figure