Abstract
Few-shot learning (FSL) aims to recognize novel categories from a limited number of labeled examples. Traditional methods often rely on cross-entropy pretraining, which can lead to feature spaces that over-specialize on base classes and discard fine-grained details necessary for generalization. We present Partner-Assisted Learning (PAL), a two-stage training framework that leverages a "Partner Encoder" trained via supervised contrastive learning to guide a "Main Encoder." By aligning the Main Encoder's features and logits with those of the Partner, PAL creates a representation space that is both discriminative for classification and flexible for novel class recognition. PAL achieves state-of-the-art performance across multiple benchmarks, including miniImageNet and tieredImageNet.
Introduction
Deep learning models typically require vast amounts of labeled data, whereas humans can learn new concepts from just a few instances. Few-Shot Learning (FSL) seeks to bridge this gap by training a feature extractor on a large "base" dataset that generalizes to "novel" classes with minimal supervision.
A significant challenge in FSL is the reliance on "hard-anchors"—fixed class labels used in standard cross-entropy training. While effective for base class discrimination, this approach often fails to capture the relational nuances between classes, which are vital for identifying unseen categories. Partner-Assisted Learning (PAL) addresses this by introducing "soft-anchors" derived from a contrastive learning objective, preserving elemental representations that facilitate better generalization.
Methodology
PAL decomposes the training process into two distinct stages to balance discriminative power with representation flexibility.
Stage 1: Partner Encoder Training
The Partner Encoder ($f_P$) is trained using Supervised Contrastive Learning (SupCT). Unlike standard classification, SupCT encourages the model to cluster features of the same class while pushing different classes apart in the embedding space. This process generates "soft-anchors" that capture the inherent visual similarities between different categories (e.g., recognizing that a dog is more similar to a wolf than a car).
Stage 2: Main Encoder Training
The Main Encoder ($f_M$), which is the final model used for inference, is trained on a standard classification task while being regularized by the fixed Partner Encoder. This "assistance" is implemented through two alignment constraints:
- Logit-Level Alignment: The Main Encoder is encouraged to match the probability distributions (soft labels) produced by the Partner Encoder.
- Feature-Level Alignment: The Main Encoder's feature representations are regularized to remain close to the "soft-anchor" features of the Partner.
By combining these objectives, the Main Encoder learns a feature space that is both compact for the base classes and rich enough to accommodate novel ones.
Experiments and Results
We evaluated PAL on four standard FSL benchmarks: miniImageNet, tieredImageNet, CIFAR-FS, and FC100. These datasets vary in size and hierarchical complexity, providing a robust test for generalization.
Performance Comparison
PAL consistently outperforms existing state-of-the-art (SOTA) methods. On the miniImageNet 1-shot task, PAL achieved an accuracy of 69.37%, a significant improvement over previous strong baselines like RFS-distill (64.82%). Similar gains were observed in the 5-shot setting and across other datasets.
Ablation Studies
Ablation experiments confirmed that the combination of logit-level and feature-level alignment is critical. The "partner" provides essential guidance at both high-level conceptual stages and low-level feature representation stages, preventing the Main Encoder from over-fitting to the specific labels of the base dataset.
Conclusion
Partner-Assisted Learning (PAL) introduces a novel way to regularize few-shot learners by using a contrastively-trained partner. This approach preserves rich relational information that standard classification losses often discard. While PAL requires a two-stage training process, its superior performance on diverse benchmarks demonstrates the value of "soft-anchor" guidance. Future work may explore end-to-end co-training strategies and the application of PAL to cross-domain few-shot learning tasks.
Summary updated