Abstract
Most few-shot learning (FSL) models utilize a flat Euclidean embedding space, which often fails to capture the complex hierarchical relationships inherent in real-world visual data. This paper introduces a novel framework that automatically generates task-aware curved (hyperbolic) embedding spaces. By adapting the geometry's curvature to the specific structural characteristics of each classification task, the model minimizes geometric distortion and enhances classification accuracy across multiple standard benchmarks.
Introduction
Few-shot learning aims to recognize novel categories from a very limited number of labeled examples. The standard paradigm involves learning an embedding space where images of the same class cluster together. However, the assumption of a Euclidean (flat) geometry is a significant limitation. Real-world data, such as biological taxonomies or facial manifolds, often possess non-Euclidean, hierarchical structures. Forcing these into a flat space leads to "geometric distortion."
Crucially, different tasks require different levels of curvature; a fixed geometry lacks the expressive power to handle diverse data distributions effectively. This paper addresses this bottleneck by proposing a model that dynamically generates the optimal curvature for each specific task.
Methods
The proposed architecture moves beyond fixed flat embeddings through three primary components:
- Feature Extractor: A standard backbone (e.g., ResNet12) extracts initial visual features from the images.
- Class-Curvature Generator (CCG): This core innovation predicts an optimal curvature ($c$) for each class by analyzing second-order statistics (feature correlations) using a factorized bilinear model.
- Hyperbolic Aggregation Network (HAN): In hyperbolic space, simple averaging is insufficient for finding class prototypes. The HAN utilizes intra-class and inter-class context to calculate weighted prototypes that are more robust to outliers.
The mathematical foundation is the Poincaré ball model, which represents hyperbolic geometry. The model employs "Möbius operations" for addition ($\oplus_c$) and scalar multiplication ($\otimes_c$) within this curved manifold.
Key Insights: Task-Specific Geometry
A central finding of this work is that optimal geometry is task-dependent. As shown in the experimental results, some tasks achieve peak performance in Euclidean space (curvature 0), while others require varying degrees of negative curvature to accurately represent their internal hierarchies.
Hyperbolic space is particularly suited for hierarchical data because its volume grows exponentially with the radius, mirroring the branching structure of trees. By capturing covariance through second-order statistics, the CCG provides the necessary signal to generate the appropriate curvature for each specific task. This flexibility allows the model to maintain high expressive power across diverse datasets.
Experimental Results
The model was evaluated on four standard FSL benchmarks: mini-ImageNet, tiered-ImageNet, CUB-200-2011 (CUB), and CIFAR-FS.
- State-of-the-Art Performance: The method achieved SOTA results, notably reaching 67.02% (1-shot) and 82.32% (5-shot) on mini-ImageNet, outperforming previous Euclidean-based methods like FEAT and DSN.
- Fine-Grained Classification: On the CUB dataset, the model showed a significant performance boost (74.66% 1-shot), indicating that curved spaces are highly effective for distinguishing between visually similar categories like bird species.
- Transductive Learning: In settings where the model could observe unlabeled query images as a group, accuracy further improved to 71.79% on mini-ImageNet 1-shot.
Conclusion and Future Work
While hyperbolic operations offer superior representational power, they introduce challenges such as numerical instability and increased computational complexity. To ensure stability, the authors constrained generated curvatures to the range $[0, 1]$ using a sigmoid function. Future research may explore other non-Euclidean geometries, such as spherical geometry for cyclical data, and extend curvature generation to domains like Natural Language Processing, where hierarchical structures are prevalent.
Summary updated