FocalClick: Towards Practical Interactive Image Segmentation

Xi Chen, Zhiyan Zhao, Yilei Zhang, Manni Duan, Donglian Qi, Hengshuang Zhao

Abstract

Interactive image segmentation is a critical component in modern annotation pipelines and photo editing software. However, existing state-of-the-art models often suffer from high computational costs and a lack of robustness when refining preexisting masks. This paper presents FocalClick, a framework designed to bridge the gap between academic research and industrial application. By shifting from global image processing to localized "crops" and introducing a "Progressive Merge" strategy, FocalClick achieves high accuracy with significantly reduced computational overhead.

1. Introduction

Interactive image segmentation allows users to define objects by placing positive and negative clicks. While recent deep learning models have shown impressive results, they face two primary challenges in practical deployment. First, the reliance on heavy backbones and high-resolution global inputs makes them unsuitable for low-power devices or real-time web applications. Second, most models lack an effective mechanism for mask correction; a single click often triggers a global re-prediction that can inadvertently destroy well-defined parts of an existing mask. FocalClick addresses these issues by treating interactive clicks as local operations rather than global resets.

2. The FocalClick Framework

FocalClick solves the efficiency and refinement problems by decomposing a single heavy inference task into two lightweight, localized steps.

2.1 Target Crop and Coarse Segmentation

Instead of processing the entire high-resolution image, the model identifies a "Target Crop"—a region surrounding the object of interest. The model first performs a low-resolution coarse prediction within this crop, providing a general outline of the object without the memory overhead of a full-image scan.

2.2 Focus Crop and Local Refinement

To capture fine details, the system identifies a "Focus Crop." This is a smaller patch where the current prediction differs most significantly from the previous state. A specialized "Refiner" network then processes this localized patch at high resolution, ensuring sharp boundaries and precise adjustments where they are needed most.

2.3 Progressive Merge Strategy

A key innovation of FocalClick is the Progressive Merge strategy. Traditional models often overwrite the entire mask with each new click, which can be counter-productive. FocalClick uses morphological analysis to determine the specific area the user intends to modify based on their click. By updating only the relevant region, the model preserves the integrity of the preexisting mask, making the tool feel more predictable and "surgical" for professional editors.

3. Experimental Evaluation

The authors trained FocalClick on standard large-scale datasets, including COCO, LVIS, SBD, and Augmented VOC.

3.1 The DAVIS-585 Benchmark

To specifically address the "mask correction" problem, the authors introduced a new benchmark: DAVIS-585. Derived from the high-quality DAVIS-2017 dataset, it consists of 585 test samples specifically designed to evaluate interactive mask correction. By simulating flawed initial masks (using super-pixel erosion and dilation), the benchmark measures how many clicks a model needs to "rescue" a bad mask versus starting from scratch.

4. Results and Discussion

FocalClick demonstrates significant improvements in both efficiency and performance over existing state-of-the-art (SOTA) models.

  • Computational Efficiency: The FocalClick-S1 variant (using a 128x128 input) is approximately 15x smaller in terms of FLOPs than the popular RITM model and 360x smaller than FCANet, while maintaining competitive accuracy.
  • Real-Time Performance: On a standard CPU, FocalClick-S1 can process a click in approximately 40-60ms. This low latency makes the tool feel instantaneous to the user, a requirement for industrial-strength applications.
  • Superior Mask Correction: On the DAVIS-585 benchmark, FocalClick significantly outperformed previous models. While models like RITM often required more clicks to fix a mask than to start from scratch, FocalClick successfully leveraged the initial mask to reach high Intersection over Union (IoU) scores much faster.

5. Limitations and Future Work

Despite its strengths, the authors identify areas for further development. The model still struggles with extremely thin structures, such as parachute ropes or fine hair, which may require specialized matting datasets to resolve. Additionally, for ultra-high-resolution (4K) images, system-level bottlenecks in data loading can outweigh inference time, suggesting a need for further engineering at the UI level. Future directions include incorporating matting-specific loss functions to improve the Refiner's performance on complex boundaries.

6. Conclusion

FocalClick represents a significant step toward making interactive segmentation practical for real-world use. By focusing on localized refinement and intelligent mask merging, it provides a fast, lightweight, and reliable solution for image annotation that respects the user's intent and existing work.

Summary updated

BibTeX
@inproceedings{chen2022focalclick,
  author = {Xi Chen and Zhiyan Zhao and Yilei Zhang and Manni Duan and Donglian Qi and Hengshuang Zhao},
  title = {{FocalClick: Towards Practical Interactive Image Segmentation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure