Riemannian Residual Neural Networks

Isay Katsman, Eric Ming Chen, Sidhanth Holalkere, Anna Asch, Aaron Lou, Ser-Nam Lim, Christopher De Sa

Abstract

Recent methods in geometric deep learning have introduced various neural networks to operate over data that lie on Riemannian manifolds. Such networks are often necessary to learn well over graphs with a hierarchical structure or to learn over manifold-valued data encountered in the natural sciences. These networks are often inspired by and directly generalize standard Euclidean neural networks. However, extending Euclidean networks is difficult and has only been done for a select few manifolds. In this work, we examine the residual neural network (ResNet) and show how to extend this construction to general Riemannian manifolds in a geometrically principled manner. Originally introduced to help solve the vanishing gradient problem, ResNets have become ubiquitous in machine learning due to their beneficial learning properties, excellent empirical results, and easy-to-incorporate nature when building varied neural networks. We find that our Riemannian ResNets mirror these desirable properties: when compared to existing manifold neural networks designed to learn over hyperbolic space and the manifold of symmetric positive definite matrices, we outperform both kinds of networks in terms of relevant testing metrics and training dynamics.

Introduction

In standard machine learning, data is typically treated as points in flat, Euclidean space ($\mathbb{R}^n$). While this assumption is computationally convenient, it often fails to capture the intrinsic geometry of real-world datasets. For instance, hierarchical structures—such as social networks, biological taxonomies, or linguistic ontologies—are more naturally embedded in hyperbolic space. Similarly, covariance matrices used in medical imaging, robotics, and signal processing reside on the manifold of Symmetric Positive Definite (SPD) matrices.

While specialized neural networks have been developed for these specific geometries, they are often ad-hoc and difficult to generalize. There has lacked a unified, principled framework for building deep residual networks—the backbone of modern deep learning—that can operate natively on any smooth manifold. This paper introduces Riemannian Residual Neural Networks (RResNets) to bridge this gap.

Methodology

The core innovation of RResNets is the translation of the classic residual step into the language of differential geometry. In a standard Euclidean ResNet, the state is updated via addition: $x_{t+1} = x_t + f(x_t)$. On a curved manifold, however, addition is not a well-defined operation as the result may fall off the manifold.

The Riemannian Residual Step

RResNet replaces Euclidean addition with the Riemannian exponential map ($\exp$). This map takes a vector $v_t$ from the tangent space at point $x_t$ and follows a geodesic (the generalization of a straight line) along the manifold. The update rule becomes:

$$x_{t+1} = \exp_{x_t}(v_t)$$

Learnable Vector Fields

To determine the direction and magnitude of the update ($v_t$), the authors propose a Feature Map-Induced Design. The network learns to project manifold points onto geometric primitives—such as horospheres in hyperbolic space or eigenvalues in SPD matrices—to capture the intrinsic shape of the data. This approach ensures that the learned transformations respect the underlying manifold's properties.

Manifold Hopping

Unlike previous rigid architectures, RResNets allow for "manifold hopping," where the manifold's dimension or representation can change between layers. This is analogous to how standard Convolutional Neural Networks (CNNs) change the number of feature channels, providing significant architectural flexibility.

Experimental Evaluation

The authors evaluated RResNets across two primary geometric domains against established baselines like Hyperbolic Neural Networks (HNN) and SPDNet.

Hyperbolic Graph Datasets

The model was tested on datasets with varying degrees of hierarchy (measured by Gromov $\delta$-hyperbolicity):

  • Disease: A synthetic dataset simulating disease spread.
  • Airport: A network of flight routes.
  • PubMed & CoRA: Standard citation networks.

SPD Matrix Datasets

For video and action recognition, where data is represented as covariance matrices, the authors used:

  • AFEW: Emotion recognition from video.
  • FPHA: Hand action benchmark.
  • NTU RGB+D: Large-scale action recognition.
  • HDM05: Motion capture (mocap) data.

Key Insights and Results

Performance and Stability

RResNet consistently outperformed previous state-of-the-art models. In the Airport link prediction task, RResNet provided a significant boost over standard hyperbolic baselines. Furthermore, the importance of geometric matching was highlighted in the Disease dataset: when a Euclidean model was used instead of a hyperbolic one, F1 scores plummeted and variance exploded, demonstrating that matching the model to the data's natural geometry is vital for training stability.

Training Dynamics

In SPD matrix tasks, RResNets exhibited superior convergence properties. They reached higher validation accuracies faster than SPDNetBN, even when utilizing higher learning rates that typically cause other manifold-aware models to diverge or crash.

Efficiency

The "Spectral Map" design for SPD matrices proved highly efficient. RResNet achieved top-tier results using significantly fewer parameters than naive embedded designs (approximately 45k vs. 6.2M parameters), making it suitable for resource-constrained applications.

Conclusion

Riemannian Residual Neural Networks provide a geometrically principled way to extend deep learning to non-Euclidean spaces. By decoupling the network architecture from the specific geometry of the data, RResNets offer a "plug-and-play" framework for manifold-valued data. While the current implementation relies on the existence of closed-form geodesics and exponential maps, the framework opens new avenues for applying deep learning to complex domains like robotics control and Lattice Quantum Field Theory, where data naturally resides on high-dimensional, curved manifolds.

Summary updated

Abstract

Recent methods in geometric deep learning have introduced various neural networks to operate over data that lie on Riemannian manifolds. Such networks are often necessary to learn well over graphs with a hierarchical structure or to learn over manifold-valued data encountered in the natural sciences. These networks are often inspired by and directly generalize standard Euclidean neural networks. However, extending Euclidean networks is difficult and has only been done for a select few manifolds. In this work, we examine the residual neural network (ResNet) and show how to extend this construction to general Riemannian manifolds in a geometrically principled manner. Originally introduced to help solve the vanishing gradient problem, ResNets have become ubiquitous in machine learning due to their beneficial learning properties, excellent empirical results, and easy-to-incorporate nature when building varied neural networks. We find that our Riemannian ResNets mirror these desirable properties: when compared to existing manifold neural networks designed to learn over hyperbolic space and the manifold of symmetric positive definite matrices, we outperform both kinds of networks in terms of relevant testing metrics and training dynamics.
BibTeX
@inproceedings{katsman2023riemannian,
  author = {Isay Katsman and Eric Ming Chen and Sidhanth Holalkere and Anna Asch and Aaron Lou and Ser-Nam Lim and Christopher De Sa},
  title = {{Riemannian Residual Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=cRzt1umRNx},
}
Figure