Consensus Message Passing for Layered Graphical Models

Varun Jampani, S. M. Ali Eslami, Daniel Tarlow, Pushmeet Kohli, John M. Winn

Abstract

Generative models provide a powerful framework for probabilistic reasoning. However, in many domains their use has been hampered by the practical difficulties of inference. This is particularly the case in computer vision, where models are often layered and contain many loops. We propose Consensus Message Passing (CMP), a hybrid approach that uses machine learning to "jump-start" probabilistic inference, making complex generative models practical for real-world vision tasks.

Introduction

Generative models are often considered the "holy grail" of probabilistic reasoning because they allow for the encoding of deep domain knowledge regarding data formation. However, in fields like computer vision, these models are frequently massive, "loopy," and layered. This structural complexity causes standard inference algorithms, such as Expectation Propagation (EP) or Variational Message Passing (VMP), to struggle—often converging to suboptimal local minima or requiring excessive computational time.

The primary bottleneck in vision-based generative modeling is the interdependence of variables. For instance, estimating a face's 3D shape, skin reflectance, and scene lighting requires solving for highly intertwined parameters. Standard message-passing algorithms operate locally, updating variables based on immediate neighbors. In complex models, these local updates often fail to resolve "global variables"—influential parameters like light direction or object centroids. Without accurate initial estimates for these global values, local updates become noisy, leading to inference failure.

Consensus Message Passing (CMP)

To address these challenges, Jampani et al. introduce Consensus Message Passing (CMP), a "learning to infer" strategy. CMP leverages the observation that vision models are typically layered, with pixels at the base and high-level scene parameters at the apex. The algorithm proceeds in four stages:

  1. Contextual Messages: Inference begins with messages traveling from the bottom layer upward, carrying local evidence.
  2. The Predictor: A trained regressor (specifically, a Random Regression Forest) analyzes these contextual messages to predict the likely value of a global variable.
  3. Consensus Messages: This prediction is injected back into the graphical model as a "consensus message," serving as a strong, informed prior for the first iteration of inference.
  4. Refinement: Standard message passing (EP or VMP) then takes over to fine-tune the results, ensuring consistency with the full generative model.
Architectural variants of Consensus Message Passing: Type A (left) targets global variables, while Type B (right) targets layers to break loops.

The authors define two primary configurations: Type A, where messages target a single global variable (like light direction), and Type B, where messages are sent to an entire layer of latent variables to break circular dependencies.

Experimental Evaluation

The efficacy of CMP was evaluated across three distinct tasks:

  • Diagnostic Models: Synthetic "Circle" and "Square" problems designed to test convergence speed and robustness against local minima.
  • Face Modeling: Utilizing the Yale B and Extended Yale B datasets, which feature 38 subjects under 64 lighting conditions. Evaluation focused on recovering reflectance maps and surface normals.

Results

CMP demonstrated significant improvements in both speed and robustness. In the synthetic "Circle" problem, CMP achieved accurate solutions in significantly fewer iterations than standard VMP. In the "Square" problem, where standard EP typically failed to locate the object, CMP consistently identified the correct center and dimensions.

Convergence performance on the 'Circle' diagnostic problem, comparing CMP against standard Message Passing (MP) and a Forest baseline.

On the Yale B dataset, CMP produced reflectance maps with superior clarity and accuracy compared to standard VMP, particularly in shadowed regions. Furthermore, when these inferred maps were used for subject recognition, CMP outperformed both standard message passing and established bottom-up baselines, proving that the generative model's refinement adds substantial value.

Conclusion

Consensus Message Passing successfully bridges the gap between the speed of bottom-up discriminative models and the mathematical rigor of top-down generative models. While currently reliant on manual feature engineering for Random Forests, future iterations could integrate deep neural networks to automate feature extraction and handle more complex scene hierarchies involving multiple objects and occlusions.

Summary updated

BibTeX
@inproceedings{jampani2015consensus,
  author = {Varun Jampani and S. M. Ali Eslami and Daniel Tarlow and Pushmeet Kohli and John M. Winn},
  title = {{Consensus Message Passing for Layered Graphical Models}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2015},
  url = {https://openreview.net/forum?id=H43Nc85taW9},
}
Figure