Abstract
Conditional Random Fields (CRFs) are powerful tools for modeling spatial dependencies in image segmentation, yet their parameter learning remains computationally challenging. This paper introduces a tree-structured CRF model based on Ultrametric Contour Maps (UCM) that enables exact inference and tractable learning. By utilizing this model as a controlled experimental framework, we evaluate common training heuristics, demonstrating that piecewise training is highly effective and that Maximum Likelihood estimation outperforms max-margin methods in high-dimensional parameter spaces.
Introduction
Conditional Random Fields (CRFs) are a staple in computer vision because they excel at modeling dependencies between pixels or regions—for example, ensuring that a pixel labeled "car" is likely surrounded by other "car" pixels. However, they have a major Achilles' heel: parameter learning.
In most CRF models, calculating the partition function (a normalizing constant) requires summing over an exponential number of possible labelings, which is computationally intractable. Consequently, researchers often rely on heuristics like manual cross-validation or "piecewise training." This work seeks to move past these heuristics to answer fundamental questions: Does adding more features always help? Is joint training actually better than piecewise? And does the popular max-margin (Structured SVM) approach beat Maximum Likelihood in practice?
Methodology
To facilitate exact learning without approximations, the authors propose a tree-structured CRF built upon Ultrametric Contour Maps (UCM).
- Hierarchical Segmentation: Instead of a flat grid of pixels, the model uses UCM to create a hierarchy of image regions, ranging from fine-grained superpixels at the leaves to the entire image at the root.
- Tractable Tree Structure: Because the model is a tree (acyclic), the sum-product algorithm can be used to calculate the partition function and its gradients exactly and efficiently.
- High-Dimensional Learning: This tractability allows for the learning of a massive number of parameters ($\approx 10^5$) using Regularized Conditional Maximum Likelihood Estimation (CMLE) optimized via LBFGS.
- Feature Fusion: The model incorporates four distinct feature types: SIFT (texture), QHOG and QPHOG (shape/gradients), and Semantic Texton Forests (STF).
Experimental Results
The study primarily utilizes the PASCAL VOC 2009 segmentation dataset, consisting of 1,499 annotated images across 20 object classes. The findings challenge several common assumptions in the field:
Feature and Data Scaling
Adding reasonable image features consistently improved performance. High dimensionality did not lead to overfitting; rather, the primary bottleneck was the volume of available training data. Combining all features led to a 15.04% accuracy on the validation set, nearly doubling the performance of the best single feature (QHOG at 8.40%).
Piecewise vs. Joint Training
"Piecewise training"—where unary and pairwise factors are trained separately—performed almost identically to "Joint training." Piecewise training achieved 14.50% accuracy in 12.5 hours, while Joint training reached 14.54% but required over 26 hours. This suggests that the significant speedup of piecewise training comes with negligible performance loss.
Optimization: CMLE vs. Structured SVM
In the comparison between Maximum Likelihood (CMLE) and Max-Margin (Structured SVM), CMLE proved superior. CMLE achieved 13.65% accuracy in 24 hours, whereas the Structured SVM reached only 13.21% and took 165 hours. The max-margin optimization (cutting-plane) became unstable and slow in high-dimensional spaces.
Conclusion and Future Work
The tree-structured CRF provides a rigorous "laboratory" for understanding parameter learning. The results indicate that for high-level vision, we remain in a data-hungry regime where more features and data are the primary drivers of performance. While the tree structure enables exact math, it cannot model long-range dependencies that bypass the hierarchy. Future work will investigate whether these insights—particularly the efficacy of piecewise training—hold true for more complex, loopy graphs where approximate inference is required.
Summary updated