Introduction
Few-shot learning (FSL) aims to bridge the gap between human and machine intelligence by enabling models to recognize new object categories from only a handful of labeled examples. Most contemporary FSL research focuses on improving feature extractors—the neural network backbones that transform raw images into mathematical vectors. However, the choice of the distance metric used to compare these vectors is often treated as a secondary design choice.
Standard approaches typically rely on a single metric, such as Euclidean distance, Cosine similarity, or a learnable Relation Module. While each has its strengths, no single metric is universally optimal. Furthermore, simply combining these metrics often leads to "metric competition," where inconsistent gradients during training cause one metric's requirements to hinder the performance of another. This paper introduces AMTNet, a framework that moves beyond the single-distance paradigm toward an adaptive multi-distance perspective.
Methodology
The Adaptive Metrics Module (AMM)
The core of the proposed approach is the Adaptive Metrics Module (AMM). To resolve the conflict between different distance measures, the AMM decouples the fusion process into two distinct stages:
- Metric-Predictions Fusion: Instead of calculating a simple average of different distance scores, the model learns a dynamic scaling factor for each metric’s prediction. This allows the system to emphasize the most reliable metric for a specific task instance while maintaining overall stability.
- Metric-Losses Fusion: To address the gradient interference problem, the authors treat each distance metric as an independent sub-task. By utilizing task-dependent uncertainty, the model automatically weights the losses. If a specific metric produces noisy or uncertain results during a training episode, its influence on the total loss is automatically reduced, preventing it from negatively impacting the feature extractor's optimization.
AMTNet and Global Adaptive Loss
The full framework, AMTNet, integrates the AMM with two auxiliary self-supervised tasks designed to regularize the feature space: Global Classification (predicting classes from the entire training set) and Rotation Prediction (identifying if an image has been rotated by 0°, 90°, 180°, or 270°). To balance these diverse objectives, the authors developed a Global Adaptive Loss (GAL) based on multi-task collaborative learning principles, ensuring that the auxiliary tasks support rather than distract from the primary few-shot objective.
Experimental Setup
The model was evaluated on three standard few-shot learning benchmarks:
- miniImageNet: A subset of ImageNet containing 100 classes.
- tieredImageNet: A larger subset with 608 classes grouped into broader categories, providing a more challenging hierarchical structure.
- CIFAR-FS: A few-shot adaptation of the CIFAR-100 dataset.
To ensure fair comparison with existing state-of-the-art (SOTA) methods, the authors utilized standard backbones including Conv4, ResNet-12, and WRN-28 (Wide ResNet).
Key Results and Insights
Performance Gains
AMTNet demonstrated significant improvements over previous leaders in the field. On the miniImageNet 5-way 1-shot task, AMTNet using a WRN-28 backbone achieved 70.05% accuracy, notably outperforming established methods like DeepEMD (65.91%) and PSST (64.16%). These gains were consistent across all tested datasets, suggesting that the adaptive multi-distance approach is a robust, generalizable improvement for FSL.
The Value of Complementarity
Ablation studies revealed that the AMM alone provided a ~2% accuracy boost over a naive fusion of metrics. The authors observed that fixed metrics like Cosine and Euclidean distance are effective at creating clear margins between different classes, while learnable Relation modules are superior at capturing the internal structural nuances of specific instances. By using them in tandem through an adaptive framework, the model effectively covers the blind spots of individual metrics.
Regularization and Distillation
The inclusion of auxiliary tasks served as a powerful regularizer, forcing the feature extractor to learn semantic features that are not overfitted to the limited support set. Furthermore, the authors demonstrated the efficacy of Knowledge Distillation (KD) within this framework; a smaller ResNet-12 model could achieve near-SOTA performance when "taught" by a larger WRN-28 teacher model trained with the AMTNet architecture.
Conclusion
AMTNet demonstrates that the choice and fusion of distance metrics are as critical as the feature extractor itself in few-shot learning. By treating different metrics as collaborative tasks and using adaptive weighting to mitigate gradient interference, AMTNet sets a new standard for accuracy and robustness. Future research may explore the integration of additional self-supervised tasks, such as contrastive learning, to further refine the feature regularization process.
Summary updated