arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.08499cs.CVcs.AI
收藏

EfficientFSL: 通过仅查询微调提升视觉变换器的少样本分类

EfficientFSL: Enhancing Few-Shot Classification via Query-Only Tuning in Vision Transformers

Wenwen Liao, Hang Ruan, Jianbo Yu, Bing Song, YuansongWang, Xiaofeng Yang

AI总结:

EfficientFSL通过仅查询微调方法,在视觉变换器中实现少样本分类的高效优化,以极小的计算开销获得优异性能。

摘要:

大型模型如视觉变换器(ViTs)在少样本分类中表现出相对于较小架构如ResNet的显著优势,这归功于其强大的表示能力。然而,对这类大型模型进行微调需要大量的GPU内存和漫长的训练时间,使其在许多低资源的现实场景中不切实际。为此,我们提出了EfficientFSL,一种专门针对ViT的仅查询微调框架,能够在显著降低计算开销的同时实现竞争性的性能。EfficientFSL充分利用预训练模型中嵌入的知识和其强大的理解能力,仅使用极少数可调参数即可实现高分类精度。具体而言,我们引入了一个轻量级的可训练前向块,通过仅查询的方式合成任务特定的查询,从预训练模型的中间表示中提取信息性特征。我们进一步提出一个组合块,用于融合多层输出,增强特征表示的深度和鲁棒性。最后,一个支持-查询注意力块通过调整原型来缓解分布偏移,使原型与查询集分布对齐。在最少可调参数的情况下,EfficientFSL在四个领域内少样本数据集和六个跨领域数据集上实现了最先进的性能,证明了其在现实应用中的有效性。

英文摘要:

Large models such as Vision Transformers (ViTs) have demonstrated remarkable superiority over smaller architectures like ResNet in few-shot classification, owing to their powerful representational capacity. However, fine-tuning such large models demands extensive GPU memory and prolonged training time, making them impractical for many real-world low-resource scenarios. To bridge this gap, we propose EfficientFSL, a query-only fine-tuning framework tailored specifically for few-shot classification with ViT, which achieves competitive performance while significantly reducing computational overhead. EfficientFSL fully leverages the knowledge embedded in the pre-trained model and its strong comprehension ability, achieving high classification accuracy with an extremely small number of tunable parameters. Specifically, we introduce a lightweight trainable Forward Block to synthesize task-specific queries that extract informative features from the intermediate representations of the pre-trained model in a query-only manner. We further propose a Combine Block to fuse multi-layer outputs, enhancing the depth and robustness of feature representations. Finally, a Support-Query Attention Block mitigates distribution shift by adjusting prototypes to align with the query set distribution. With minimal trainable parameters, EfficientFSL achieves state-of-the-art performance on four in-domain few-shot datasets and six cross-domain datasets, demonstrating its effectiveness in real-world applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑