Markov Chain Sampling in Discrete Probabilistic Models with Constraints

Chengtao Li, Stefanie Jegelka, Suvrit Sra

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.

Introduction

In discrete probabilistic modeling, we often seek to sample from distributions defined over subsets of a ground set $V$. These models, such as Ising models or Determinantal Point Processes (DPPs), are vital for tasks ranging from recommendation systems to physics simulations. However, practical applications rarely allow for unconstrained selection. Instead, they impose hard constraints—such as selecting exactly $k$ items or ensuring a specific distribution across categories.

While sampling from unconstrained distributions is a well-developed field, the introduction of hard constraints $\mathcal{C}$ (where $\pi(S) = 0$ if $S \notin \mathcal{C}$) introduces significant theoretical hurdles. Specifically, constraints can break the connectivity of the state space or lead to exponential mixing times, rendering standard Markov Chain Monte Carlo (MCMC) methods impractical. This research provides the first rigorous mixing time bounds for MCMC sampling in discrete models subject to matroid constraints, bridging the gap between theoretical sampling and constrained optimization.

Sampling Mechanisms

The study focuses on two primary Markov Chain architectures designed to navigate constrained spaces:

  1. The Exchange Chain: Tailored for "fixed-size" constraints (e.g., matroid bases where $|S| = k$). In each transition, the algorithm selects one element currently in the set and one outside, swapping them if the resulting set remains within the constraint boundary.
  2. The Add-Delete Chain: Designed for "budget" constraints (e.g., $|S| \leq k$). This chain randomly decides to either add an element to the current set or delete an existing one, maintaining feasibility at each step.

Theoretical Framework

To establish that these chains converge quickly to the target distribution, the authors utilize two advanced techniques. For the Exchange Chain, they employ multicommodity flow analysis to demonstrate that no single transition in the state graph becomes a bottleneck, thereby bounding the spectral gap. For the Add-Delete Chain, they use path coupling to show that two independent chains will quickly coalesce, implying rapid mixing.

A critical factor in these bounds is $\zeta_F$, a parameter quantifying the "non-modularity" of the set function $F$. The mixing time is shown to be sensitive to how much $F$ deviates from a simple linear summation.

Key Theoretical Insights

Matroids as the Foundation

The research highlights matroids (such as uniform and partition matroids) as the ideal structure for constrained sampling. The mathematical properties of matroids ensure that the state space remains well-connected, preventing the Markov Chain from becoming trapped in local regions of the state space.

The First Fast DPP Sampler

A landmark result of this work is the application to Strongly Rayleigh (SR) measures. By providing sharp polynomial bounds on mixing times for SR measures, the authors deliver the first provably fast MCMC sampler for Determinantal Point Processes (DPPs). Despite the popularity of DPPs in machine learning for over forty years, a provably efficient MCMC sampling method had remained elusive until now.

The Impact of Temperature and Linearity

The analysis reveals that mixing time scales exponentially with $2\beta\zeta_F$, where $\beta$ is the inverse temperature. High $\beta$ values make the distribution "peaky," concentrating probability on a few optimal sets and making it harder for the sampler to move between peaks. Similarly, as the function becomes less linear (higher $\zeta_F$), the energy landscape becomes more rugged, slowing convergence.

Empirical Validation

The theoretical bounds were tested using both synthetic and real-world data:

  • Synthetic Ising Models: Using a 20-variable chain-structured model, the researchers verified that the error in the sampler decreased in alignment with predicted mixing times.
  • Ailerons Dataset: Utilizing a real-world dataset to build a DPP, the authors varied the ground set size $N$ from 50 to 1,000. The results, measured via the Potential Scale Reduction Factor (PSRF), confirmed that mixing time scales almost linearly with $N$, supporting the polynomial complexity claims.

Conclusion and Future Directions

This work provides a rigorous foundation for sampling under pressure. By identifying matroids as a "safe zone" for connectivity and quantifying the impact of non-linearity on mixing speed, it offers clear guidelines for practitioners. However, challenges remain. Constraints like the knapsack constraint (where items have varying weights) do not yet have guaranteed fast-mixing bounds. Furthermore, for functions with high curvature, the exponential dependence on $\zeta_F$ remains a bottleneck, suggesting that further innovation is needed for highly non-linear discrete models.

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{li2016markov,
  author = {Chengtao Li and Stefanie Jegelka and Suvrit Sra},
  title = {{Markov Chain Sampling in Discrete Probabilistic Models with Constraints}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=B1E9gYW_ZB},
}

Loading related content...

Figure