Abstract
Traditional computer vision models often rely on Euclidean geometry for image embeddings, which fails to capture the intrinsic hierarchical nature of visual data. This paper explores hyperbolic embeddings—specifically within the Poincaré ball model—as a more natural representation for tree-like structures. By leveraging negative curvature, these embeddings significantly improve performance in few-shot learning and person re-identification while providing a built-in measure of model uncertainty.
The Challenge of Hierarchical Visual Data
In modern computer vision, images are typically represented as high-dimensional vectors (embeddings) in Euclidean or spherical spaces. These geometries assume a relatively uniform distribution of data. However, visual concepts are often inherently hierarchical. For instance, in image retrieval, a wide shot of a landmark acts as a "parent" to various "child" close-up shots of its architectural details. Similarly, in facial recognition, a blurry or low-resolution image is generic and could correspond to multiple specific high-resolution identities.
Euclidean space struggles to represent these hierarchies without significant distortion. In contrast, hyperbolic space expands exponentially as one moves away from the center, mirroring the growth of nodes in a tree. This makes it a "continuous version of a tree," uniquely suited for embedding hierarchical visual data with low dimensionality.
Methods: Learning in the Poincaré Ball
The researchers adapted standard deep learning architectures to function within the Poincaré ball model of hyperbolic geometry. Their technical framework includes:
- Hyperbolic Neural Layers: The use of hyperbolic versions of fully connected layers and multinomial logistic regression.
- Hyperbolic Prototypical Networks (ProtoNets): For few-shot learning, the standard Euclidean mean is replaced with the Einstein midpoint to create class "prototypes."
- Quantifying Hyperbolicity: Using Gromov $\delta$-hyperbolicity, the authors demonstrated that common image datasets (like CIFAR and CUB) possess high intrinsic hyperbolicity, justifying the shift away from Euclidean geometry.
- Uncertainty Mapping: Euclidean features are mapped to the Poincaré ball via an exponential map. In this space, the distance from the origin serves as a natural proxy for model confidence.
Key Insights: Geometry as a Proxy for Confidence
A significant advantage of the Poincaré ball is its ability to encode uncertainty through spatial positioning. The center of the ball represents the most "generic" point. The authors observed that ambiguous or "unclear" images—such as those from out-of-distribution datasets or blurry samples—naturally cluster near the origin. Conversely, clear and specific samples move toward the boundary. This provides a built-in measure of uncertainty without requiring additional computational overhead.
Performance and Results
The hyperbolic approach yielded substantial improvements across several standard benchmarks, particularly in data-scarce and fine-grained scenarios:
- Few-Shot Learning: On MiniImageNet, the Hyperbolic ProtoNet achieved 54.43% (1-shot) and 72.67% (5-shot) accuracy, significantly outperforming Euclidean baselines (~49% and ~68% respectively).
- Fine-Grained Classification: On the CUB dataset, the hyperbolic model outperformed the Euclidean version by over 10% in both 1-shot and 5-shot settings.
- Person Re-Identification: Hyperbolic embeddings showed superior robustness in low-dimensional settings (e.g., 32 dimensions), where Euclidean models typically lose discriminative power.
Conclusion and Future Work
While hyperbolic embeddings offer clear advantages for hierarchical data, they introduce new challenges, such as numerical instability during training due to functions like atanh. The authors addressed this using specific clipping techniques. Future research directions include exploring hyperbolic versions of more complex architectures, such as Transformers, to further exploit the geometric properties of visual hierarchies.
Summary updated