Interactive Image Segmentation With Latent Diversity

Zhuwen Li, Qifeng Chen, Vladlen Koltun

Introduction

Interactive image segmentation is a fundamental task in computer vision where a user extracts an object of interest by providing sparse guidance, typically in the form of positive (foreground) and negative (background) clicks. Despite its utility, the task is inherently ill-posed. A single click on a car's tire, for instance, could signal an intent to segment the wheel, the entire vehicle, or even the whole street. This inherent ambiguity often leads standard deep learning models to produce a "blurry average" of multiple potential masks, resulting in poor boundaries and a high "click cost" for the user.

The Challenge of Multimodality

Traditional interactive segmentation models struggle with the multimodal nature of user intent. When a network is trained to minimize a standard loss function (like cross-entropy) against a single ground truth for an ambiguous input, it tends to hedge its bets. Instead of committing to one clean object boundary, the model outputs a probability map that averages different plausible interpretations. This lack of commitment forces users to provide numerous redundant clicks to resolve the system's indecision.

Proposed Method: A Two-Stage Pipeline

To address this, the authors propose an end-to-end architecture that explicitly models latent diversity through a two-stage process: generating multiple hypotheses and then selecting the most appropriate one.

Overview of the proposed architecture, featuring the segmentation network that produces diverse candidates and the selection network that identifies the best mask.

1. The Segmentation Network

Instead of a single output, the segmentation network ($f$) produces $M$ candidate masks (optimized at $M=6$). This network utilizes a Context Aggregation Network (CAN) with dilated convolutions to maintain high resolution while capturing global context. To ensure these $M$ outputs are distinct and meaningful, the authors employ a hindsight loss. During training, the loss is only backpropagated through the candidate that best matches the ground truth. This encourages individual output channels to specialize in different "modes" of interpretation, such as part-based vs. object-based segmentation.

2. The Selection Network

The second stage involves a selection network ($g$) that evaluates the RGB image, the user's clicks, and the $M$ candidate masks to choose the final output. The authors found that a dense prediction structure followed by global average pooling was more effective for this selection task than standard image classification backbones.

Key Insights: Commitment Over Averaging

The primary advantage of this approach is its ability to produce sharp, committed boundaries without the need for computationally expensive post-processing like Graph Cuts. By allowing the model to entertain multiple hypotheses, it avoids the "blurry mean" problem.

Qualitative comparison showing how the model generates diverse, clean candidates (Segmentation 1 and 2) compared to a baseline without diversity that produces a noisy, uncertain result.

As shown in the figure above, the diversity-aware model can provide distinct, high-quality options for a single click, whereas a standard approach (without diversity) fails to resolve the object boundaries cleanly.

Experimental Results

The model was trained on the Semantic Boundaries Dataset (SBD) and evaluated on several benchmarks to test its generalization capabilities:

  • Efficiency: On the DAVIS dataset, the method reached an 85% Intersection-over-Union (IoU) with only 5.95 clicks, significantly outperforming the previous state-of-the-art (9.03 clicks).
  • Speed: By generating high-quality masks directly, the system is approximately 2.3x faster than prior methods that relied on heavy post-processing (236ms vs. 549ms).
  • Human Study: In real-world testing with human users, the system maintained its edge, requiring roughly 4.36 clicks to reach the 85% IoU threshold, compared to 7.14 for competing models.

Conclusion and Future Work

By explicitly modeling the ambiguity of user intent, this framework achieves high accuracy with minimal user intervention. While the system is currently dependent on the selection network's accuracy and a fixed number of hypotheses ($M$), it represents a significant step toward "one-shot" interactive segmentation. The authors suggest that this latent diversity approach could be extended to other ambiguous tasks, such as video frame prediction or surface normal estimation.

Summary updated

BibTeX
@inproceedings{li2018interactive,
  author = {Zhuwen Li and Qifeng Chen and Vladlen Koltun},
  title = {{Interactive Image Segmentation With Latent Diversity}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00067},
}
Figure