arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.13233cs.CV
收藏

从局部细节到全局上下文:用基于注意力的选择推进视觉语言模型

From Local Details to Global Context: Advancing Vision-Language Models with Attention-Based Selection

Beijing Institute of Technology(北京理工大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Beihang University(北京航空航天大学);Kuaishou Technology(快手科技)

Lincan Cai, Jingxuan Kang, Shuang Li, Wenxuan Ma, Binhui Xie, Zhida Qin, Jian Liang

AI总结:

针对视觉增强随机性导致视觉语言模型全局语义理解受损的问题,提出无需训练的ABS方法,结合注意力引导裁剪、特征选择与软匹配技术,在分布外泛化和零样本分类任务上达到SOTA,性能可比肩少样本和测试时自适应方法。

摘要:

预训练视觉语言模型(VLM),例如CLIP,在下游任务上展现出出色的零样本能力。此前的研究强调了随机裁剪等视觉增强技术与大语言模型(LLM)生成的细粒度类别描述对齐的关键作用,这类技术通过整合多视角信息显著提升了零样本性能。然而,这些增强方法固有的随机性不可避免地会引入背景伪影,导致模型过度关注局部细节,损害全局语义理解。为解决这些问题,我们提出了从局部细节到全局上下文的基于注意力的选择(Attention-Based Selection,ABS)方法,该方法在原始图像和特征空间中都应用注意力引导裁剪,通过策略性特征选择补充全局语义信息。此外,我们引入了一种软匹配技术,可有效筛选LLM描述以实现更好的对齐。ABS在分布外泛化和零样本分类任务上取得了当前最优性能。值得注意的是,ABS无需训练,甚至能与少样本和测试时自适应方法相媲美。我们的代码可在https://github.com/BIT-DA/ABS获取。

英文摘要:

Pretrained vision-language models (VLMs), e.g., CLIP, demonstrate impressive zero-shot capabilities on downstream tasks. Prior research highlights the crucial role of visual augmentation techniques, like random cropping, in alignment with fine-grained class descriptions generated by large language models (LLMs), significantly enhancing zero-shot performance by incorporating multi-view information. However, the inherent randomness of these augmentations can inevitably introduce background artifacts and cause models to overly focus on local details, compromising global semantic understanding. To address these issues, we propose an \textbf{A}ttention-\textbf{B}ased \textbf{S}election (\textbf{ABS}) method from local details to global context, which applies attention-guided cropping in both raw images and feature space, supplement global semantic information through strategic feature selection. Additionally, we introduce a soft matching technique to effectively filter LLM descriptions for better alignment. \textbf{ABS} achieves state-of-the-art performance on out-of-distribution generalization and zero-shot classification tasks. Notably, \textbf{ABS} is training-free and even rivals few-shot and test-time adaptation methods. Our code is available at \href{https://github.com/BIT-DA/ABS}{\textcolor{darkgreen}{https://github.com/BIT-DA/ABS}}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑