RefAM:用于零样本指代分割的注意力磁铁
RefAM: Attention Magnets for Zero-Shot Referral Segmentation
AI总结:
RefAM通过利用扩散模型的注意力机制和停用词处理,实现无需训练的零样本指代分割,提升分割精度和效率。
摘要:
现有的指代分割方法通常只能通过微调或组合多个预训练模型来实现强大的性能,往往以额外的训练和架构修改为代价。与此同时,大规模生成扩散模型编码了丰富的语义信息,使其成为通用特征提取器的有吸引力的选择。在本工作中,我们提出了一种新的方法,直接利用扩散转换器的特征和注意力分数进行下游任务,既不需要架构修改,也不需要额外的训练。为了系统评估这些特征,我们扩展了基准测试,涵盖涵盖图像和视频的视觉-语言定位任务。我们的关键发现是停用词充当注意力磁铁:它们积累多余的注意力,并可以被过滤以减少噪声。此外,我们识别出在更深的层中出现的全局注意力汇(GAS),并证明它们可以安全地被抑制或重定向到辅助标记上,从而产生更清晰和更准确的定位图。我们进一步提出了一种注意力再分布策略,其中附加的停用词将背景激活分成更小的簇,产生更清晰和更局部化的热图。基于这些发现,我们开发了RefAM,一种简单且无需训练的定位框架,结合了交叉注意力图、GAS处理和再分布。在零样本指代图像和视频分割基准测试中,我们的方法实现了强大的性能,并在大多数数据集上超过了先前的方法,建立了新的最先进水平,而无需微调、额外组件和复杂的推理。
英文摘要:
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 among training-free methods, without task-specific training or architectural modification. For video, we localize the referent from the spatio-temporal features of a video diffusion transformer via a first-frame query that is then propagated; we therefore do not explicitly resolve temporal (which-frame) expressions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。