arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.09995cs.CV
收藏

用于少样本学习的掩模引导视觉Transformer(MG-ViT)

Mask-guided Vision Transformer (MG-ViT) for Few-Shot Learning

University of Electronic Science and Technology of China(电子科技大学);University of Georgia(佐治亚大学);University of Texas at Arlington(德克萨斯大学阿灵顿分校);Northwestern Polytechnical University(西北工业大学)

Yuzhong Chen, Zhenxiang Xiao, Lin Zhao, Lu Zhang, Haixing Dai, David Weizhong Liu, Zihao Wu, Changhe Li, Tuo Zhang, Changying Li, Dajiang Zhu, Tianming Liu, Xi Jiang

摘要:

使用少量数据进行学习具有挑战性,但在标记数据有限且成本高昂的各种应用场景中通常是不可避免的。近年来,少样本学习(FSL)由于能够将先验知识推广到只包含少量样本的新任务而受到越来越多的关注。然而,对于数据密集型模型,如视觉Transformer(ViT),目前的微调FSL方法是低效的知识推广,从而退化下游任务的性能。在本文中,我们提出了一种新的掩模引导的视觉Transformer(MG-ViT),以实现一个有效的和高效的FSL的ViT模型。其核心思想是在图像块上应用掩模,以筛选出与任务无关的图像块,并引导ViT在FSL过程中专注于与任务相关且具有区分性的图像块。特别是,MG-ViT只引入了一个额外的掩码操作和一个剩余连接,使得参数能够从预先训练的ViT中继承,而无需任何其他成本。为了最佳地选择具有代表性的Few-Shot样本,我们还包括基于主动学习的样本选择方法,以进一步提高基于MG-ViT的FSL的泛化能力。我们在Agri-ImageNet分类任务和ACFR苹果检测任务上评估了所提出的MG-ViT,并以梯度加权类激活映射(Grad-CAM)作为掩码。实验结果表明,与一般的基于微调的ViT模型相比,MG-ViT模型显著提高了性能,为FSL的数据密集型和大规模深度学习模型的推广提供了新的见解和具体方法。

英文摘要:

Learning with little data is challenging but often inevitable in various application scenarios where the labeled data is limited and costly. Recently, few-shot learning (FSL) gained increasing attention because of its generalizability of prior knowledge to new tasks that contain only a few samples. However, for data-intensive models such as vision transformer (ViT), current fine-tuning based FSL approaches are inefficient in knowledge generalization and thus degenerate the downstream task performances. In this paper, we propose a novel mask-guided vision transformer (MG-ViT) to achieve an effective and efficient FSL on ViT model. The key idea is to apply a mask on image patches to screen out the task-irrelevant ones and to guide the ViT to focus on task-relevant and discriminative patches during FSL. Particularly, MG-ViT only introduces an additional mask operation and a residual connection, enabling the inheritance of parameters from pre-trained ViT without any other cost. To optimally select representative few-shot samples, we also include an active learning based sample selection method to further improve the generalizability of MG-ViT based FSL. We evaluate the proposed MG-ViT on both Agri-ImageNet classification task and ACFR apple detection task with gradient-weighted class activation mapping (Grad-CAM) as the mask. The experimental results show that the MG-ViT model significantly improves the performance when compared with general fine-tuning based ViT models, providing novel insights and a concrete approach towards generalizing data-intensive and large-scale deep learning models for FSL.

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

↑