Abstract
Few-shot learning is a challenging task that aims at training a classifier for unseen classes with only a few training examples. The main difficulty of few-shot learning lies in the lack of intra-class diversity within insufficient training samples. To alleviate this problem, we propose a novel generative framework, Diversity Transfer Network (DTN), that learns to transfer latent diversities from known categories and composite them with support features to generate diverse samples for novel categories in feature space. The learning problem of the sample generation (i.e., diversity transfer) is solved via minimizing an effective meta-classification loss in a single-stage network, instead of the generative loss in previous works. Besides, an organized auxiliary task co-training over known categories is proposed to stabilize the meta-training process of DTN. We perform extensive experiments and ablation studies on three datasets, i.e., miniImageNet, CIFAR100 and CUB. The results show that DTN, with single-stage training and faster convergence speed, obtains the state-of-the-art results among the feature generation based few-shot learning methods.
Introduction
Deep learning models typically require vast amounts of labeled data to achieve high performance. However, in Few-Shot Learning (FSL), a model must generalize to new categories after seeing only one or five examples. The fundamental bottleneck is the lack of intra-class diversity: a single image of a bird cannot capture the full range of its possible poses, lighting conditions, or backgrounds. Consequently, standard models often overfit the specific features of the limited support set.
To address this, we propose the Diversity Transfer Network (DTN). Unlike previous generation-based methods that often rely on complex multi-stage training or reconstruction losses, DTN "hallucinates" new features by transferring diversity from well-sampled base classes to novel classes. By extracting the difference (diversity) between pairs of images in known categories and applying those offsets to a single example of a new category, the model builds a more robust representation.
Proposed Method
Diversity Transfer Network (DTN)
The DTN framework integrates feature extraction, sample generation, and classification into a single-stage network. The core idea is that the way an object varies (e.g., pose or background) is often consistent across different categories. The difference between "Dog A sitting" and "Dog A running" can be applied to "Wolf B sitting" to imagine "Wolf B running."
The process involves:
- Triplet Input: The generator receives a "support" feature from a novel class and a "reference pair" from a known base class.
- Latent Space Offsets: These features are mapped into a latent space where the difference (offset) between the reference pair is calculated. This offset represents a specific type of intra-class diversity.
- Feature Composition: This offset is added to the support feature to generate a new, "hallucinated" feature for the novel class.
- Meta-Classification Loss: Instead of using a reconstruction loss to ensure the generated feature looks "real," DTN is optimized directly to improve classification accuracy. If a generated feature helps the Meta-Classifier distinguish the novel class from others, it is considered a high-quality sample.
Organized Auxiliary Task Co-Training (OAT)
Meta-learning is often unstable and sensitive to initialization. To mitigate this, we introduce Organized Auxiliary task co-Training (OAT). While many researchers use auxiliary tasks (like standard multi-class classification on base classes) to learn general features, OAT replaces random task selection with a structured curriculum. It begins with a heavy emphasis on simpler auxiliary training and gradually shifts the weight toward complex meta-learning tasks. This strategy leads to faster convergence and more stable results compared to stochastic approaches.
Experiments and Results
We evaluated DTN on three standard benchmarks: miniImageNet, CIFAR100, and CUB (Caltech-UCSD Birds-200-2011). The CUB dataset is particularly notable as a fine-grained task where diversity transfer is crucial for distinguishing subtle inter-class differences.
Performance Comparison
DTN achieves state-of-the-art performance across these benchmarks, particularly among feature-generation-based methods.
As shown in the results, Deep DTN (utilizing a ResNet-12 backbone) achieves 63.45% accuracy on the miniImageNet 5-way 1-shot task, significantly outperforming previous generation-based methods such as $\Delta$-encoder (59.9%) and SalNet (62.22%). On the fine-grained CUB dataset, DTN reached 72.0% (1-shot) and 85.1% (5-shot), demonstrating that diversity transfer is effective even when class differences are subtle.
Conclusion
The Diversity Transfer Network provides an efficient, single-stage solution to the data scarcity problem in few-shot learning. By leveraging transferable diversity from base classes and optimizing directly for classification, DTN creates stable and useful feature representations for novel categories. While the current model assumes linear combinations in latent space are sufficient, future work may explore more complex non-linear transformations and the application of DTN to other low-data regimes like semi-supervised or active learning.
Summary updated