RefAM: Attention Magnets for Zero-Shot Referral Segmentation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kukleva, Anna, Simsar, Enis, Tonioni, Alessio, Naeem, Muhammad Ferjad, Tombari, Federico, Lenssen, Jan Eric, Schiele, Bernt
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914307096182784
author Kukleva, Anna
Simsar, Enis
Tonioni, Alessio
Naeem, Muhammad Ferjad
Tombari, Federico
Lenssen, Jan Eric
Schiele, Bernt
author_facet Kukleva, Anna
Simsar, Enis
Tonioni, Alessio
Naeem, Muhammad Ferjad
Tombari, Federico
Lenssen, Jan Eric
Schiele, Bernt
contents Most existing approaches to referring segmentation achieve strong performance only through fine-tuning or by composing multiple pre-trained models, often at the cost of additional training and architectural modifications. Meanwhile, large-scale generative diffusion models encode rich semantic information, making them attractive as general-purpose feature extractors. In this work, we introduce a new method that directly exploits features, attention scores, from diffusion transformers for downstream tasks, requiring neither architectural modifications nor additional training. To systematically evaluate these features, we extend benchmarks with vision-language grounding tasks spanning both images and videos. Our key insight is that stop words act as attention magnets: they accumulate surplus attention and can be filtered to reduce noise. Moreover, we identify global attention sinks (GAS) emerging in deeper layers and show that they can be safely suppressed or redirected onto auxiliary tokens, leading to sharper and more accurate grounding maps. We further propose an attention redistribution strategy, where appended stop words partition background activations into smaller clusters, yielding sharper and more localized heatmaps. Building on these findings, we develop RefAM, a simple training-free grounding framework that combines cross-attention maps, GAS handling, and redistribution. Across zero-shot referring image and video segmentation benchmarks, our approach achieves strong performance and surpasses prior methods on most datasets, establishing a new state of the art without fine-tuning, additional components and complex reasoning.
format Preprint
id arxiv_https___arxiv_org_abs_2509_22650
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle RefAM: Attention Magnets for Zero-Shot Referral Segmentation
Kukleva, Anna
Simsar, Enis
Tonioni, Alessio
Naeem, Muhammad Ferjad
Tombari, Federico
Lenssen, Jan Eric
Schiele, Bernt
Computer Vision and Pattern Recognition
Most existing approaches to referring segmentation achieve strong performance only through fine-tuning or by composing multiple pre-trained models, often at the cost of additional training and architectural modifications. Meanwhile, large-scale generative diffusion models encode rich semantic information, making them attractive as general-purpose feature extractors. In this work, we introduce a new method that directly exploits features, attention scores, from diffusion transformers for downstream tasks, requiring neither architectural modifications nor additional training. To systematically evaluate these features, we extend benchmarks with vision-language grounding tasks spanning both images and videos. Our key insight is that stop words act as attention magnets: they accumulate surplus attention and can be filtered to reduce noise. Moreover, we identify global attention sinks (GAS) emerging in deeper layers and show that they can be safely suppressed or redirected onto auxiliary tokens, leading to sharper and more accurate grounding maps. We further propose an attention redistribution strategy, where appended stop words partition background activations into smaller clusters, yielding sharper and more localized heatmaps. Building on these findings, we develop RefAM, a simple training-free grounding framework that combines cross-attention maps, GAS handling, and redistribution. Across zero-shot referring image and video segmentation benchmarks, our approach achieves strong performance and surpasses prior methods on most datasets, establishing a new state of the art without fine-tuning, additional components and complex reasoning.
title RefAM: Attention Magnets for Zero-Shot Referral Segmentation
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2509.22650