Hybrid Consistency Training with Prototype Adaptation for Few-Shot Learning

Meng Ye, Xiao Lin, Giedrius Burachas, Ajay Divakaran, Yi YaoWorkshops @ CVPR 2022 · DOI

Abstract

Few-Shot Learning (FSL) aims to recognize novel classes with minimal labeled data, but often suffers from overfitting and unreliable class prototypes. We present a two-stage approach: Hybrid Consistency Training (HCT) and Calibrated Iterative Prototype Adaptation (CIPA). HCT improves feature representations by interpolating between weakly and strongly augmented samples across hidden layers, creating a smoother feature manifold. CIPA refines class prototypes during inference by leveraging unlabeled query data through iterative pseudo-labeling and distribution calibration. Our method achieves state-of-the-art results on standard benchmarks, including a 76.94% accuracy on 1-shot mini-ImageNet, and demonstrates significant robustness in cross-domain scenarios.

Introduction

Few-Shot Learning (FSL) remains a challenging task due to the semantic gap between training and testing distributions and the extreme sparsity of labeled data. Traditional meta-learning approaches often involve complex optimization loops that can be difficult to tune. This work proposes a simpler yet more effective strategy focusing on robust representation learning and transductive inference to bridge the gap between seen and novel classes.

Methodology

The proposed framework consists of two main components: Hybrid Consistency Training (HCT) for the training stage and Calibrated Iterative Prototype Adaptation (CIPA) for the testing stage.

Hybrid Consistency Training (HCT)

HCT is a regularization technique that extends the "Mixup" paradigm. Unlike standard Mixup which interpolates between original images, HCT mixes a weakly augmented image with a strongly augmented version of another image. This interpolation occurs at a randomly selected hidden layer (manifold mixup) rather than just the input layer. By forcing the model to maintain consistency between "safe" and "distorted" features across all layers, HCT encourages a smoother, more flattened feature manifold that generalizes significantly better to unseen classes.

Comparison of standard MixUp and the proposed Hybrid Consistency Training (HCT).

Calibrated Iterative Prototype Adaptation (CIPA)

During inference, the model faces the "noisy prototype" problem where the few available support samples do not accurately represent the true class distribution. CIPA addresses this using a transductive approach. First, features are calibrated using power transformation, centering (zero-mean), and L2 normalization to align the support and query distributions. Then, the class prototypes are iteratively refined by assigning pseudo-labels to the unlabeled query set and recalculating the prototypes based on both support and query information.

Overview of the training stage using HCT and the test stage using CIPA.

Experimental Evaluation

The model was evaluated on standard FSL benchmarks including mini-ImageNet, tiered-ImageNet, CIFAR-FS, FC100, and CUB. A key test was the cross-domain task (mini-ImageNet $\rightarrow$ CUB), which measures the model's ability to generalize across significantly different visual domains (general objects to specific bird species).

Key Results

  • State-of-the-Art Performance: On mini-ImageNet (1-shot), the method reached 76.94% accuracy, a significant jump over previous state-of-the-art methods like LaplacianShot (~72.11%).
  • Cross-Domain Robustness: The method showed a 7% to 8% improvement over existing baselines in cross-domain tasks, highlighting the robustness of the HCT-learned features.
  • Ablation Success: Results confirmed that strong augmentation in HCT and feature calibration in CIPA are critical components. For instance, centering the features alone accounted for a ~3% jump in accuracy, suggesting that distribution shift is a primary hurdle in FSL.

Conclusion

Hybrid Consistency Training and Prototype Adaptation provide a powerful combination for Few-Shot Learning. By improving the underlying feature manifold and adapting prototypes to the local test distribution, the proposed method achieves superior generalization. While CIPA introduces some computational overhead during inference due to its iterative nature, its performance gains—especially in difficult cross-domain settings—make it a compelling approach for robust and practical Few-Shot Learning applications.

Summary updated

BibTeX
@inproceedings{ye2022hybrid,
  author = {Meng Ye and Xiao Lin and Giedrius Burachas and Ajay Divakaran and Yi Yao},
  title = {{Hybrid Consistency Training with Prototype Adaptation for Few-Shot Learning}},
  booktitle = {Workshops @ CVPR},
  year = {2022},
  doi = {10.1109/cvprw56347.2022.00308},
}
Figure