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

基于对比学习的Few-Shot分类

Few-Shot Classification with Contrastive Learning

Shenzhen University(深圳大学);Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳))

Zhanyuan Yang, Jinghua Wang, Yingying Zhu

摘要:

当前少样本学习(FSL)研究中广泛采用由预训练和元训练两个阶段组成的两阶段训练范式。这些方法中的许多使用自监督学习和对比学习来实现新的最先进的结果。然而,对比学习在FSL训练范式的两个阶段中的潜力仍然没有得到充分的开发。在本文中,我们提出了一种新的基于对比学习的框架,无缝集成对比学习到这两个阶段,以提高性能的Few-Shot分类。在预训练阶段,我们提出了一种自监督的对比损失,其形式为特征向量与特征图和特征图与特征图,它使用全局和局部信息来学习良好的初始表示。在元训练阶段,我们提出了一个跨视图情节训练机制,对同一情节的两个不同视图进行最近质心分类,并采用基于它们的距离缩放对比损失。这两种策略迫使模型克服观点之间的偏见,促进表征的可转移性。在三个基准数据集上的大量实验表明,我们的方法取得了有竞争力的结果。

英文摘要:

A two-stage training paradigm consisting of sequential pre-training and meta-training stages has been widely used in current few-shot learning (FSL) research. Many of these methods use self-supervised learning and contrastive learning to achieve new state-of-the-art results. However, the potential of contrastive learning in both stages of FSL training paradigm is still not fully exploited. In this paper, we propose a novel contrastive learning-based framework that seamlessly integrates contrastive learning into both stages to improve the performance of few-shot classification. In the pre-training stage, we propose a self-supervised contrastive loss in the forms of feature vector vs. feature map and feature map vs. feature map, which uses global and local information to learn good initial representations. In the meta-training stage, we propose a cross-view episodic training mechanism to perform the nearest centroid classification on two different views of the same episode and adopt a distance-scaled contrastive loss based on them. These two strategies force the model to overcome the bias between views and promote the transferability of representations. Extensive experiments on three benchmark datasets demonstrate that our method achieves competitive results.

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

↑