Abstract
Discrete probabilistic models are essential for various machine learning tasks, yet inference often relies on local MCMC methods like Gibbs sampling, which struggle with state-space bottlenecks. We present the $M^3$ sampler (Metropolis Mixture of log-Modulars), a novel approach that utilizes a mixture of product distributions to propose global moves. By constructing these proposals using discrete semigradients, the $M^3$ sampler effectively bypasses low-probability regions. Empirical results on synthetic and real-world datasets demonstrate that combining $M^3$ with local Gibbs sampling leads to exponential speedups in convergence and significant improvements in wall-clock efficiency.
Introduction
Many critical machine learning applications, such as video summarization and sensor placement, involve discrete probabilistic models defined over subsets of a finite set. Exact inference in these models is typically #P-hard, necessitating the use of Markov chain Monte Carlo (MCMC) methods. The standard Gibbs sampler is the most common choice; however, it is limited by its local nature, moving only by adding or removing a single element. In distributions with multiple high-probability modes separated by "moats" of low probability, Gibbs sampling can become trapped, leading to prohibitively slow mixing times.
Methodology: The $M^3$ Sampler
To address the bottleneck problem, we introduce the $M^3$ sampler. Unlike local samplers, $M^3$ employs a proposal distribution $q$ that is a mixture of log-modular (product) distributions. This allows the chain to perform "global moves," jumping across the state space independently of the current position.
Semigradient Construction
The effectiveness of the $M^3$ sampler depends on how well the mixture $q$ approximates the target distribution $\pi$. We leverage discrete semigradients—tools usually found in submodular optimization—to iteratively build the proposal. By identifying regions where the current mixture underperforms, we add new log-modular components based on the marginal gains of the target function at those points.
The Combined Chain
We propose a hybrid sampling strategy that combines the local exploration of Gibbs sampling with the global jumps of the $M^3$ sampler. This combined chain is proven to be reversible and maintains the correct stationary distribution, offering a "best of both worlds" scenario: precision in local exploration and mobility across global bottlenecks.
Experimental Evaluation
We evaluated the performance of the $M^3$ sampler across four distinct models:
- Ising Model: A synthetic physics model on a complete graph, designed to test performance against severe state-space bottlenecks.
- WATER: A log-submodular facility location model for sensor placement in a water distribution network ($n=50$).
- SENSOR: A determinantal point process (DPP) for indoor temperature monitoring ($n=46$).
- GAME: A facility location diversity model trained on "Heroes of the Storm" match data to predict team compositions ($n=48$).
Results and Discussion
The primary metric for convergence was the Potential Scale Reduction Factor (PSRF). In all experiments, the combined sampler (COMBO-I) reached a low PSRF significantly faster than the vanilla Gibbs sampler.
As shown in Figure 1, the $M^3$-enhanced chains (COMBO-I, COMBO-R) converge to a PSRF of 1 much more rapidly than GIBBS, both in terms of the number of samples and wall-clock time. For the WATER and SENSOR datasets, the $M^3$ approach achieved convergence in approximately half the time required by Gibbs sampling, despite the additional overhead of computing mixture proposals.
Sensitivity Analysis
The performance of the $M^3$ sampler is influenced by the number of mixture components ($r$) and the weight ($\alpha$) assigned to the local vs. global chain.
Figure 2(a) illustrates that increasing the number of components $r$ consistently improves convergence rates, though even a modest $r=20$ provides substantial gains over Gibbs. Figure 2(b) demonstrates the importance of the hybrid approach; while pure global moves ($\alpha=0$) can be slow to refine local details, a balanced mixture avoids the stagnation seen in pure Gibbs sampling ($\alpha=1$).
Conclusion
The $M^3$ sampler represents a significant step in bridging discrete optimization and probabilistic sampling. By using semigradients to construct global proposals, we transform a difficult sampling problem into a structured approximation task. While future work remains in scaling to massive ground sets and automating parameter tuning, the $M^3$ sampler provides a robust framework for overcoming mixing bottlenecks in discrete state spaces.
Summary updated