Focus Your Attention when Few-Shot Classification

被引:0
|
作者
Wang, Haoqing [1 ]
Jie, Shibo [1 ]
Deng, Zhi-Hong [1 ]
机构
[1] Peking Univ, Sch Intelligence Sci & Technol, Beijing, Peoples R China
关键词
NEURAL-NETWORKS;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Since many pre-trained vision transformers emerge and provide strong representation for various downstream tasks, we aim to adapt them to few-shot image classification tasks in this work. The input images typically contain multiple entities. The model may not focus on the class-related entities for the current few-shot task, even with fine-tuning on support samples, and the noise information from the class-independent entities harms performance. To this end, we first propose a method that uses the attention and gradient information to automatically locate the positions of key entities in the support images, denoted as position prompts. Then we employ the cross-entropy loss between their many-hot presentation and the attention logits to optimize the model to focus its attention on the key entities during fine-tuning. This ability then can generalize to the query samples. Our method is applicable to different vision transformers (e.g., columnar or pyramidal ones), and also to different pre-training ways (e.g., single-modal or vision-language pre-training). Extensive experiments show that our method can improve the performance of full or parameter-efficient fine-tuning methods on few-shot tasks. Code is available at https://github.com/Haoqing-Wang/FORT.
引用
收藏
页数:19
相关论文
共 50 条
  • [21] Quantum Few-Shot Image Classification
    Huang, Zhihao
    Shi, Jinjing
    Li, Xuelong
    IEEE TRANSACTIONS ON CYBERNETICS, 2025, 55 (01) : 194 - 206
  • [22] Few-Shot Classification with Contrastive Learning
    Yang, Zhanyuan
    Wang, Jinghua
    Zhu, Yingying
    COMPUTER VISION, ECCV 2022, PT XX, 2022, 13680 : 293 - 309
  • [23] Generalized Few-Shot Node Classification
    Xu, Zhe
    Ding, Kaize
    Wang, Yu-Xiong
    Liu, Huan
    Tong, Hanghang
    2022 IEEE INTERNATIONAL CONFERENCE ON DATA MINING (ICDM), 2022, : 608 - 617
  • [24] Survey of Few-Shot Relation Classification
    Liu, Tao
    Ke, Zunwang
    Wushour
    Computer Engineering and Applications, 2023, 59 (09) : 1 - 2
  • [25] Label Hallucination for Few-Shot Classification
    Jian, Yiren
    Torresani, Lorenzo
    THIRTY-SIXTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE / THIRTY-FOURTH CONFERENCE ON INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE / THE TWELVETH SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2022, : 7005 - 7014
  • [26] Relational Embedding for Few-Shot Classification
    Kang, Dahyun
    Kwon, Heeseung
    Min, Juhong
    Cho, Minsu
    2021 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV 2021), 2021, : 8802 - 8813
  • [27] Rethinking Generalization in Few-Shot Classification
    Hiller, Markus
    Ma, Rongkai
    Harandi, Mehrtash
    Drummond, Tom
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 35 (NEURIPS 2022), 2022,
  • [28] On the Importance of Distractors for Few-Shot Classification
    Das, Rajshekhar
    Wang, Yu-Xiong
    Moura, Jose M. F.
    2021 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV 2021), 2021, : 9010 - 9020
  • [29] Few-shot image classification algorithm based on attention mechanism and weight fusion
    Meng X.
    Wang X.
    Yin S.
    Li H.
    Journal of Engineering and Applied Science, 2023, 70 (01):
  • [30] Multi-scale Few-Shot Classification Model Based on Attention Mechanism
    Xu, Yi
    Zhu, Qisheng
    Pan, ZhengYue
    Liu, Yin
    ADVANCED INTELLIGENT COMPUTING TECHNOLOGY AND APPLICATIONS, PT I, ICIC 2024, 2024, 14875 : 476 - 487