TL;DR
The authors present HCNN, the first fully hyperbolic convolutional neural network framework designed for computer vision. By redesigning core CNN operations within the Lorentz model, HCNN learns hierarchical image features across all layers, delivering superior performance in low-dimensional settings and significantly enhanced adversarial robustness compared to traditional Euclidean models.
What Problem Does This Paper Address?
Real-world visual data naturally contains hierarchical structures. This is obvious both in conceptual taxonomies (e.g., animal species classification) and spatial part-whole relationships (e.g., eyes and a nose form a face, which forms a head, which forms a body). Hyperbolic spaces are uniquely suited to represent these tree-like structures because their volume grows exponentially relative to their radius, allowing hierarchical data to be embedded with minimal distortion.
While Hyperbolic Neural Networks (HNNs) have thrived in natural language processing and graph embedding tasks, their adoption in computer vision has been largely limited to "hybrid" architectures. These networks extract features using standard Euclidean CNN backbones and only project data into hyperbolic space at the very final task head (the decoder). This means the network fails to leverage hyperbolic geometry during the crucial feature extraction phase. Furthermore, most existing hyperbolic vision components rely on the Poincaré ball model, which suffers from severe numerical instability during training.
Methods
The authors introduce HCNN, a fully hyperbolic framework built on the Lorentz model of hyperbolic geometry. They choose the Lorentz model over the Poincaré ball because it offers superior numerical stability and simpler mathematical maps under standard 32-bit floating-point precision.
To build a truly hyperbolic CNN, the authors generalize several foundational deep learning components to the Lorentz model:
- 2D Convolutional Layer: Formulated by linearizing the convolutional kernel and concatenating the receptive field features using a novel Lorentz fully-connected (LFC) layer.
- Lorentz Batch Normalization (LBN): Re-centers features using the closed-form Lorentzian centroid (bypassing the slow, iterative Fréchet mean typically used in Riemannian geometry) and re-scales them using Fréchet variance mapped onto the origin's tangent space.
- Lorentz Multinomial Logistic Regression (MLR): A multi-class classifier that calculates logits based on the hyperbolic distance to class-separating decision hyperplanes, utilizing an extended Euclidean reparameterization to handle arbitrary curvature ($K$).
- Residual Connections and Activations: Implemented via a simplified space-component addition and a Lorentz ReLU that applies non-linearity directly to the spatial coordinates while dynamically recomputing the time component to ensure points remain on the hyperbolic manifold.
They also propose HECNN, a hybrid encoder variant that applies hyperbolic layers only to specific blocks where data hierarchy (hyperbolicity) is highest, optimizing computational efficiency.
Datasets
The framework was evaluated on several standard computer vision benchmarks:
- Image Classification: CIFAR-10, CIFAR-100, and Tiny-ImageNet.
- Image Generation: CelebA and MNIST (the latter specifically used for latent space visualization).
No new benchmarks were introduced; the authors focused on directly translating standard Euclidean baselines to ensure a fair comparison.
Key Insights and Ideas
- Hidden Hierarchies Throughout: By measuring $\delta$-hyperbolicity across network layers, the authors discovered that intermediate layers of standard vision models inherently develop hierarchical structures. This justifies the use of hyperbolic processing throughout the entire network, not just at the output.
- The Power of Low Dimensions: Hyperbolic space shines brightest when embedding dimensions are highly constrained. Because of the space's exponential volume growth, HCNNs can pack complex hierarchical representations into tiny latent spaces (e.g., 8 or 16 dimensions) where Euclidean models completely degrade.
- Lorentz > Poincaré: The hard numerical constraints of the Poincaré ball make it highly unstable under standard 32-bit floating-point precision. The Lorentz model bypasses these constraints, making deep hyperbolic networks viable without requiring expensive 64-bit precision.
- Adversarial Shield: Fully hyperbolic feature spaces naturally increase inter-class separation. This geometric "slack" makes the network significantly more robust against adversarial attacks.
Key Results
- Classification Boost: On CIFAR-100, the hybrid encoder (HECNN) achieved an accuracy of 78.76%, outperforming the Euclidean baseline (77.72%) and the concurrent Poincaré ResNet (76.60%).
- Low-Dimensional Superiority: As shown in Figure 3, at an embedding dimension of just 8, both HECNN and HCNN outperform the Euclidean baseline by a wide margin on CIFAR-100, proving their efficiency in resource-constrained settings.
- Adversarial Robustness: Under PGD adversarial attacks ($\epsilon = 3.2/255$), HCNN maintained 31.77% accuracy on CIFAR-100, compared to only 26.30% for the Euclidean baseline.
- Generative Quality: The HCNN-VAE achieved a generation Fréchet Inception Distance (FID) score of 89.20 on CIFAR-10, outperforming both Euclidean (92.40) and hybrid Poincaré VAEs (90.13).
Limitations and Future Work
- Computational Overhead: Custom Python implementations of hyperbolic operations introduce significant runtime overhead. While using PyTorch's
compilefunction mitigates this (speeding up HCNN training by ~40%), fully hyperbolic networks remain substantially slower than their Euclidean counterparts. - Euclidean Mimicry: The current framework relies on adapting layers originally designed for Euclidean geometry. Developing true hyperbolic-native architectures designed from the ground up remains an open challenge.
- Scalability: Testing on massive datasets like full ImageNet and scaling to larger backbone architectures (such as Vision Transformers) is left for future work.
Summary updated