Abstract
In this paper, we derive an efficient algorithm to learn the parameters of structured predictors in general graphical models. This algorithm blends the learning and inference tasks, which results in a significant speedup over traditional approaches, such as conditional random fields (CRFs) and structured support vector machines (SSVMs). For this purpose, we utilize the structures of the predictors to describe a low-dimensional structured prediction task which encourages local consistencies within the different structures while learning the parameters of the model. Convexity of the learning task provides the means to enforce the consistencies between the different parts. The inference-learning blending algorithm that we propose is guaranteed to converge to the optimum of the low-dimensional primal and dual programs. Unlike many of the existing approaches, the inference-learning blending allows us to learn efficiently high-order graphical models, over regions of any size, and very large numbers of parameters. We demonstrate the effectiveness of our approach while presenting state-of-the-art results in stereo estimation, semantic segmentation, shape reconstruction, and indoor scene understanding.
Introduction
Structured prediction is a cornerstone of computer vision, enabling the mapping of input data (such as images) to complex, multi-dimensional outputs like semantic maps, 3D depth grids, or scene layouts. However, the computational cost of these models is often prohibitive. Traditionally, learning the parameters of Conditional Random Fields (CRFs) or Structured Support Vector Machines (SSVMs) requires a "nested loop" approach: for every update to the model parameters, a full inference algorithm must be run to convergence. This inner loop creates a massive bottleneck, particularly for high-resolution data or complex graphical models.
This paper introduces a framework to break this bottleneck by "blending" the traditionally separate tasks of learning and inference into a single, joint optimization problem. By optimizing a low-dimensional upper bound of a unified loss function, the proposed algorithm updates model parameters and internal beliefs simultaneously, leading to significant speedups and state-of-the-art performance.
Methodology
1. The Extended Log-Loss
The authors propose a unified loss function controlled by a temperature parameter ($\epsilon$). This "Extended Log-Loss" acts as a theoretical bridge between two major paradigms:
- When $\epsilon=1$, the objective is equivalent to the standard log-loss used in CRFs.
- As $\epsilon \to 0$, it smoothly approximates the hinge-loss used in SSVMs.
2. Low-Dimensional Upper Bounds
To make the optimization tractable, the authors derive a convex upper bound of the global loss function. This bound decomposes over "regions" of the graphical model, allowing the algorithm to handle complex dependencies without needing to compute the exact (and often intractable) global partition function.
3. Inference-Learning Blending
Because the resulting objective function is convex, the authors employ Block Coordinate Descent. Instead of waiting for inference to reach convergence before updating the model weights ($w$), the algorithm performs a few steps of inference (updating "messages" or "beliefs") and then immediately updates the weights. This simultaneous update ensures that the model learns even from "messy" intermediate beliefs, eventually converging to the global optimum of the low-dimensional primal and dual programs.
4. Duality and Moment Matching
Using Fenchel duality, the authors demonstrate that the learning process is essentially a form of "moment matching"—aligning the model's predicted statistics with the training data. Simultaneously, the inference component ensures "marginalization constraints," forcing local components of the model to reach a state of mutual consistency.
Experimental Results
The effectiveness of the blending approach was validated across several high-dimensional computer vision tasks:
- Stereo Estimation (KITTI): The method achieved a 6.25% error rate, significantly outperforming established baselines like GC+occ (39.76%) and ELAS (10.95%).
- Semantic Segmentation (MSRC-21): The algorithm reached an average accuracy of 79.3%, setting a new state-of-the-art at the time of publication.
- Indoor Scene Understanding: On the Hedau et al. dataset, the method reduced pixel classification error by up to 5% compared to previous best-in-class approaches.
- Parameter Scaling: In binary image denoising experiments, the algorithm successfully optimized over 10,000 unique parameters. Traditional methods are typically forced to use "parameter sharing" (reducing the model to a handful of weights) because they cannot handle the computational load of such a large parameter space.
Key Insights
- Consistency as a Destination: A major takeaway is that perfect internal consistency (where all parts of the model agree) is not required during the early stages of training. The algorithm can effectively learn from intermediate states, reaching consistency and optimal parameters simultaneously.
- Efficiency and Stability: The algorithm converges in very few iterations. In denoising tasks, the primal and dual values became tightly bound almost immediately, demonstrating high numerical stability.
Conclusion and Future Work
By unifying CRFs and SSVMs into a single framework and blending the inference and learning steps, this research provides a scalable solution for training high-order graphical models. While the framework is robust, the authors note that the non-smooth nature of the objective when $\epsilon=0$ (the SSVM case) makes convergence verification via the duality gap more challenging. Future research may explore different convex penalty functions for the dual problem and further investigate the interaction between regularization and temperature in noisy, real-world settings.
Summary updated