Lune

NeurIPS2024顶会

Attention Temperature Matters in ViT-Based Cross-Domain Few-Shot Learning

Yixiong Zou, Ran Ma, Yuhua Li, Ruixuan Li

摘要

Cross-domain few-shot learning (CDFSL) is proposed to transfer knowledge from large-scale source-domain datasets to downstream target-domain datasets with only a few training samples. However, Vision Transformer (ViT), as a strong backbone network to achieve many top performances, is still under-explored in the CDFSL task in its transferability against large domain gaps. In this paper, we find an interesting phenomenon of ViT in the CDFSL task: by simply multiplying a temperature (even as small as 0) to the attention in ViT blocks, the target-domain performance consistently increases, even though the attention map is downgraded to a uniform map. In this paper, we delve into this phenomenon for an interpretation. Through experiments, we interpret this phenomenon as a remedy for the ineffective target-domain attention caused by the query-key attention mechanism under large domain gaps. Based on it, we further propose a simple but effective method for the CDFSL task to boost ViT’s transferability by resisting the learning of query-key parameters and encouraging that of non-query-key ones. Experiments on four CDFSL datasets validate the rationale of our interpretation and method, showing we can consistently outperform state-of-the-art methods. Our codes are available at https://github.com/Zoilsen/Attn_Temp_CDFSL.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 17 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Emerging Properties in Self-Supervised Vision Transformers 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Emerging Properties in Self-Supervised Vision Transformers 引用了 Training data-efficient image transformers & distillation through attention
  • Multiscale Vision Transformers 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Multiscale Vision Transformers 引用了 Training data-efficient image transformers & distillation through attention
  • Multiscale Vision Transformers 引用了 Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet
  • Interpretable Cross-Domain Few-Shot Learning with Rectified Target-Domain Local Alignment 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Interpretable Cross-Domain Few-Shot Learning with Rectified Target-Domain Local Alignment 引用了 Mind the Discriminability Trap in Source-Free Cross-domain Few-shot Learning
  • Interpretable Cross-Domain Few-Shot Learning with Rectified Target-Domain Local Alignment 引用了 Reclaiming Lost Text Layers for Source-Free Cross-Domain Few-Shot Learning
  • Addressing Exacerbated Attention Sink for Source-Free Cross-Domain Few-Shot Learning 引用了 Mind the Discriminability Trap in Source-Free Cross-domain Few-shot Learning
  • Addressing Exacerbated Attention Sink for Source-Free Cross-Domain Few-Shot Learning 引用了 Reclaiming Lost Text Layers for Source-Free Cross-Domain Few-Shot Learning
  • Training data-efficient image transformers & distillation through attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet 引用了 Training data-efficient image transformers & distillation through attention
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper17

  1. Attention Smoothing Is All You Need For UnlearningSaleh Zare Zade, Xiangyu Zhou, Sijia Liu, Dongxiao ZhuICLR 2026 · 7 次引用
  2. Reclaiming Lost Text Layers for Source-Free Cross-Domain Few-Shot LearningZhenyu Zhang, Guangyao Chen, Yixiong Zou, Yuhua Li 等CVPR 2026 · 7 次引用
  3. Mind the Discriminability Trap in Source-Free Cross-domain Few-shot LearningZhenyu Zhang, Yixiong Zou, Yuhua Li, Ruixuan Li 等CVPR 2026 · 6 次引用
  4. Interpretable Cross-Domain Few-Shot Learning with Rectified Target-Domain Local AlignmentYaze Zhao, Yixiong Zou, Yuhua Li, Ruixuan LiCVPR 2026 · 5 次引用
  5. Addressing Exacerbated Attention Sink for Source-Free Cross-Domain Few-Shot LearningShuai Yi, Yixiong Zou, Yuhua Li, Ruixuan LiCVPR 2026 · 3 次引用

它引用的 Paper20

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  2. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
  3. Emerging Properties in Self-Supervised Vision TransformersMathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou 等ICCV 2021 · 8,921 次引用
  4. Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetLi Yuan, Yunpeng Chen, Tao Wang, Weihao Yu 等ICCV 2021 · 2,462 次引用
  5. Multiscale Vision TransformersHaoqi Fan, Bo Xiong, Karttikeya Mangalam, Yanghao Li 等ICCV 2021 · 1,611 次引用

相关 Paper

  1. A Closer Look at the CLS Token for Cross-Domain Few-Shot LearningYixiong Zou, Shuai Yi, Yuhua Li, Ruixuan LiNeurIPS 2024 · 40 次引用
  2. Random Registers for Cross-Domain Few-Shot LearningShuai Yi, Yixiong Zou, Yuhua Li, Ruixuan LiICML 2025
  3. Revisiting Continuity of Image Tokens for Cross-domain Few-shot LearningShuai Yi, Yixiong Zou, Yuhua Li, Ruixuan LiICML 2025
  4. Task-Adaptive Prompted Transformer for Cross-Domain Few-Shot LearningJiamin Wu, Xin Liu, Xiaotian Yin, Tianzhu Zhang 等AAAI 2024 · 14 次引用
  5. Flatten Long-Range Loss Landscapes for Cross-Domain Few-Shot LearningYixiong Zou, Yicong Liu, Yiman Hu, Yuhua Li 等CVPR 2024 · 17 次引用
黄昏的海面,两侧是细线勾勒的悬崖