eSAM: Editing SAM3 Attention for Training-Free Referring Segmentation
Yaoting Wang, Yun Zhou, Hengrui Hu, Chang Liu, Henghui Ding
NeurIPS page · Open on the map
Category: Graphs, OOD Detection & Medical Imaging › Multi-Channel Vision Transformers · Type: new method · Keywords: referring segmentation, attention editing, training-free, cross-attention, visual grounding
Areas: Multimodal › Multimodal Alignment › Cross-Modal Referring Tasks; Computer Vision & 3D › Visual Multimodal Perception › Vision-Language Grounding
Summary
eSAM is a training-free framework that edits SAM 3's cross-attention by suppressing an attention sink and injecting spatial guidance to improve referring segmentation performance.
Explained to a 5-year-old
A computer program looks at pictures and tries to find objects described by words. It works by paying attention to parts of the picture, but sometimes it pays too much attention to a special word token and ignores the picture. The researchers found a way to fix this by reducing that special attention and adding a helpful guide that points to the right thing. They did this without changing any of the program's internal settings. As a result, the program can now better cut out the objects the words describe in both still images and videos.
Explained to a 5-year-old, longer
A computer program can look at pictures and try to find the thing a sentence describes. It uses a special kind of attention to decide which parts of the picture are important. In many programs, a particular token that marks the start of the sentence gets a lot of attention, so the picture details are not used enough. This makes the program miss the object or draw a wrong mask. The researchers noticed this problem in a popular segmentation model. They discovered that the attention mass is like a sink that pulls all the focus to the start token. Simply removing that sink does not help because the attention spreads everywhere without direction. So they also added a guide that tells the attention where the object is likely to be, using a simple visual clue. They did all this by editing the attention maps and the values that the model uses, without retraining the model. This means the program can be improved quickly and cheaply. After applying these edits, the program cuts out the correct objects much better in both still images and videos. The new method works without any extra training, making it easy to use for many tasks.
For a technical reader
The paper identifies that the cross-attention in a text-prompted segmentation model is dominated by a start-of-text token, which limits the contribution of visual content. To address this, the authors edit the attention maps and value tensors of the model, suppressing the token and injecting a CLIPSeg-derived spatial prior that directs attention to relevant regions. These edits are performed without any parameter updates, resulting in improved performance on referring segmentation benchmarks.
Problem
Referring expression segmentation aims to produce pixel-level masks for objects described by natural language, but existing zero-shot methods often underperform because the attention mechanism in text-prompted segmentation models can be dominated by a start-of-text token, limiting the influence of content tokens.
Method
The approach edits the cross-attention maps and value tensors of the underlying segmentation model, suppressing the dominant start-of-text token and adding a CLIPSeg-derived spatial prior to guide attention, all without any parameter updates.
Results
The approach sets new state-of-the-art performance on both referring image segmentation and referring video object segmentation benchmarks among training-free methods.
Contributions
It identifies an attention sink problem in text-prompted segmentation and proposes a training-free editing technique that suppresses the sink and injects spatial guidance, yielding improved referring segmentation without any model training.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction