FocSAM: Delving Deeply into Focused Objects in Segmenting Anything
Not on the map. Why?
Abstract (arXiv)
The Segment Anything Model (SAM) marks a notable milestone in segmentation models, highlighted by its robust zero-shot capabilities and ability to handle diverse prompts. SAM follows a pipeline that separates interactive segmentation into image preprocessing through a large encoder and interactive inference via a lightweight decoder, ensuring efficient real-time performance. However, SAM faces stability issues in challenging samples upon this pipeline. These issues arise from two main factors. Firstly, the image preprocessing disables SAM from dynamically using image-level zoom-in strategies to refocus on the target object during interaction. Secondly, the lightweight decoder struggles to sufficiently integrate interactive information with image embeddings. To address these two limitations, we propose FocSAM with a pipeline redesigned on two pivotal aspects. First, we propose Dynamic Window Multi-head Self-Attention (Dwin-MSA) to dynamically refocus SAM's image embeddings on the target object. Dwin-MSA localizes attention computations around the target object, enhancing object-related embeddings with minimal computational overhead. Second, we propose Pixel-wise Dynamic ReLU (P-DyReLU) to enable sufficient integration of interactive information from a few initial clicks that have significant impacts on the overall segmentation results. Experimentally, FocSAM augments SAM's interactive segmentation performance to match the existing state-of-the-art method in segmentation quality, requiring only about 5.6% of this method's inference time on CPUs.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 40 of its 58 references that are in the map. First posted on arXiv 29 May 2024.
Builds on
40 of 58 references.
References · 40
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2023Segment Anythingcited by 8,158
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2017Mask R-CNNcited by 7,259
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2019LVIS: A Dataset for Large Vocabulary Instance Segmentationcited by 1,215
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
- 2021Transformers in Vision: A Surveycited by 1,009
- 2023LISA: Reasoning Segmentation via Large Language Modelcited by 770
28 more
- 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 723
- 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 717
- 2022EVA: Exploring the Limits of Masked Visual Representation Learning at Scalecited by 685
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
- 2023Medical SAM Adapter: Adapting Segment Anything Model for Medical Image Segmentationcited by 485
- 2022InternImage: Exploring Large-Scale Vision Foundation Models with Deformable Convolutionscited by 479
- 2018Efficient Attention: Attention with Linear Complexitiescited by 366
- 2019Axial Attention in Multidimensional Transformerscited by 350
- 2023Segment Anything Model for Medical Image Analysis: an Experimental Studycited by 291
- 2021Focal Self-attention for Local-Global Interactions in Vision Transformerscited by 286
- 2023Inpaint Anything: Segment Anything Meets Image Inpaintingcited by 233
- 2021Scaling Local Self-Attention for Parameter Efficient Visual Backbonescited by 220
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2021Reviving Iterative Training with Mask Guidance for Interactive Segmentationcited by 162
- 2016Deep Interactive Object Selectioncited by 160
- 2017Deep Extreme Cut: From Extreme Points to Object Segmentationcited by 127
- 2018Efficient Interactive Annotation of Segmentation Datasets with Polygon-RNN++cited by 119
- 2020f-BRS: Rethinking Backpropagating Refinement for Interactive Segmentationcited by 117
- 2022SimpleClick: Interactive Image Segmentation with Simple Vision Transformerscited by 109
- 2019Star-Transformercited by 94
- 2021Multi-Scale High-Resolution Vision Transformer for Semantic Segmentationcited by 92
- 2023Review of Large Vision Models and Visual Prompt Engineeringcited by 77
- 2020Dynamic ReLUcited by 55
- 2022PseudoClick: Interactive Image Segmentation with Click Imitationcited by 42
- 2021EdgeFlow: Achieving Practical Interactive Segmentation with Edge-Guided Flowcited by 40
- 2022Beyond Fixation: Dynamic Window Visual Transformercited by 28
- 2023InterFormer: Real-time Interactive Image Segmentationcited by 20
Built on by
Citing papers per year: 2024: 2; 2025: 2.
4 papers.
- 2025DC-TTA: Divide-and-Conquer Framework for Test-Time Adaptation of Interactive Segmentationcited by 3
- 2024SAM-REF: Introducing Image-Prompt Synergy during Interaction for Detail Enhancement in the Segment Anything Modelcited by 2
- 2024Towards Efficient Pixel Labeling for Industrial Anomaly Detection and Localizationcited by 0
- 2025Towards Efficient Pixel Labeling for Industrial Anomaly Detection and Localizationcited by 0
- 2025Towards Efficient Pixel Labeling for Industrial Anomaly Detection and Localization5 Sep 2025
- 2025DC-TTA: Divide-and-Conquer Framework for Test-Time Adaptation of Interactive Segmentation29 Jun 2025
- 2024SAM-REF: Introducing Image-Prompt Synergy during Interaction for Detail Enhancement in the Segment Anything Model21 Aug 2024
- 2024Towards Efficient Pixel Labeling for Industrial Anomaly Detection and Localization3 Jul 2024