Addressing Exacerbated Attention Sink for Source-Free Cross-Domain Few-Shot Learning

Shuai Yi, Yixiong Zou, Yuhua Li, Ruixuan Li
5/25/2026
3 citations
cs.CV
transformer-attention

Official code: shuaiyi308/TIR (1 star, Python, last commit 2026-07-27).

Abstract

Vision-language models (VLMs) like CLIP have shown impressive generalization capabilities, yet their potential for Cross-Domain Few-Shot Learning (CDFSL) remains underexplored, where the model needs to transfer source-domain information to target domains with scarce training data. While the attention sink phenomenon has been observed in VLMs for certain tasks, its role in CDFSL scenarios has not been studied.

Show full abstract

In this paper, we uncover a critical issue overlooked by prior works: standard target-domain few-shot fine-tuning in CDFSL significantly exacerbates the attention sink problem, leading to poor discriminability across classes. To understand this phenomenon, through extensive experiments, we interpret it as the model's shortcut learning for domain adaptation: to overcome the huge domain gap between the source and target domains, the model shows a high tendency to push tokens that are initially closer to target-domain classes (i.e., simple tokens) to be even closer to these classes, exacerbating the attention sink and wasting the capability of learning other discriminative but initially further tokens (i.e., hard tokens). To address this, we propose a novel approach to dynamically re-weight tokens according to their relevance with target-domain classes during the target-domain finetuning, which explicitly suppresses the model's reliance on these simple tokens and enhances the learning of hard tokens, reducing sink tokens and enhancing discriminability. Extensive experiments on four benchmark datasets validate the rationale of our method, demonstrating new state-of-the-art performance. Our codes are available at https://github.com/shuaiyi308/TIR.

View on arXivView PDF

Code Implementations(1)

shuaiyi308/TIROfficial100%
12PythonMar 24, 20264 months ago

Similar Papers

Cite this paper

@article{yi2026addressing,
  title  = {Addressing Exacerbated Attention Sink for Source-Free Cross-Domain Few-Shot Learning},
  author = {Shuai Yi and Yixiong Zou and Yuhua Li and Ruixuan Li},
  year   = {2026},
  eprint = {2605.25799},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.25799v1},
  journal = {CVPR 2026 2026}
}

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/2605.25799.svg)](https://codeofpaper.com/paper/2605.25799)

Discussion