Abstract
Few-shot learning (FSL) aims to recognize novel objects from extremely limited supervision. Current approaches often struggle to balance global structural information with local discriminative details, especially when classes are visually similar. This paper proposes the Inverted Pyramid Network (IPN), a hierarchical framework that mimics the human "coarse-to-fine" cognition process. IPN combines a global Contextual Memory Network (CCMNet) for initial class-level inference with a local fine-grained calibration stage for ambiguous cases. Evaluated on miniImageNet and tieredImageNet, IPN achieves state-of-the-art accuracy, demonstrating the effectiveness of reliability-driven hierarchical feature processing.
1. Introduction
The primary challenge in few-shot learning is generalizing from a sparse support set to a query image. While deep learning models typically extract either global features (capturing overall shape) or local features (capturing textures), they often lack a unified mechanism to use both effectively. Humans, conversely, employ a hierarchical strategy: we identify objects by their general appearance first and only zoom in on specific details when faced with visually similar categories (e.g., distinguishing between two bird species). This paper addresses this gap by introducing a "coarse-to-fine" framework that triggers detailed local analysis only when global predictions are uncertain.
2. Methodology: The Inverted Pyramid Network
The IPN architecture consists of two primary stages designed to process visual information hierarchically.
2.1 Global Stage: Contextual Memory Network (CCMNet)
The first stage utilizes CCMNet to learn the "context" of a class. Unlike traditional metric-based methods that average support features into a single prototype, CCMNet treats the support set as a sequence. It employs a modified Bidirectional Gated Recurrent Unit (BiGRU) with skip links to process these samples, ensuring that early information is not lost and long-term dependencies are captured. This results in a "relation embedding" that reflects how a query image relates to the entire support sequence.
2.2 Local Stage: Fine-grained Calibration
When the global stage's prediction reliability—measured by the margin between the top two class probabilities—falls below a threshold $\tau$, the model triggers the local stage. This stage re-examines images at the patch level, performing a K-nearest neighbor search between query and support patches to calculate a more precise similarity score. This "fine-grained calibration" helps resolve ties between visually similar classes.
3. Experiments and Results
The IPN was evaluated using a Wide Residual Network (WRN-28) backbone on two major benchmarks: miniImageNet and tieredImageNet.
3.1 Performance Comparison
As shown in the results table, IPN significantly outperforms existing optimization-based, generation-based, and metric-based methods. On miniImageNet, it achieves 67.42% accuracy in the 1-shot setting and 83.98% in the 5-shot setting.
3.2 Key Insights
- Ablation Success: Removing the local calibration stage leads to a performance drop of up to 5.6%, validating the importance of the coarse-to-fine strategy.
- Feature Discriminability: t-SNE visualizations confirm that the relation embeddings learned by CCMNet form tighter and more distinct clusters compared to baseline methods, facilitating better classification.
4. Conclusion
The Inverted Pyramid Network provides a robust framework for few-shot learning by integrating global contextual memory with local fine-grained calibration. By mimicking human hierarchical perception, IPN achieves superior generalization on standard benchmarks. Future work may involve optimizing the reliability threshold dynamically and extending this paradigm to more complex tasks like few-shot object detection.
Summary updated