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

Lincan Cai, Jingxuan Kang, Shuang Li, Wenxuan Ma, Binhui Xie +2 more
2/14/2026

No official code found. Best implementation: BIT-DA/ABS (27 stars, last commit 2025-06-27).

Abstract

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}}.

View on arXivView PDF

Code Implementations(1)

BIT-DA/ABSCommunity59%

[ICML2025] Official Code of From Local Details to Global Context: Advancing Vision-Language Models with Attention-Based Selection

270PythonMay 5, 20251 years ago

Similar Papers

Cite this paper

@article{cai2026from,
  title  = {From Local Details to Global Context: Advancing Vision-Language Models with Attention-Based Selection},
  author = {Lincan Cai and Jingxuan Kang and Shuang Li and Wenxuan Ma and Binhui Xie and Zhida Qin and Jian Liang},
  year   = {2026},
  eprint = {2505.13233},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2505.13233},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.13233.svg)](https://codeofpaper.com/paper/2505.13233)

Discussion