Poincaré ResNet

Max van Spengler, Erwin Berkhout, Pascal Mettes

Abstract

Hyperbolic geometry, particularly the Poincaré ball model, is naturally suited for representing hierarchical data structures. However, building deep networks entirely within this space has been hindered by vanishing signals, computational overhead, and memory constraints. This paper introduces the Poincaré ResNet, the first residual network to operate fully in hyperbolic space. By proposing novel initialization techniques, efficient batch normalization, and optimized backpropagation, the authors demonstrate that hyperbolic networks can achieve competitive performance while offering superior robustness to adversarial attacks and out-of-distribution data.

Introduction

While hyperbolic layers have seen success at the tail end of deep networks, the feature extraction backbones have remained Euclidean. This "Euclidean bottleneck" prevents models from fully leveraging the exponential expansion of hyperbolic space, which is ideal for capturing complex hierarchies. The authors identify three primary roadblocks to deep hyperbolic convolutional networks: vanishing signals during forward passes, the high computational cost of Fréchet mean-based batch normalization, and the memory bloat caused by automatic differentiation of complex hyperbolic operations.

Methodology: The Poincaré Residual Block

The authors rebuild the standard ResNet architecture using the Poincaré ball model. A core component is the Poincaré residual block, which integrates several hyperbolic-native operations.

Architecture of a Poincaré residual block, showing the flow from input $x$ through Poincaré convolutions and batch normalization to the final residual addition $x \oplus_c \mathcal{G}(x)$.

Key methodological innovations include:

  • Poincaré Convolutions: Utilizing "$\beta$-concatenation" to combine vectors while preserving the manifold constraints and output norms.
  • Midpoint Batch Normalization: Replacing the iterative Fréchet mean with a closed-form Poincaré midpoint calculation. This provides training stability with a 25% speedup.
  • Manual Backpropagation: Manually deriving gradients for core operations like Möbius addition to reduce the memory footprint of the computation graph by approximately 30%.

Overcoming Signal Collapse

A critical finding of this work is the impact of weight initialization. In standard hyperbolic setups, signals tend to collapse toward the origin as they progress through layers, leading to vanishing gradients. The authors propose an identity-based initialization that ensures the input norm is preserved across layers.

The proposed identity-based initialization (blue) maintains a stable mean output norm across 10 layers, whereas previous methods (grey) suffer from exponential signal decay.

As shown in the figure above, without this specific initialization, the signal effectively disappears in deeper networks. The authors found that hyperbolic networks deeper than five layers simply stop learning without this stabilization.

Experimental Results

The Poincaré ResNet was evaluated on CIFAR-10/100 and various out-of-distribution (OOD) datasets.

  • Robustness and OOD Detection: Poincaré ResNets significantly outperformed Euclidean counterparts in detecting OOD samples (e.g., from Places-365 or SVHN) and resisted FGSM adversarial attacks more effectively.
  • Complementary Features: Fusing the outputs of a Poincaré ResNet and a Euclidean ResNet yielded better results than either model alone, suggesting that hyperbolic space captures unique hierarchical visual features that Euclidean space misses.
  • Efficiency: The midpoint batch normalization and manual backpropagation optimizations made training deep hyperbolic models feasible on standard hardware, reducing memory consumption by 30%.

Conclusion and Future Work

The Poincaré ResNet represents a significant advancement in non-Euclidean deep learning. By addressing fundamental stability and efficiency issues, it opens the door for fully hyperbolic architectures in computer vision. Future research may extend these principles to Vision Transformers (ViTs) and more complex tasks like object segmentation, where hierarchical relationships are prevalent.

Summary updated

BibTeX
@inproceedings{spengler2023poincare,
  author = {Max van Spengler and Erwin Berkhout and Pascal Mettes},
  title = {{Poincaré ResNet}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure