Probabilistic Duality for Parallel Gibbs Sampling without Graph Coloring

Lars M. Mescheder, Sebastian Nowozin, Andreas GeigerarXiv 2016

TL;DR

This paper introduces a novel "probabilistic duality" concept to enable highly parallel Gibbs sampling for graphical models. This approach bypasses the need for graph coloring, making it suitable for dynamic networks and densely connected graphs where traditional methods struggle. While it may have slower mixing than sequential methods, it offers significant advantages in parallelization and flexibility.

What Problem Does This Paper Address?

Inference in graphical models, particularly sampling from their probability distributions, is a fundamental but often computationally challenging task. A common and simple sampling method is Gibbs sampling, where variables are updated one by one. However, for efficient parallelization of Gibbs sampling, a technique called graph coloring is often required. This involves partitioning the graph's variables into disjoint sets that can be updated simultaneously. The problem is that finding an optimal graph coloring can be computationally expensive (NP-hard), and maintaining such a coloring becomes difficult in dynamic settings where the graph's structure (factors) changes frequently. Furthermore, some graphical models, like densely connected ones, are inherently hard to color with a small number of colors. This paper addresses the need for a parallel Gibbs sampling method that circumvents the graph coloring requirement, making it more broadly applicable and easier to implement.

Methods

The core contribution of this paper is the introduction of probabilistic duality. This concept re-frames a probability distribution $p(x)$ as a joint distribution $p(x, \theta)$ of the original variables $x$ and a new set of dual variables $\theta$. This joint distribution is structured such that $p(x)$ is the marginal of $p(x, \theta)$, and importantly, the conditional distributions $p(x|\theta)$ and $p(\theta|x)$ can be efficiently computed and, crucially, factorize.

The paper formalizes this duality using link functions $s(x)$ and $r(\theta)$ and defines $(s,r)$-transforms. The key insight is that for many graphical models, particularly Markov Random Fields (MRFs), the factors can be decomposed in a way that naturally leads to this dual representation. This decomposition allows for a blockwise Gibbs sampling strategy:

  1. Sample the dual variables $\theta$ given the current primal variables $x$.
  2. Sample the primal variables $x$ given the newly sampled dual variables $\theta$.

Because the conditional distributions $p(x|\theta)$ and $p(\theta|x)$ factorize in the dual representation of MRFs, these sampling steps can be performed in parallel across all variables within each set ($\theta$ or $x$). This eliminates the need for graph coloring. The paper also shows how this primal-dual framework can be extended to handle more complex scenarios, including blocking for improved mixing and deriving parallel MAP and mean-field inference algorithms.

Datasets

Not discussed in the paper. The paper focuses on synthetic graphical models for evaluation.

Key Insights and Ideas

  • Probabilistic Duality as a Parallelization Tool: The paper demonstrates that by introducing dual variables and structuring the joint distribution appropriately, one can achieve parallel Gibbs sampling without relying on graph coloring. This is a significant departure from prior parallelization techniques.
  • Factorization is Key: The success of the parallelization hinges on the ability to factorize the conditional distributions $p(x|\theta)$ and $p(\theta|x)$. This is shown to be achievable for MRFs through appropriate dual representations.
  • Dynamic Networks and Dense Graphs: The method's independence from graph coloring makes it particularly well-suited for dynamic graphical models (where factors change) and densely connected graphs, scenarios where traditional coloring-based methods are problematic.
  • Connection to Existing Methods: The paper shows that established algorithms like Swendsen-Wang can be viewed as special cases or derived from this primal-dual framework, providing a unifying perspective.
  • Beyond Sampling: The probabilistic duality concept is also shown to be useful for developing parallel algorithms for MAP inference and mean-field approximations.

Key Results

The paper presents experimental results on synthetic graphical models, including Ising grids, random graphs, and fully connected Ising models. The primary metric reported is the number of iterations (or sweeps) required to achieve a Potential Scale Reduction Factor (PSRF) below 1.01, indicating convergence.

  • Ising Grid: For a 50x50 Ising grid, both the sequential Gibbs sampler and the primal-dual sampler's mixing time increased with coupling strength. The primal-dual sampler's mixing time was found to be between 2x and 7x slower than the sequential sampler. However, the authors argue that in dynamic settings where graph coloring is hard to maintain, the primal-dual sampler becomes a viable alternative.
  • Random Graphs: For random graphs, mixing worsened as the factor-to-vertex ratio increased. The primal-dual sampler was found to be competitive when this ratio was low (e.g., k ≈ 2), but not recommended for models with many more factors than variables if factors are not weak.
  • Fully Connected Ising Model: For a fully connected Ising model, where graph coloring is not feasible, the primal-dual sampler showed improved mixing compared to the sequential Gibbs sampler (in terms of full sweeps vs. single-site updates).

Limitations and Future Work

  • Mixing Time: The paper acknowledges that the proposed parallel Gibbs sampler generally has inferior mixing times compared to sequential Gibbs samplers. This is an inherent trade-off for achieving parallelism.
  • Approximation Quality: For models with many factors, the primal-dual method can lead to poor approximations, and fine-tuning with traditional mean-field updates might be necessary.
  • Future Work:
    • Developing algorithms for selecting appropriate subgraphs for blocking.
  • Leveraging the non-uniqueness of primal-dual representations to derive better decompositions.
  • Generalizing the approach to higher-order factors, both exactly and approximately.
  • Applying these methods to a wider range of discrete graphical models.

Summary updated

BibTeX
@misc{mescheder2016probabilistic,
  author = {Lars M. Mescheder and Sebastian Nowozin and Andreas Geiger},
  title = {{Probabilistic Duality for Parallel Gibbs Sampling without Graph Coloring}},
  year = {2016},
  eprint = {1611.06684},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.06684},
}
Figure