Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Prototype Learning with Augmented Embeddings for Few-Shot Learning

Yizhao Gao, Nanyi Fei|arXiv (Cornell University)|Jan 23, 2021
Domain Adaptation and Few-Shot LearningComputer Science11 citations
TL;DR

This paper proposes Contrastive Prototype Learning with Augmented Embeddings (CPLAE), a novel few-shot learning framework that enhances feature learning by combining augmented embeddings (AEs) and a support-set prototype-centered contrastive loss. By using class prototypes as anchors and integrating multiple augmented views of each sample, CPLAE improves embedding quality and achieves state-of-the-art performance on standard benchmarks.

ABSTRACT

Most recent few-shot learning (FSL) methods are based on meta-learning with episodic training. In each meta-training episode, a discriminative feature embedding and/or classifier are first constructed from a support set in an inner loop, and then evaluated in an outer loop using a query set for model updating. This query set sample centered learning objective is however intrinsically limited in addressing the lack of training data problem in the support set. In this paper, a novel contrastive prototype learning with augmented embeddings (CPLAE) model is proposed to overcome this limitation. First, data augmentations are introduced to both the support and query sets with each sample now being represented as an augmented embedding (AE) composed of concatenated embeddings of both the original and augmented versions. Second, a novel support set class prototype centered contrastive loss is proposed for contrastive prototype learning (CPL). With a class prototype as an anchor, CPL aims to pull the query samples of the same class closer and those of different classes further away. This support set sample centered loss is highly complementary to the existing query centered loss, fully exploiting the limited training data in each episode. Extensive experiments on several benchmarks demonstrate that our proposed CPLAE achieves new state-of-the-art.

Motivation & Objective

  • Address the fundamental limitation in few-shot learning (FSL) where meta-learning methods based on query-centered losses fail to fully utilize scarce support set samples.
  • Overcome the data scarcity problem in support sets by introducing a new learning objective centered on class prototypes rather than query samples.
  • Improve feature generalization by constructing augmented embeddings (AEs) that combine original and augmented feature representations.
  • Integrate contrastive learning into FSL with a novel supervised contrastive loss that uses prototypes as anchors and query samples as positives/negatives.
  • Demonstrate that combining query-centered and support-set prototype-centered losses leads to better class separation and improved few-shot generalization.

Proposed method

  • Construct augmented embeddings (AEs) by concatenating feature embeddings from an original image and its three data-augmented versions (e.g., horizontal flip, vertical flip, rotation).
  • Use a projection head to map the augmented embeddings into a latent space for contrastive learning, improving representation quality.
  • Design a novel contrastive prototype learning (CPL) loss where each class prototype acts as an anchor, query samples of the same class are positives, and others are negatives.
  • Combine the proposed CPL loss with the standard query-centered loss (e.g., from ProtoNets) to jointly optimize both objectives in a multi-objective learning scheme.
  • Apply shuffling of embedding orders during training to prevent shortcut alignment and enhance robustness in the contrastive learning objective.
  • Train the model using episodic meta-learning, where each episode contains $n$ few-shot classes and $k$ support samples per class, with the final evaluation on query sets.

Experimental results

Research questions

  • RQ1Can a prototype-centered contrastive loss improve few-shot learning performance by better utilizing limited support set data?
  • RQ2How does integrating augmented embeddings (AEs) from multiple data augmentations affect feature representation and model generalization in FSL?
  • RQ3Does combining a prototype-centered contrastive loss with a query-centered loss lead to better clustering and classification performance than using either loss alone?
  • RQ4What is the contribution of the projection head and shuffling strategy in the proposed contrastive learning objective for FSL?
  • RQ5Is the proposed CPLAE framework effective across diverse few-shot learning benchmarks and data augmentation strategies?

Key findings

  • CPLAE achieves new state-of-the-art performance on three standard few-shot learning benchmarks: miniImageNet, tieredImageNet, and CIFAR-FS.
  • The proposed contrastive prototype learning (CPL) loss significantly outperforms alternative contrastive and self-supervised losses, such as pretext task prediction and unsupervised contrastive learning.
  • The use of augmented embeddings (AEs) improves feature clustering and generalization, as shown by clearer data distributions in UMAP visualizations.
  • The combination of prototype-based anchors and a projection head in the contrastive loss leads to better intra-class compactness and inter-class separability.
  • Shuffling of embedding orders during training is essential for effective contrastive learning, as models without shuffling underperform.
  • Visualization results confirm that the augmented embedding space achieves the clearest clustering structure, demonstrating the effectiveness of implicit alignment across augmented views.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.