Submodular meets Structured: Finding Diverse Subsets in Exponentially-Large Structured Item Sets

Adarsh Prasad, Stefanie Jegelka, Dhruv Batra

TL;DR

This paper provides a principled way to find a diverse set of high-quality solutions in structured prediction problems, such as image segmentation, where the number of possible outputs is exponentially large. By drawing a clever connection between submodular diversity functions and High-Order Potentials (HOPs) in graphical models, the authors transform an otherwise impossible search problem into an efficient inference task.

The Challenge of Exponentially Large Solution Spaces

In many AI tasks, there isn't just one "correct" answer. For example, in image segmentation, a "person" might be interpreted as a single object or a collection of parts (head, torso, limbs). To handle this ambiguity, models should ideally suggest a small set of diverse but high-quality candidate solutions (proposals) rather than just a single best guess.

The primary hurdle is that in structured prediction, the space of all possible answers is astronomical. If an image has $n$ pixels and each can take one of $L$ labels, there are $L^n$ possible segmentations.

Structured representation of exponentially large solution spaces

Standard algorithms for finding diverse sets—like the greedy algorithm for submodular maximization—usually require scanning every single possible item in the candidate set. When the set is exponentially large, a simple scan is computationally impossible. Previous methods were either limited to simple models (like trees) or relied on heuristics that lacked a solid theoretical foundation.

Methods: Bridging Submodularity and Graphical Models

The authors propose a framework that combines a relevance function (how good is this specific solution?) and a diversity function (how different is this solution from the ones we already picked?).

The core innovation lies in their Augmentation Sub-routine. Usually, a greedy algorithm picks the next item by evaluating everything left in the pool. Here, the authors show that for several useful definitions of diversity, the step of "finding the next best item" can be mathematically reduced to a Maximum A Posteriori (MAP) inference problem in a graphical model.

Specifically, they map different types of diversity to "High-Order Potentials" (HOPs)—complex constraints in a factor graph that can be solved efficiently:

  • Label Diversity: Rewards picking solutions with labels not yet seen in the set. This maps to Label Cost HOPs.
  • Label Transitions: Rewards seeing new pairs of adjacent labels (e.g., a "dog" next to a "cat"). This maps to Co-operative Cuts.
  • Hamming Ball Diversity: Rewards picking solutions that are spatially different from previous ones, effectively pushing new solutions outside a certain radius of existing ones. This maps to Cardinality Potentials.
Hamming Ball Diversity

By using these mappings, the algorithm can find the next best diverse solution in sub-linear time. Instead of evaluating all $L^n$ possibilities, it solves an optimization problem over just the $n$ variables.

Key Insights

  • Bridging Two Worlds: The paper connects Submodular Maximization (discrete math) with Graphical Model Inference (computer vision). This allows researchers to use powerful optimization tools from one field to solve the diversity problems of the other.
  • Diminishing Returns (Saturation): Unlike previous methods that used linear penalties for similarity, submodular functions "saturate." The reward for adding a certain type of diversity diminishes the more of it you already have, leading to a more balanced and truly diverse set of results.
  • Parsimony Matters: Simply asking for diversity isn't enough; a "parsimony" factor is needed to ensure that individual solutions don't become overly complex just to artificially check the boxes of missing labels.

Datasets and Results

The authors evaluated their approach on two computer vision tasks using the PASCAL VOC 2012 dataset: Interactive Binary Segmentation and Category-level Object Segmentation.

The primary metric used was Oracle Accuracy—the accuracy of the best segmentation in the generated set of $M$ candidates.

  • Higher Quality Sets: In category-level segmentation, combining different types of diversity (Label Cost + Hamming Ball + Label Transitions) significantly outperformed any single method.
  • Beating the Baseline: On the interactive segmentation task, their Hamming Ball diversity approach achieved an oracle accuracy of 93.95% (for $M=2$), outperforming the popular DivMBest baseline (93.16%).
  • Qualitative Success: The method successfully generated plausible alternatives. For instance, if the first guess missed a small object or mislabeled a boundary, subsequent diverse picks were likely to fix those specific areas.

Limitations and Future Work

While the greedy algorithm has strong theoretical guarantees, those guarantees assume the "next best item" step can be solved perfectly. In practice, solving HOPs is often done via approximations (like $\alpha$-expansion), which might weaken the theoretical bounds. Furthermore, the framework currently assumes the scoring function is "monotone" (adding more items never decreases the total score). A more general treatment of non-monotone functions in structured spaces remains an open challenge. Finally, while much faster than an exponential scan, solving complex HOPs is still computationally heavier than finding a single standard solution, making real-time optimization a key area for future work.

Summary updated

BibTeX
@inproceedings{prasad2014submodular,
  author = {Adarsh Prasad and Stefanie Jegelka and Dhruv Batra},
  title = {{Submodular meets Structured: Finding Diverse Subsets in Exponentially-Large Structured Item Sets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2014},
  url = {https://openreview.net/forum?id=SyZ-Zw-uWB},
}
Figure