TL;DR
Gibbs sampling is the gold standard for inference in graphical models, but it scales poorly as models grow denser and variables take on more values. This paper introduces minibatching techniques—inspired by Stochastic Gradient Descent—that subsample a node's neighbors to perform updates. The authors prove these methods can be made unbiased and provide theoretical "spectral gap" bounds to ensure that the speedup doesn't come at the cost of a disastrously slow convergence rate.
The Bottleneck in Standard Gibbs Sampling
In a graphical model, Gibbs sampling updates one variable at a time by looking at its "local neighborhood" (the factors or constraints it is connected to). The computational cost of a single update is $O(D\Delta)$, where $D$ is the number of possible values the variable can take (domain size) and $\Delta$ is the number of connected factors (degree).
As we build more complex models—like those for knowledge graphs or large-scale spatial data—both $D$ and $\Delta$ explode. A single update that used to take milliseconds might now take seconds, making the entire Markov Chain Monte Carlo (MCMC) process intractable. Previous "hacks" to fix this, like pruning the graph, introduce permanent bias. The authors ask: Can we use random subsampling to speed up Gibbs sampling without introducing bias or ruining convergence?
Minibatching Methods
The authors propose three primary algorithms that apply minibatching to different parts of the Gibbs update:
- MIN-Gibbs: This algorithm uses an energy estimator based on a random subset of factors. Crucially, they use a "bias-adjusted" estimator involving Poisson-distributed weights. They prove that if the estimator satisfies a specific condition, the resulting Markov chain remains unbiased (it converges to the true distribution).
- MGPMH (Minibatch-Gibbs-Proposal Metropolis-Hastings): Local updates are still expensive because you have to sum over the neighborhood for every possible value in the domain $D$. MGPMH uses a minibatched version of Gibbs as a proposal distribution within a Metropolis-Hastings framework. This ensures the chain is reversible and converges to the correct stationary distribution.
- DoubleMIN-Gibbs: This "final form" algorithm combines the two previous ideas. It uses minibatching to generate a proposal (speeding up the $D$ dependence) and minibatching to estimate the acceptance probability (speeding up the $\Delta$ dependence).
Key Insights and Ideas
- The Poisson Trick: To make the energy estimate unbiased after exponentiation (which is required for Gibbs), the authors don't just take a simple average. They use independent Poisson-distributed random variables to weight the factors. This is a clever application of the moment-generating function of a Poisson distribution.
- Decoupling Complexity: The most significant "aha" moment is that these algorithms decouple the runtime from the graph's maximum degree $\Delta$. In DoubleMIN-Gibbs, the cost becomes dependent on $L$ and $\Psi$, which relate to the "energy" or strength of the factors rather than just the raw number of them.
- Spectral Gap Guarantees: Speed is useless if the chain takes a billion more iterations to converge. The authors provide "spectral gap" bounds, proving that as long as the minibatch size is large enough (proportional to the square of the energy), the convergence rate only slows down by a small constant factor.
Key Results
- Asymptotic Speedup: As shown in the complexity table above, for models with many low-energy factors, the authors demonstrate a jump from $O(D\Delta)$ to roughly $O(DL^2 + \Psi^2)$ or better. This represents a significant reduction in per-iteration cost when the degree $\Delta$ is large.
- Empirical Tracking: In experiments on Ising and Potts models, the minibatched algorithms (with sufficient batch sizes) tracked the error-reduction curve of vanilla Gibbs sampling almost perfectly. This confirms that the theoretical speedups work in practice without sacrificing convergence quality.
Limitations and Future Work
- Energy Sensitivity: The required minibatch size depends on the "maximum energy" ($M_\phi$) of the factors. If a model has extremely strong, high-energy constraints, the required batch size might become so large that the benefits of minibatching vanish.
- Parameter Tuning: Users need to estimate these energy bounds ($L$ and $\Psi$) to set the average batch size $\lambda$. Setting these incorrectly could lead to high variance in the updates.
- Real-world Scaling: While the theory is robust and validated on synthetic benchmarks (Ising and Potts models), the paper does not demonstrate these algorithms on "messy" large-scale production data (e.g., a billion-node social graph), which remains a promising direction for future engineering work.
Summary updated