Efficient Structured Prediction with Latent Variables for General Graphical Models

Alexander Schwing, Tamir Hazan, Marc Pollefeys, Raquel Urtasun

TL;DR

This paper introduces a unified framework for structured prediction that bridges the gap between Hidden Conditional Random Fields (HCRFs) and Latent Structured SVMs (LSSVMs). By integrating a local entropy approximation directly into the objective function, the authors derive a message-passing algorithm that is both significantly faster than HCRFs and more robust than LSSVMs, especially when dealing with large amounts of missing (latent) data.

What Problem Does This Paper Address?

Structured prediction is a cornerstone of computer vision and natural language processing, used for tasks like segmenting an image into semantic categories. Traditionally, these models require fully labeled datasets, which are incredibly expensive to produce. To lower costs, researchers use "weakly labeled" data, where some information is missing and treated as latent variables.

Existing frameworks for this, like HCRFs and LSSVMs, face a major hurdle: they rely on exact inference (calculating the "partition function" or the "MAP estimate"), which is computationally impossible for the complex, cyclic graphical models common in real-world vision tasks. When these methods resort to approximate inference, they lose their mathematical guarantees, often leading to poor performance or failure to converge.

Methods

The authors propose a unified loss minimization framework that includes a temperature parameter $\epsilon$. By varying $\epsilon$, the model can smoothly transition between a maximum-likelihood approach (HCRF at $\epsilon=1$) and a max-margin approach (LSSVM at $\epsilon=0$).

Key technical innovations include:

  • Local Entropy Approximation: Instead of performing approximate inference as a separate step, they use duality to bake a local entropy approximation directly into the learning objective.
  • Convergent Message Passing: They derive an efficient algorithm based on the Concave-Convex Procedure (CCCP). Unlike traditional methods that might require thousands of inference iterations per weight update, their approach is guaranteed to converge and allows for a single message update per parameter update.
  • Parallelization: The algorithm is designed to be easily parallelized across data samples, making it suitable for large-scale problems.

Datasets

The approach was evaluated on two distinct tasks:

  1. Synthetic Segmentation: A 14x40 grid task using an "ICML" tag where labels were randomly hidden to simulate weak supervision.
  2. 3D Indoor Scene Understanding: Using the dataset from Hedau et al. (2009), which contains 209 images. The goal is to infer the 3D layout (walls, ceiling, floor) of a room from a single image.

Key Insights and Ideas

  • The Unification of HCRF and LSSVM: The paper demonstrates that these two popular methods are actually special cases of a broader family of latent variable models.
  • Stability under Uncertainty: A major "aha moment" is shown in Figure 1. When 90% of the labels are missing, LSSVM learns a completely wrong model because its approximate "cutting planes" become invalid. The proposed method remains stable and accurate.
Figure 1. Segmenting the ICML tag with 90% latent vari- ables: (left) ground truth and our result, (right) wrong model learned by LSSVM.
  • Efficiency through Duality: By solving the problem in the dual domain with entropy counting numbers, the authors avoid the "inner-loop" bottleneck that makes HCRFs notoriously slow.

Key Results

  • Speed: On the segmentation task, the proposed approach was 35 times faster than a standard HCRF (6.2 minutes vs. 213.2 minutes).
  • Accuracy with Weak Labels: In the 3D scene understanding task, the model achieved a prediction error of 14.7% using only 10 fully labeled images and 100 weakly labeled ones. This outperformed previous state-of-the-art methods that used over 200 fully labeled images.
  • Robustness: As shown in Figure 2, the proposed method maintains low error rates even as the percentage of latent variables approaches 100%, whereas LSSVM's performance degrades sharply after 60%.
Figure 2. Performance as a function of the amount of latent variables, averaged over 5 runs.

Limitations and Future Work

While the algorithm is guaranteed to converge, the authors note that it may converge to a local minimum or a saddle point due to the non-convex nature of latent variable problems.

For future work, the authors suggest:

  • Extending the framework to handle non-linear structured prediction.
  • Investigating the relationship between this approach and deep belief networks, potentially combining the strengths of graphical models with deep learning architectures.

Summary updated

BibTeX
@inproceedings{schwing2012efficient,
  author = {Alexander Schwing and Tamir Hazan and Marc Pollefeys and Raquel Urtasun},
  title = {{Efficient Structured Prediction with Latent Variables for General Graphical Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2012},
  url = {https://openreview.net/forum?id=H1-noibdbB},
}
Figure