Neural networks on Symmetric Spaces of Noncompact Type

Xuan Son Nguyen, Shuo Yang, Aymeric Histace

Introduction

Most deep learning architectures operate in standard Euclidean space. However, many real-world datasets—such as social hierarchies, biological structures, or brain signals—are naturally non-Euclidean and are better represented in curved geometries. To address this, researchers have developed specialized models like Hyperbolic Neural Networks (HNNs) for hierarchical data and Symmetric Positive Definite (SPD) networks for covariance-based data.

Despite these advances, the sub-fields remain fragmented. Techniques designed for a hyperbolic ball do not easily translate to an SPD matrix manifold. Furthermore, defining the most basic building block of a neural network—the hyperplane (the "line" that separates data in a linear layer)—is mathematically challenging in these curved spaces. Existing methods are often limited to specific metrics or lack the algebraic generality to work across different types of manifolds. This paper introduces a unified mathematical framework for building neural networks on symmetric spaces of noncompact type, a broad family of geometries that includes both hyperbolic spaces and SPD manifolds.

A Unified Geometric Framework

The authors bridge the gap between fragmented non-Euclidean methods by focusing on the shared properties of symmetric spaces of noncompact type. Their key innovation is a unified formulation of the distance from a point to a hyperplane, which they call the b-distance.

Point-to-hyperplane distance formulation

Instead of using standard coordinates, the researchers utilize Busemann functions—a mathematical tool used to describe "directions" toward the boundary of an infinite curved space. By anchoring their distance formula in Busemann functions, they derive a closed-form expression for the distance between a point and a hyperplane that works regardless of whether the space is hyperbolic or a complex matrix manifold. This unified approach successfully recovers previous, more limited distance formulas (like the "g-distance" or "h-distance") as special cases.

Architectural Innovations

Using this new b-distance, the authors design general-purpose neural network building blocks:

  • Fully-Connected (FC) Layers: They redefine the standard linear transformation ($y = Ax + b$) as a collection of signed distances to hyperplanes on the manifold.
  • Attention Mechanism: They construct a novel Riemannian attention block. This module uses their derived Riemannian distance to calculate query-key similarities and employs a "weighted Fréchet mean" (a non-Euclidean average, represented as a midpoint operation) to aggregate value information.
Riemannian Attention Mechanism

Additionally, for higher-rank spaces (like large SPD matrices), the authors utilize $G$-invariant metrics—metrics that remain consistent under certain group transformations. This allows the layers to scale much more efficiently to high-dimensional data, drastically reducing the parameter count compared to previous SPD network layers.

Experimental Validation

The proposed framework was rigorously validated across four distinct domains, consistently outperforming specialized state-of-the-art models:

  • EEG Signal Classification: On brain-computer interface datasets (BCIC-IV-2a, MAMEM-SSVEP-II, and BCI-NER), their AttSymSpd-LE model achieved state-of-the-art accuracy, beating specialized methods like MAtt and Graph-CSPNet. It also proved highly parameter-efficient, achieving competitive results on BCIC-IV-2a with only 0.007 MB of parameters (compared to 0.034 MB for the previous best manifold-based version).
  • Image Classification & Natural Language Inference (NLI): In both vision (CIFAR-10/100) and text (SNLI, PREFIX) tasks, the unified "b-distance" formulation consistently outperformed previous hyperbolic distance metrics.
  • Image Generation: When applied to Hyperbolic Variational Autoencoders (VAEs), the proposed method achieved significantly lower FID scores, indicating better image generation quality on CIFAR datasets.

Limitations and Future Directions

While highly effective, the framework has a few limitations:

  1. Computational Complexity of Attention: The attention mechanism relies on the weighted Fréchet mean. In general symmetric spaces, this does not have a closed-form solution and requires iterative algorithms (like the Karcher algorithm), which can slow down training.
  2. Scaling the FC Layer: Although more efficient than its predecessors, the memory complexity of the FC layer remains $O(d_{in}^2 d_{out})$, which may pose challenges for extremely high-dimensional feature vectors.
  3. Scope: The current theory is specifically tailored for noncompact type spaces. It cannot yet be applied to compact type spaces, such as Spheres or Grassmann manifolds, which are also prevalent in computer vision. Expanding the framework to include these compact spaces is a primary target for future work.

Summary updated

BibTeX
@inproceedings{nguyen2025neural,
  author = {Xuan Son Nguyen and Shuo Yang and Aymeric Histace},
  title = {{Neural networks on Symmetric Spaces of Noncompact Type}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=bwOndfohRK},
}
Figure