Fast Mixing Markov Chains for Strongly Rayleigh Measures, DPPs, and Constrained Sampling

Chengtao Li, Stefanie Jegelka, Suvrit Sra

Abstract

We address the challenge of rapidly sampling from probability measures induced by set functions under constraints, a problem prevalent in machine learning and combinatorial optimization. Our primary contribution is the development of the first provably fast (polynomial-time) Markov Chain Monte Carlo (MCMC) sampler for Strongly Rayleigh (SR) measures. This class of distributions includes the widely used Determinantal Point Processes (DPPs). By leveraging the structural property of "real stability," we establish sharp polynomial bounds on mixing times, resolving a long-standing open question regarding DPP sampling efficiency. Furthermore, we extend these results to models with hard constraints, such as matroid and budget constraints, identifying sufficient conditions for rapid mixing and validating our theoretical findings through empirical experiments.

Introduction: The Complexity of Subset Selection

In many modern data science applications, the goal is to select a "good" subset of items from a large ground set. Examples include selecting a diverse set of images for a summary, picking representative sensors in a network, or pruning neurons to compress a neural model. These tasks are often modeled as probability distributions over subsets. However, as the ground set size $N$ grows, the number of possible subsets increases exponentially ($2^N$), making exact sampling computationally prohibitive.

While certain sub-classes of these distributions are tractable, real-world scenarios often impose "hard constraints" (e.g., picking exactly $k$ items or adhering to category-based budget limits). Determinantal Point Processes (DPPs) are a popular choice for modeling diversity in these contexts. Despite their popularity, a formal proof that standard MCMC methods converge to the correct distribution in polynomial time for general DPPs remained elusive for over four decades. This work bridges that gap.

Methodology: Homogenization and the "Mix" Chain

To handle the complexities of SR measures and various constraints, we introduce several algorithmic innovations:

  1. Symmetric Homogenization: SR measures are not inherently restricted to a fixed subset size. We employ a mathematical technique called symmetric homogenization to map the distribution onto a larger space where the subset size is fixed. This allows the use of a Gibbs-exchange sampler, which transitions between states by swapping one element in the current set for one outside of it.
  2. The "Mix" Chain (Algorithm 1): We propose a space-efficient implementation that interleaves "add-delete" moves with "exchange" moves. This hybrid approach prevents the sampler from becoming trapped in regions where the distribution is highly concentrated around a specific set size, a common failure mode for simpler chains.
  3. Theoretical Analysis: To prove rapid convergence (mixing), we utilize advanced probabilistic tools including multicommodity flow to bound the spectral gap for matroid constraints and path coupling to analyze chains under budget constraints ($|S| \leq k$).

Key Insights: Real Stability and Diversity

The core breakthrough of this research is the identification of "real stability" as the fundamental driver of fast mixing in SR measures. Real stability ensures the absence of "bottlenecks" in the state space that would otherwise trap an MCMC sampler.

We also distinguish between sampling from sets of at most $k$ items versus exactly $k$ items. While a simple add-delete chain suffices for bounded sizes, an exchange-based chain is necessary to ensure fast mixing when the size is fixed. Our proposed "Mix" chain, while technically "lazier" (staying in the same state more frequently), proves to be significantly more robust in sharply concentrated distributions.

Empirical Validation

We validated our theoretical bounds using both synthetic and real-world datasets. Synthetic experiments utilized 20-variable chain-structured Ising models to measure how factors like "inverse temperature" ($\beta$) and correlation strength ($\delta$) affect convergence speed.

Convergence of inference error for different inverse temperature (β) and correlation (δ) parameters.

As shown in the figure above, the mixing time increases as the distribution becomes "peakier" (higher $\beta$), which aligns with our theoretical $exp(\beta)$ bounds. Additionally, we tested the "Mix" algorithm on the Ailerons regression dataset ($N=200$ to $1000$), confirming that mixing time grows almost linearly with the ground set size $N$ for DPPs.

Conclusion and Future Work

This work provides the first polynomial mixing time guarantees for general DPPs, specifically $O(N^2 \log(1/\pi(X_0)))$. For uniform matroids, we achieve a nearly linear mixing time of $O(kN)$.

Despite these advances, challenges remain. The theoretical bounds depend on structural constants (like curvature $\alpha$) that can be difficult to compute a priori. Furthermore, "knapsack" constraints—where items have varying weights—remain an open problem, as even uniform sampling under such constraints is computationally intensive ($O(N^{4.5})$). Future research will focus on extending these fast-mixing guarantees to even broader classes of discrete distributions and more complex constraint types.

Summary updated

Abstract

We study probability measures induced by set functions with constraints. Such measures arise in a variety of real-world settings, where prior knowledge, resource limitations, or other pragmatic considerations impose constraints. We consider the task of rapidly sampling from such constrained measures, and develop fast Markov chain samplers for them. Our first main result is for MCMC sampling from Strongly Rayleigh (SR) measures, for which we present sharp polynomial bounds on the mixing time. As a corollary, this result yields a fast mixing sampler for Determinantal Point Processes (DPPs), yielding (to our knowledge) the first provably fast MCMC sampler for DPPs since their inception over four decades ago. Beyond SR measures, we develop MCMC samplers for probabilistic models with hard constraints and identify sufficient conditions under which their chains mix rapidly. We illustrate our claims by empirically verifying the dependence of mixing times on the key factors governing our theoretical bounds.
BibTeX
@inproceedings{li2016fast,
  author = {Chengtao Li and Stefanie Jegelka and Suvrit Sra},
  title = {{Fast Mixing Markov Chains for Strongly Rayleigh Measures, DPPs, and Constrained Sampling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=B1E9gYW_ZB},
}
Figure