Bethe Learning of Graphical Models via MAP Decoding

Kui Tang, Nicholas Ruozzi, David Belanger, Tony JebaraAISTATS 2016

Introduction

Structured prediction tasks, such as image segmentation or graph matching, require learning parameters $\theta$ for probability distributions over complex, high-dimensional objects. Maximum Likelihood Estimation (MLE) is the preferred statistical approach for this, but it is hindered by the computational intractability of the partition function $Z(\theta)$. Calculating $Z(\theta)$ is #P-hard for most non-trivial models, leading many practitioners to favor Structured SVMs (SVM-Struct). While SVMs are efficient, they lack the probabilistic interpretation necessary for quantifying uncertainty or performing unsupervised learning.

The MLE-Struct Framework

This paper introduces MLE-Struct, a method that bridges the gap between the efficiency of SVMs and the probabilistic rigor of MLE. The framework is built on three pillars:

  1. Bethe Approximation: The intractable log-partition function is replaced with the Bethe free energy, a standard variational approximation from statistical physics.
  2. Dualization: By applying Sion’s minimax theorem to the convex dual of the MLE objective, the problem is transformed into a joint optimization over parameters and "beliefs" (pseudomarginals).
  3. Frank-Wolfe Optimization: The authors demonstrate that applying the Frank-Wolfe algorithm to this dual objective reduces the linear subproblem at each iteration to a standard MAP decoding problem.

This connection allows any existing MAP solver (e.g., Max-Flow for grids or the Blossom algorithm for matchings) to be used as a "black box" for approximate MLE learning. Unlike traditional "double-loop" methods that require an inner loop to converge (like loopy belief propagation), MLE-Struct is a "single-loop" technique that updates parameters incrementally after every MAP call.

Experimental Evaluation

The authors evaluated MLE-Struct across several diverse domains:

  • Binary Denoising: $64 \times 64$ pixel grids.
  • Image Segmentation: The Weizmann horses dataset.
  • Graph Matching: CMU house and hotel image sequences.
  • Roommate Assignments: A novel dataset of survey data from ~2500 students used to learn preferences for matching.
  • Financial & News Time Series: Unsupervised density estimation using 48 financial indicators and 19 news categories.

Results and Performance

MLE-Struct demonstrates significant advantages in both speed and scalability. On binary denoising tasks, the method reached a 1% relative error up to 283x faster than previous state-of-the-art message-passing methods (Hazan & Urtasun, 2010). It also scaled effectively to grid CRFs with 40,000 nodes, a scale where traditional MLE often fails.

Performance metrics and qualitative results across multiple tasks. Table (b) highlights the significant speedup of MLE-Struct compared to previous message-passing methods.

Beyond speed, MLE-Struct maintains competitive accuracy with SVM-Struct while providing useful confidence measures via pseudomarginals. Its generative capabilities were proven in the financial time series task, where it successfully learned high-treewidth Markov Random Fields without labels, achieving better test likelihood than independent models.

Detailed convergence analysis showing the log relative duality gap and test error over time for the MLE-Struct method versus baselines.

Conclusion

MLE-Struct provides a powerful "single-loop" alternative for learning graphical models. By reducing the learning process to a series of MAP calls, it enables the use of efficient combinatorial optimization algorithms for probabilistic inference. While the method introduces some approximation bias through smoothing and the use of the local polytope, its efficiency and generative power make it a compelling choice for large-scale structured prediction.

Summary updated

BibTeX
@inproceedings{tang2016bethe,
  author = {Kui Tang and Nicholas Ruozzi and David Belanger and Tony Jebara},
  title = {{Bethe Learning of Graphical Models via MAP Decoding}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2016},
}
Figure