A multi-plane block-coordinate frank-wolfe algorithm for training structural SVMs with a costly max-oracle

Neel Shah, Vladimir Kolmogorov, Christoph H. Lampert

Introduction

Structural Support Vector Machines (SSVMs) are a cornerstone of structured prediction, enabling models to output complex objects like image segmentation masks or human poses. However, training these models is often bottlenecked by the max-oracle—an expensive subroutine required to find the most violating constraint. This paper introduces MP-BCFW, a multi-plane variant of the Block-Coordinate Frank-Wolfe (BCFW) algorithm that significantly accelerates training by caching previous oracle results and using a clever geometric rule to decide when to reuse them.

The Max-Oracle Bottleneck

In structured prediction, the algorithm must repeatedly identify which incorrect output is the most "confusing" for the model given current weights. This "loss-augmented inference" often requires solving secondary optimization problems like graph cuts or dynamic programming. While the standard BCFW algorithm improved efficiency by updating one training example at a time, it remained "wasteful": it would compute an expensive hyperplane from the oracle and immediately discard it after a single small update.

The MP-BCFW Method

The proposed Multi-Plane Block-Coordinate Frank-Wolfe (MP-BCFW) algorithm addresses this inefficiency through two main innovations:

  1. Hyperplane Caching: Instead of discarding max-oracle results, the algorithm maintains a "working set" (cache) of hyperplanes for each training example.
  2. Interleaved Passes: The algorithm alternates between Exact Passes, which call the expensive max-oracle for new hyperplanes, and Approximate Passes, which quickly search the cache for the best available update direction.

Adaptive Geometric Criterion

The "secret sauce" of MP-BCFW is its ability to automatically determine the number of approximate passes. The authors developed a geometrically motivated rule: they compare the rate of progress (increase in the dual objective per second) of the current approximate pass to the average progress of the entire iteration.

The geometric criterion for switching from approximate passes to a new exact oracle call.

As shown in the figure above, when the cache no longer provides "good value for the time"—meaning the slope of progress in the approximate passes falls below the average iteration slope—the algorithm triggers a new exact oracle call.

Experimental Results

The algorithm was evaluated on tasks ranging from fast oracles (USPS multiclass classification) to very slow oracles (Stanford Background semantic segmentation).

Runtime and Convergence

In all tests, MP-BCFW required significantly fewer calls to the max-oracle to reach the same level of accuracy compared to standard BCFW. On the Stanford dataset, where the oracle is the primary bottleneck, MP-BCFW reduced the time spent on oracle calls from 99% to less than 25%.

Convergence of primal suboptimality on the USPS dataset, showing that MP-BCFW maintains or improves performance even with fast oracles.

Crucially, the algorithm is robust. On datasets with very fast oracles like USPS, the automatic selection rule correctly identifies that caching is unnecessary and falls back to standard BCFW behavior, ensuring no performance penalty while still achieving competitive convergence rates.

Conclusion

MP-BCFW offers a principled way to "squeeze" more progress out of every expensive computation. By dynamically adapting the use of cached information based on real-time progress, it provides a substantial speedup for complex computer vision tasks while maintaining the convergence guarantees of the Frank-Wolfe framework.

Summary updated

BibTeX
@inproceedings{shah2015multi,
  author = {Neel Shah and Vladimir Kolmogorov and Christoph H. Lampert},
  title = {{A multi-plane block-coordinate frank-wolfe algorithm for training structural SVMs with a costly max-oracle}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  doi = {10.1109/cvpr.2015.7298890},
}
Figure