Abstract
When evaluating computer vision systems, we are often concerned with performance on a task-specific evaluation measure such as the Intersection-Over-Union score used in the PASCAL VOC image segmentation challenge. Ideally, our systems would be tuned specifically to these evaluation measures. However, despite much work on loss-aware structured prediction, top performing systems do not use these techniques. In this work, we seek to address this problem, incorporating loss-aware prediction in a manner that is amenable to the approaches taken by top performing systems. Our main idea is to simultaneously leverage two systems: a highly tuned pipeline system as is found on top of leaderboards, and a traditional CRF. We show how to combine high quality candidate solutions from the pipeline with the probabilistic approach of the CRF that is amenable to loss-aware prediction. The result is that we can use loss-aware prediction methodology to improve performance of the highly tuned pipeline system.
Introduction
In computer vision, performance is typically measured by task-specific metrics like Intersection-Over-Union (IOU). While it is theoretically ideal to optimize models directly for these metrics using loss-aware structured prediction (e.g., Minimum Bayes Risk), state-of-the-art systems rarely do so. Top-performing systems are often complex, multi-stage pipelines that lack the clean probabilistic structure required by traditional loss-aware theory.
This paper bridges the gap between these highly-tuned pipelines and principled structured prediction. The authors introduce the "Candidate Constrained CRF" ($C^3RF$), a hybrid approach that restricts a Conditional Random Field (CRF) to focus its probability mass strictly around high-quality candidate solutions generated by a black-box pipeline. This allows for optimization of specific evaluation metrics at prediction time, yielding measurable performance improvements over standard Maximum A Posteriori (MAP) inference.
Methodology
The $C^3RF$ framework operates in four primary stages:
- Candidate Generation: A small set of diverse, high-quality candidate solutions is extracted from the prediction pipeline using the DivMBest algorithm.
- Candidate Constrained CRF ($C^3RF$): Instead of evaluating expected loss over the entire exponentially large output space, the CRF's probability distribution is restricted to "Hamming balls" (regions of a specific radius $R$) centered around the candidates. This hard constraint is enforced using Higher-Order Potentials (HOPs) and cardinality trees.
- Factorized Expected Loss Approximation (FELA): Marginal probabilities within these constrained regions are computed using sum-product message passing and the Bethe approximation. These marginals are then used to efficiently estimate the expected loss for each candidate.
- Prediction: The system outputs the candidate solution with the lowest approximate expected loss.
By expanding candidate points into Hamming balls, the $C^3RF$ captures a richer, more calibrated local distribution than previous "delta distribution" approaches. This local calibration is crucial; the authors observed that constraining the CRF to these candidate regions better aligns the model for minimizing expected loss in the most relevant areas of the solution space.
Experimental Results
The proposed method was evaluated on three distinct tasks: synthetic toy grids, interactive binary segmentation (PASCAL VOC 2010), and category-level semantic segmentation (PASCAL VOC 2012).
Key findings include:
- PASCAL Category Segmentation: The $C^3RF+FELA$ predictor achieved a 1.35% improvement over the standard MAP baseline and a 0.45% improvement over the previous state-of-the-art loss-aware baseline (Delta/EMBR).
- Binary Segmentation: The model matched the performance of the Delta baseline, providing a 5.45% boost over MAP. In this simpler task, cross-validation often selected a Hamming radius of 0, effectively reducing the $C^3RF$ to a Delta model.
- Approximation Accuracy: The Bethe approximation used for computing the mass of candidate solutions in loopy graphs proved highly accurate and significantly more efficient than sampling-based alternatives.
Conclusion
The $C^3RF$ demonstrates that one does not need to choose between heuristic pipelines and probabilistic purity. By using pipelines to identify "good neighborhoods" and CRFs to evaluate loss within them, systems can achieve superior performance on task-specific metrics. While the current model relies on Empirical Risk Minimization (ERM) due to model misspecification, future work could explore more general loss functions and apply the candidate-constrained distribution concept to broader structured prediction tasks.
Summary updated