Neural Networks on Symmetric Spaces of Noncompact Type

Xuân Sơn Nguyễn, Shuo Yang, Aymeric Histace · DOI

Deep learning has long lived in a "flat" Euclidean world. However, many real-world datasets—from the hierarchical structures of language to the complex correlations in brain signals—thrive in "curved" non-Euclidean geometries. While researchers have built specialized tools for hyperbolic spaces (great for trees) and SPD manifolds (great for covariance matrices), these efforts have often been fragmented.

In their recent paper, "Neural Networks on Symmetric Spaces of Noncompact Type," Xuan Son Nguyen and colleagues propose a mathematical "grand unified theory" for these curved spaces. By treating them all as symmetric spaces of noncompact type, they’ve developed a single, elegant way to build the fundamental building blocks of neural networks: fully connected layers and attention mechanisms.

TL;DR

The authors introduce a unified mathematical framework for building neural networks on a broad class of curved manifolds, including hyperbolic and SPD spaces. By deriving a novel "point-to-hyperplane" distance based on Busemann functions, they create more efficient and accurate fully-connected layers and attention blocks that outperform existing specialized models across image, text, and EEG data.

What Problem Does This Paper Address?

Standard neural networks assume data points exist in Euclidean space, where the shortest path between two points is a straight line. But for data with hierarchical or power-law structures, Euclidean space is a poor fit.

To solve this, researchers developed Hyperbolic Neural Networks (HNNs) and SPD (Symmetric Positive Definite) Networks. However, these fields have largely evolved in silos. Defining a "hyperplane" (the curved equivalent of a flat decision boundary) or calculating the "distance" to that hyperplane has required different, often complex, algebraic tricks for each specific manifold. This lack of generality makes it hard to scale these models or apply them to new types of curved geometries.

Methods

The core innovation is a unified formulation of the point-to-hyperplane distance (which the authors call the b-distance).

  1. The Busemann Function: Instead of using standard Euclidean projections, the authors use Busemann functions—a tool from differential geometry that describes how points move toward the "boundary" of an infinite curved space.
  2. Horocycles as Hyperplanes: They define hyperplanes as horocycles, which are manifolds orthogonal to families of parallel geodesics. This is a more natural fit for symmetric spaces than previous "pseudo-Euclidean" definitions.
  3. Unified FC Layers: They rethink the Fully Connected (FC) layer. In Euclidean space, $y = Ax + b$ can be seen as a set of distances to hyperplanes. The authors replicate this logic on curved manifolds using their new distance formula.
  4. Symmetric Attention: They design an attention mechanism where the similarity between "queries" and "keys" is calculated using the Riemannian distance on these symmetric spaces, and the "values" are aggregated using a weighted Fréchet Mean (the curved version of an average).

Datasets

The authors tested their framework across an impressive variety of domains:

  • Image Classification: CIFAR-10 and CIFAR-100.
  • EEG Signal Classification: BCIC-IV-2a, MAMEM-SSVEP-II, and BCI-NER (predicting brain activity tasks).
  • Image Generation: CIFAR-10/100 using Hyperbolic Variational Autoencoders (VAEs).
  • Natural Language Inference (NLI): SNLI and PREFIX datasets (testing if one sentence logically follows another).
  • Node Classification: Standard graph benchmarks like Disease, Airport, Pubmed, and Cora.

Key Insights and Ideas

  • The Power of Generality: By using G-invariant metrics, the authors created a framework that works for any symmetric space of noncompact type. This means one set of code can handle both a simple hyperbolic disk and a high-dimensional matrix manifold.
  • Parameter Efficiency: Their "AttSymSpd-GI" model (using G-invariant metrics) achieved competitive results on EEG data while using 5x fewer parameters than versions based on older metrics.
  • Horocycles > Projections: The paper shows that the "h-distance" (based on horospherical projections) often fails in deep learning because it doesn't behave like a true distance. Their proposed "b-distance" fixes this, leading to more stable training and better accuracy.

Key Results

  • Image Classification: Their "Euclidean-Poincare-B" model outperformed previous state-of-the-art hyperbolic models on CIFAR-100, reaching 77.78% accuracy.
  • EEG SOTA: On the BCIC-IV-2a brain-signal dataset, their attention-based model achieved 78.24% accuracy, significantly outperforming previous methods like EEG-TCNet (67.09%) and MAtt (74.71%).
  • Better Generation: In VAE experiments, their method achieved the lowest (best) FID scores for image reconstruction and generation, proving that the "b-distance" captures the underlying data distribution more effectively than previous hyperbolic distances.

Limitations and Future Work

Despite the breakthrough, a few hurdles remain:

  • Computational Complexity: The attention mechanism relies on the weighted Fréchet Mean (wFM). Unlike a Euclidean average, this doesn't have a simple closed-form solution and often requires iterative algorithms (like the Karcher algorithm), which can be slow.
  • Scope: The framework is currently limited to spaces of noncompact type. It cannot yet be applied to "compact" spaces like Grassmann manifolds (often used in computer vision for video sub-spaces).
  • Scaling: While more parameter-efficient, the time complexity for some operations remains $O(d^3)$ relative to the input dimension, which could be a bottleneck for extremely high-dimensional data.

The authors suggest that future work could involve finding more efficient estimators for the Fréchet Mean to speed up the attention blocks.

Summary updated

BibTeX
@inproceedings{nguyen2025neural,
  author = {Xuân Sơn Nguyễn 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