ClickAttention: Click Region Similarity Guided Interactive Segmentation
Long Xu, Shanghong Li, Yongquan Chen, Junkang Chen, Rui Huang, Feng Wu
TL;DR
This work targets the inefficiency of traditional click-based interactive segmentation by expanding the influence of positive user clicks through local-region similarity and a patch-based attention mechanism. It introduces ClickAttention, supported by a nonlinear mapper $\phi$ and a discriminative affinity loss to decouple positive/negative click regions, integrated with a Segformer backbone. Empirical results show state-of-the-art or competitive performance on multiple benchmarks with significantly fewer parameters and improved efficiency, outperforming large models like SAM/HQ-SAM in many settings. The approach enables accurate segmentation with fewer, more informative clicks, offering practical value for low-resource devices and large-scale annotation tasks.
Abstract
Interactive segmentation algorithms based on click points have garnered significant attention from researchers in recent years. However, existing studies typically use sparse click maps as model inputs to segment specific target objects, which primarily affect local regions and have limited abilities to focus on the whole target object, leading to increased times of clicks. In addition, most existing algorithms can not balance well between high performance and efficiency. To address this issue, we propose a click attention algorithm that expands the influence range of positive clicks based on the similarity between positively-clicked regions and the whole input. We also propose a discriminative affinity loss to reduce the attention coupling between positive and negative click regions to avoid an accuracy decrease caused by mutual interference between positive and negative clicks. Extensive experiments demonstrate that our approach is superior to existing methods and achieves cutting-edge performance in fewer parameters. An interactive demo and all reproducible codes will be released at https://github.com/hahamyt/ClickAttention.
