Introduction
Few-shot learning (FSL) remains a significant challenge in computer vision due to the extreme scarcity of labeled data. While humans effortlessly categorize new objects by leveraging a lifetime of structured prior knowledge, most FSL algorithms rely on learning implicit features from limited data, often ignoring explicit human knowledge such as class hierarchies. This paper introduces HyperKT, a framework designed to embed these hierarchies into hyperbolic space to facilitate more effective knowledge transfer from common to rare classes.
The Challenge of Hierarchical Representation
A fundamental issue in FSL is how to represent the relationships between categories. For instance, a "Husky" is a "Dog," which is an "Animal." While some methods attempt to use these hierarchies, they typically treat them as flat graphs in Euclidean space. This approach suffers from two major flaws:
- Structural Mismatch: Class hierarchies are inherently tree-like, not arbitrary graphs.
- The "Room" Problem: In Euclidean space, volume grows linearly with radius. Conversely, in a tree structure, the number of nodes grows exponentially with depth. Attempting to map an exponential tree into a linear Euclidean space results in high distortion, as the model literally runs out of "room" to accurately represent semantic distances.
The HyperKT Framework
To address these limitations, the authors propose Hyperbolic Knowledge Transfer (HyperKT). By operating in the Poincaré ball—a model of hyperbolic space—the framework leverages a geometry where volume grows exponentially with radius, perfectly matching the growth of tree structures.
The HyperKT architecture consists of four primary components:
- Hyperbolic Representation Learning Module (HRLM): Maps standard CNN-extracted image features into hyperbolic space via an exponential map, followed by refinement through hyperbolic fully connected layers.
- Hyperbolic Prototype Inference Module (HPIM): Utilizes a hyperbolic Graph Convolutional Network (GCN) to infer class prototypes based on the hierarchy, even for classes with minimal samples.
- Hierarchical Classification Loss: Encourages the model to recognize superclasses (e.g., "Cat" and "Animal") alongside specific leaf classes (e.g., "Persian Cat").
- Relation Reconstruction Loss: Ensures that distances in the embedding space faithfully reflect distances within the real-world hierarchy.
Discussion: Why Hyperbolic Geometry?
Hyperbolic geometry serves as a "cheat code" for hierarchical data. Because its volume grows exponentially, it provides nearly infinite room to embed branching trees with minimal distortion. This allows HyperKT to preserve semantic distances between categories perfectly. Furthermore, by using superclasses as "anchors," the model learns robust, transferable features; knowing the general characteristics of an "Animal" provides a significant advantage when learning a specific new species.
Experimental Evaluation
HyperKT was evaluated on three standard FSL benchmarks: miniImagenet, tieredImagenet, and CIFAR-FS. The model achieved state-of-the-art (SOTA) results, with the most pronounced gains observed in 1-shot tasks where visual data is most limited.
- miniImagenet (1-shot): Achieved 71.52% accuracy, a 7% improvement over previous hierarchy-based methods.
- tieredImagenet (1-shot): Reached 72.23% accuracy.
Ablation studies confirmed that both the hyperbolic mapping and the hierarchical loss are essential to the model's performance, as removing either component led to significant degradation.
Conclusion and Future Work
HyperKT demonstrates that aligning model geometry with the structure of human knowledge is a powerful strategy for few-shot learning. While the method currently relies on pre-defined hierarchies like WordNet, future research could explore trainable curvature or the application of hyperbolic modules to larger architectures like Vision Transformers (ViTs).
Summary updated