arXiv:2601.08499cs.CVcs.AI2026-01AAAI

用极少量可训练参数实现视觉Transformer在小样本分类中的高效微调

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

  • 仅通过可学习的查询模块生成任务相关特征,不更新主干网络
  • 在4个同域和6个跨域数据集上达到顶尖性能
  • 适合资源受限场景,特别适用于大模型小样本应用

大型模型如视觉变换器(ViT)凭借强大的表征能力,在小样本分类任务中表现远超ResNet等小型架构。然而,对这类大模型进行微调需要大量显存和训练时间,难以在真实低资源场景中应用。为此,我们提出EfficientFSL,一种专为ViT设计的仅查询微调框架,在显著降低计算开销的同时保持优异性能。该方法充分利用预训练模型的知识与理解能力,仅用极少可训练参数即可实现高分类准确率。具体地,我们引入轻量级可训练的Forward Block,以查询方式从预训练模型中间表示中提取信息;提出Combine Block融合多层输出,增强特征深度与鲁棒性;并设计Support-Query Attention Block,通过调整原型以匹配查询分布,缓解分布偏移。在四个同域与六个跨域小样本数据集上,EfficientFSL均达到最先进水平,验证了其在真实场景中的有效性。

原文摘要 · Abstract (English)

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.

小样本学习视觉Transformer高效微调查询机制

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。