Interactive Image Segmentation With First Click Attention

Zheng Lin, Zhao Zhang, Lin-Zhuo Chen, Ming-Ming Cheng, Shao-Ping LuCVPR 2020 · DOI

Abstract

Interactive image segmentation is a crucial task for efficient object extraction, yet most existing methods treat all user interactions as functionally identical. This paper introduces the First Click Attention Network (FCA-Net), which recognizes the unique role of the initial user click as a "segmentation anchor." By incorporating a dedicated attention module that processes the first click separately, the model gains global location and shape guidance that persists through subsequent refinement clicks. Evaluated across five standard benchmarks, FCA-Net demonstrates superior efficiency and robustness, significantly reducing the number of clicks required to achieve high-accuracy segmentation masks.

Introduction

Interactive image segmentation serves as a "human-in-the-loop" bridge, allowing users to extract objects by providing simple point-and-click feedback. Traditionally, deep learning models for this task treat a sequence of clicks as an undifferentiated set of coordinate points. However, there is a fundamental functional disparity between the first click and subsequent ones.

The first click typically identifies the target object and its general location, often landing near the center of mass. In contrast, subsequent clicks are usually refinements intended to correct minor boundary errors. When models treat these refinement clicks—which are often near edges or even in the background—with the same weight as the initial anchor, the resulting segmentation mask can "drift" or lose focus on the primary object.

Figure 1: Conceptual comparison between the proposed FCA-Net and traditional methods. While other methods treat all clicks indiscriminately, FCA-Net uses the first click to guide subsequent interactions.

The FCA-Net Architecture

To address the "indiscriminate treatment" of user input, the authors propose FCA-Net, a framework designed to prioritize the first click's global context. The architecture is built upon a ResNet-101 backbone with Atrous Spatial Pyramid Pooling (ASPP) and consists of three primary components:

  1. First Click Attention Module: This dedicated sub-network takes the first click (represented as a Gaussian map) and low-level image features to generate a "guidance" feature map. This map is merged into the main segmentation branch, ensuring the model maintains focus on the object identified by the initial interaction.
  2. Click-based Loss Function: Moving beyond standard Binary Cross Entropy, the authors implement a weighted loss that prioritizes accuracy in regions immediately surrounding user clicks. This forces the model to strictly respect manual annotations.
  3. Structural Integrity Strategy (SIS): As a post-processing step, SIS utilizes an eight-connected path algorithm to remove disjointed mispredicted pixels, ensuring the final output is a single, coherent object connected to the user's positive clicks.
Figure 3: The FCA-Net pipeline, illustrating how the first click is processed through a specialized attention branch to supervise the final segmentation result.

Key Insights: The Anchor Concept

The core innovation of FCA-Net is the "Anchor" concept. By supervising the attention module specifically with the first click, the model achieves Focus Invariance. Even if a user places a refinement click near a confusing boundary or accidentally outside the object, the global guidance from the first click prevents the entire mask from collapsing.

Statistical analysis confirms that the first click is almost always central to the target. FCA-Net exploits this "centrality prior" to help the model ignore similar-looking background objects that might otherwise confuse a standard segmentation network.

Experimental Results

The model was rigorously evaluated on five benchmarks: GrabCut, Berkeley, PASCAL VOC, MSCOCO, and DAVIS. FCA-Net established a new state-of-the-art for efficiency, measured by the Mean Number of Clicks (mNoC) required to reach a target Intersection over Union (IoU).

  • Efficiency: On the GrabCut dataset, FCA-Net reaches 90% IoU with an average of only 2.08 clicks, a significant improvement over previous methods which required between 3.58 and 12.44 clicks.
  • Generalization: The model showed exceptional performance on the MSCOCO "unseen" category set, demonstrating that the first-click attention strategy generalizes well to object classes not present during training.
  • Performance: With an inference time of approximately 0.07 seconds per click on a standard GPU, the system is well-suited for real-time professional editing applications.

Limitations and Conclusion

Despite its strengths, FCA-Net faces challenges in scenarios involving multiple touching instances of the same class, where the location prior might bleed into adjacent objects. Additionally, objects with complex topologies (e.g., thin structures or occluded centers) may reduce the effectiveness of the first-click guidance.

In conclusion, FCA-Net demonstrates that treating the first user interaction as a unique "anchor" significantly enhances the robustness and efficiency of interactive segmentation. Future work may involve exploring even more powerful backbones or extending this specialized interaction logic to other input types like scribbles or bounding boxes.

Summary updated

BibTeX
@inproceedings{lin2020interactive,
  author = {Zheng Lin and Zhao Zhang and Lin-Zhuo Chen and Ming-Ming Cheng and Shao-Ping Lu},
  title = {{Interactive Image Segmentation With First Click Attention}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01335},
}
Figure