揭秘<SEG> token如何通过语义匹配提升视觉定位能力
Reasoning to Attend: Try to Understand How <SEG> Token Works
- 用相似性图可视化<SEG>与图像特征的语义匹配过程
- 提出READ模型,利用高激活点增强模型定位推理能力
- 模块可即插即用,适合改进现有多模态模型的定位性能
当前大型多模态模型(LMMs)依赖<SEG>标记作为文本提示,联合优化视觉-语言模型(如LLaVA)与下游任务模型(如SAM)。然而,对<SEG>标记工作机理的研究极少。本文通过计算<SEG>标记与图像标记嵌入在LLaVA编码器和SAM解码器最后一层隐藏状态间的语义相似度,生成相似性图。结果显示,<SEG>标记在图像-文本对中表现出高度一致的激活响应,表明其核心作用是实现图像与文本之间的语义匹配。具体而言,在微调过程中,<SEG>标记会广泛查询图像块以实现文本描述与图像对象的语义对齐。基于此发现,本文提出READ模型,借助相似性图中的高激活点引导模型进行更稳健的注意力推理。READ设计直观,包含可无缝集成的‘相似性即点’(SasP)模块,适用于<SEG>类范式。在ReasonSeg与RefCOCO(+/g)数据集上进行了充分实验,并在增强版FP-RefCOCO(+/g)数据集上评估了微调后是否产生灾难性遗忘。所有代码与模型均已公开于https://github.com/rui-qian/READ。
原文摘要 · Abstract (English)
Current Large Multimodal Models (LMMs) empowered visual grounding typically rely on $\texttt{<SEG>}$ tokens as a text prompt to jointly optimize the vision-language model (e.g., LLaVA) and the downstream task-specific model (e.g., SAM). However, we observe that little research has looked into how it works.In this work, we first visualize the similarity maps, which are obtained by computing the semantic similarity between the $\texttt{<SEG>}$ token and the image token embeddings derived from the last hidden layer in both the LLaVA encoder and SAM decoder. Intriguingly, we have found that a striking consistency holds in terms of activation responses in the similarity map, which reveals that what the $\texttt{<SEG>}$ token contributes to is semantic similarity within image-text pairs. Specifically, the $\texttt{<SEG>}$ token, a placeholder expanded in text vocabulary, extensively queries among individual tokenized image patches to match the semantics of an object from text to the paired image, while the Large Language Models (LLMs) are being fine-tuned. Upon the above findings, we present READ, which facilitates LMMs' resilient $\textbf{REA}$soning capability of where to atten$\textbf{D}$ under the guidance of highly activated points borrowed from similarity maps. Remarkably, READ features an intuitive design, Similarity as Points module (SasP), which can be seamlessly applied to $\texttt{<SEG>}$-like paradigms in a plug-and-play fashion. Also, extensive experiments have been conducted on ReasonSeg and RefCOCO(+/g) datasets. To validate whether READ suffers from catastrophic forgetting of previous skills after fine-tuning, we further assess its generation ability on an augmented FP-RefCOCO(+/g) dataset. All codes and models are publicly available at https://github.com/rui-qian/READ.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。