Poincaré ResNet

Max van Spengler, Erwin Berkhout, Pascal Mettes

TL;DR

The authors introduce Poincaré ResNet, the first end-to-end residual network that operates entirely within the Poincaré ball model of hyperbolic space. By solving critical optimization hurdles—such as vanishing signals and computationally expensive batch normalization—they demonstrate that fully hyperbolic networks are more robust to adversarial attacks and learn visual features that complement standard Euclidean models.

What Problem Does This Paper Address?

Hyperbolic geometry is a natural fit for data with hierarchical or tree-like structures because the space "expands" exponentially as you move away from the origin. While this has been used successfully in NLP and graph learning, its application in computer vision has been limited.

Until now, "hyperbolic" vision models were mostly hybrids: they used a standard Euclidean backbone (like a normal ResNet) and only mapped features to hyperbolic space in the final classification layer. Training a deep network entirely in hyperbolic space from pixels to labels was considered impractical due to three main "roadblocks":

  1. Vanishing Signals: Standard weight initializations cause feature norms to collapse toward the origin as they pass through multiple layers.
  2. Expensive Normalization: Generalizing Batch Normalization to hyperbolic space typically requires calculating the Fréchet mean, an iterative and slow process.
  3. Memory Bloat: Hyperbolic operations are mathematically complex. Relying on standard automatic differentiation (auto-diff) creates massive computation graphs that consume excessive memory.

Methods

The authors rebuild the celebrated ResNet architecture using the tools of gyrovector space, which provides hyperbolic versions of addition and scalar multiplication.

  • Poincaré Residual Block: They formulate a hyperbolic version of the residual block (Conv → BN → ReLU → Conv → BN → Add). The "addition" in the skip connection is replaced by Möbius addition. Poincaré Residual Block
  • Identity-based Initialization: To prevent signal collapse, they propose an initialization that acts like an identity matrix in hyperbolic space, preserving the norm of the signal across many layers.
  • Poincaré Midpoint Batch Normalization: Instead of the slow Fréchet mean, they use the "Poincaré midpoint"—a closed-form aggregation that is significantly faster to compute while remaining effective for stabilization.
  • Manual Backward Derivations: To keep the computation graph manageable, the authors manually derived the gradients for core hyperbolic operations (like Möbius addition and exponential/logarithmic maps), bypassing the memory-heavy chains created by auto-diff.
Figure 1: A Poincar´e residual block, the basic building block of our Poincar´e ResNet architectures and a direct gen- eralization of the original residual block of He et al. [22].

Datasets

The models were trained and evaluated on:

  • CIFAR-10 and CIFAR-100: For standard image classification performance.
  • Places-365, SVHN, and Textures (DTD): Used as "out-of-distribution" datasets to test the model's ability to detect samples it hasn't seen during training.

Key Insights and Ideas

  • The Origin Collapse is Real: Figure 2a illustrates how standard initializations lead to a logarithmic drop in output norms. Their identity-based approach keeps the signal stable, which is what finally allows for training deeper architectures like ResNet-32. Norm preservation comparison
  • Non-linearity Still Matters: There is a common belief that hyperbolic operations are "non-linear enough" on their own. The authors prove this wrong, showing that adding explicit ReLU activations (applied in the tangent space) significantly improves optimization and final accuracy.
  • Complementary Representations: Grad-CAM visualizations (Figure 4c in the paper) suggest that Poincaré ResNets focus on different discriminative parts of an object compared to Euclidean ones. This makes them excellent candidates for model fusion.
Norm preservation comparison

Key Results

  • Efficiency: The midpoint-based batch normalization is 20-25% faster than the Fréchet-based alternative with no loss in accuracy.
  • Memory Savings: Manually defining the backward pass reduced memory usage by approximately 30%.
  • Robustness: Poincaré ResNets are notably more resistant to adversarial attacks (like FGSM). While a Euclidean ResNet's accuracy drops sharply under perturbation, the hyperbolic version maintains significantly higher performance.
  • OOD Detection: The hyperbolic models consistently outperformed Euclidean counterparts in identifying out-of-distribution samples across multiple benchmarks.

Limitations and Future Work

While this paper proves that end-to-end hyperbolic learning is possible and beneficial, some challenges remain:

  • Computational Complexity: Even with manual gradients, hyperbolic operations are more mathematically involved than Euclidean ones, leading to a slight increase in total computation time.
  • Scaling to Large Datasets: The experiments were conducted on CIFAR-scale data. Testing these architectures on massive datasets like ImageNet is a logical next step but will require further engineering to handle the increased scale.
  • Architecture Search: The authors stuck to the classic ResNet design. It is possible that different architectural motifs (like those found in Vision Transformers) might be even better suited for hyperbolic geometry.

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