NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning from Exemplars for Interactive Image Segmentation

Kun Li, Hao Cheng, George Vosselman, Michael Ying YangarXiv 2024 · DOI

Introduction: The Efficiency Gap in Multi-Object Segmentation

Interactive Image Segmentation (IS) is a critical "human-in-the-loop" process where users provide clicks to guide a model in generating precise object masks. While state-of-the-art models excel at Single Object Interactive Segmentation (SOIS), they are often "forgetful." In scenarios requiring the annotation of multiple similar objects—such as a pack of dogs or a flock of birds—current tools treat each instance as an isolated task. This lack of context leads to significant redundancy, requiring users to start from scratch for every new object of the same category.

To address this, researchers have introduced the concept of Multiple Object Interactive Segmentation (MOIS). By leveraging a previously segmented "exemplar" as a reference, the system can accelerate the segmentation of subsequent "recall objects" of the same class.

Comparison of standard interactive segmentation (a) vs. the proposed exemplar-based approach (b).

Proposed Method: iCMFormer++

The core of this work is iCMFormer++, a transformer-based framework designed to learn from exemplars. Unlike standard architectures that process a single set of interactions, iCMFormer++ utilizes a two-stream approach to integrate information from both the current target and a previously segmented instance.

Key Architectural Components

  • Two-Stream Transformer Backbone: The model features parallel branches: one for the "exemplar" (the reference object) and one for the "recall" branch (the new target and its associated clicks).
  • Exemplar-Informed Module (EIM): This module functions as a similarity engine. It extracts visual features from the exemplar and generates a "response activation map" across the entire image, highlighting regions likely to contain similar objects.
  • Channel Fusion Module: To maintain computational efficiency, the authors replaced heavy self-attention blocks with a lightweight fusion module (2.96M parameters) that merges features from both branches before the final segmentation head.
Architecture of iCMFormer and the enhanced iCMFormer++ for multi-object segmentation.

Datasets and Evaluation

To rigorously test the MOIS capabilities, the authors introduced COCO MOIS, a specialized extension of the COCO 2017 dataset. It contains over 111,000 training samples specifically curated for multi-instance, same-category segmentation tasks. The model was also evaluated on standard SOIS benchmarks (GrabCut, Berkeley, SBD) and the HIM2K matting dataset.

Key Results and Insights

The primary "aha moment" of this research is that redundancy in annotation is a feature to be exploited. By treating the first segmented object as a "visual prompt," the model gains a substantial head start on subsequent instances.

  • Labor Reduction: iCMFormer++ reduces the manual effort required to reach a 90% Intersection over Union (IoU) by approximately 15%, typically saving two clicks per object.
  • Performance and Stability: The model achieves a lower Number of Clicks (NoC) and Number of Failures (NoF) compared to established leaders like RITM and SimpleClick, demonstrating superior robustness on tricky boundaries.
  • Real-Time Viability: Despite the dual-stream architecture, the model maintains an inference speed of ~92ms per click, making it suitable for professional real-time annotation tools.

Conclusion and Future Work

iCMFormer++ demonstrates that "learning from exemplars" can significantly streamline the interactive segmentation workflow. While the model shows great promise, challenges remain in highly cluttered scenes where occlusions can confuse similarity matching. Future research directions include integrating prompt learning and large-scale foundation models like SAM to further enhance the "zero-shot" capabilities of the recall branch.

Summary updated

BibTeX
@misc{li2024learning,
  author = {Kun Li and Hao Cheng and George Vosselman and Michael Ying Yang},
  title = {{Learning from Exemplars for Interactive Image Segmentation}},
  year = {2024},
  eprint = {2406.11472},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.11472},
}
Figure