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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Cai, Lincan, Kang, Jingxuan, Li, Shuang, Ma, Wenxuan, Xie, Binhui, Qin, Zhida, Liang, Jian
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910953693511680
author Cai, Lincan
Kang, Jingxuan
Li, Shuang
Ma, Wenxuan
Xie, Binhui
Qin, Zhida
Liang, Jian
author_facet Cai, Lincan
Kang, Jingxuan
Li, Shuang
Ma, Wenxuan
Xie, Binhui
Qin, Zhida
Liang, Jian
contents 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}}.
format Preprint
id arxiv_https___arxiv_org_abs_2505_13233
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle From Local Details to Global Context: Advancing Vision-Language Models with Attention-Based Selection
Cai, Lincan
Kang, Jingxuan
Li, Shuang
Ma, Wenxuan
Xie, Binhui
Qin, Zhida
Liang, Jian
Computer Vision and Pattern Recognition
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}}.
title From Local Details to Global Context: Advancing Vision-Language Models with Attention-Based Selection
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2505.13233