NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Pseudo-Riemannian Manifolds for Heterophilic Graphs via Graph Signature

Yun Young Choi, Asung Kil, Sun Woo Park, Minho Lee, Seokhwan KimNeurIPS 2026

TL;DR

Most Graph Neural Networks (GNNs) secretly assume the world is Euclidean—that connected nodes belong together and squared distances are always positive. On heterophilic graphs, where edges represent repulsion or difference (like predators and prey, or fraudsters and victims), forcing embeddings into a positive-definite space warps the geometry. This paper introduces a diagnostic tool to detect when a graph’s labels demand an indefinite space—much like the spacetime of special relativity—and builds an attention network that natively learns negative squared distances to let dissimilar neighbors push apart cleanly.

What Problem Does This Paper Address?

Standard GNNs operate on homophily: birds of a feather flock together, so averaging features across edges works wonders. When graphs are heterophilic (opposites attract), standard GNNs struggle. Researchers usually patch this with architectural workarounds, like high-pass spectral filters or signed edge weights that subtract neighbor features instead of adding them.

However, the authors point out a deeper, overlooked issue: geometric mismatch. Whether a GNN uses standard Euclidean space, hyperbolic manifolds, or standard dot-product attention, the underlying geometry is Riemannian—meaning its metric tensor is strictly positive-definite, and squared distances can never be negative. Trying to model structural repulsion inside a space built exclusively for attraction forces the network to distort its embeddings. Furthermore, standard single-number homophily scores (ranging from 0 to 1) fail to tell us when this geometric mismatch actually occurs.

Methods

The authors propose a "diagnose-then-learn" framework rooted in pseudo-Riemannian geometry—smooth manifolds whose metrics allow negative eigenvalues, admitting negative squared distances.

  1. The Diagnostic — Graph Signature Index ($s_{\mathcal{G}}$): Before training, the authors build a symmetric class-compatibility matrix ($S_{\mathcal{G}}$) from the training nodes, measuring the normalized probability of edges connecting class $i$ to class $j$. By Sylvester's law of inertia, the count of positive, zero, and negative eigenvalues of $S_{\mathcal{G}}$—the Graph Signature Index—is an invariant property of the label topology. If $s_{\mathcal{G}}$ has negative eigenvalues, the graph is intrinsically indefinite.
  2. The Architecture — Pseudo-Riemannian Attention Network (PRAT): Instead of standard dot-product or GAT-style attention, PRAT views nodes as points and edges as curves on a manifold, comparing edges via parallel transport in tangent space.
Figure 1: Figure 1(a) illustrates how one can map a directed graph G to a subspace of a pseudo- Riemannian manifold (M, g). The nodes of G correspond to points on M, whereas the edges of G correspond to curves on M. Figure 1(b) demonstrates how one may compute tangent attention scores between two edges of G using the pseudo-Riemannian metric g defined over the tangent space Tγ1(t)M at each point of the curve representing an edge.

In practice, this boils down to a clean, drop-in attention mechanism: the attention logit between connected nodes $v$ and $u$ is a signed squared pseudo-distance, $(h_v - h_u)^\top \mathbf{D} (h_v - h_u)$. The metric $\mathbf{D}$ is parameterized as $\mathbf{W}^\top \Lambda \mathbf{W}$, where $\mathbf{W}$ is a learnable projection and $\Lambda$ is a learnable diagonal matrix initialized directly from the eigenvalues of the training set's $S_{\mathcal{G}}$. Labels are only used once to initialize $\Lambda$; the forward pass never touches them.

Datasets

PRAT is evaluated across 15 node-classification benchmarks (no new real-world datasets are introduced, though synthetic generators are used for controlled tests):

  • 8 Standard Benchmarks: Homophilic citation networks (Cora, Citeseer, PubMed) and heterophilic graphs (Texas, Cornell, Chameleon, Squirrel, Actor).
  • 7 Platonov Benchmarks: Curated by Platonov et al. to fix train-test leakage in Chameleon and Squirrel (filtered versions), plus five large-scale heterophilic graphs (10K–49K nodes): roman-empire, amazon-ratings, minesweeper, tolokers, and questions.

Key Insights and Ideas

  • Homophily scores are geometrically blind: The authors prove mathematically (Theorem 2.4) that no rational node or edge homophily score between 0 and 1 can rule out a negative eigenvalue in $S_{\mathcal{G}}$. Two graphs can share the exact same homophily of $0.5$ while requiring completely different underlying geometries.
  • No smooth warping can fix a Riemannian prior: Theorem 2.5 proves that if $S_{\mathcal{G}}$ is indefinite, no diffeomorphism (smooth, invertible transformation) can map a Euclidean metric to match the graph's induced label geometry.
  • Signed weights $\neq$ Indefinite geometry: On synthetic graphs with low homophily ($\le 0.4$), models that merely put negative signs on aggregation weights (like FAGCN) drop off sharply, trailing PRAT by an average of 40.6 percentage points. Putting negative signs inside a Euclidean space does not substitute for changing the metric of the space itself.
  • Indefiniteness is only needed when $s_{\mathcal{G}}$ says so: Some heterophilic benchmarks (like Actor and amazon-ratings) actually have zero negative eigenvalues in $s_{\mathcal{G}}$. Ablations confirm that forcing the metric to be positive-definite hurts accuracy only on graphs that $s_{\mathcal{G}}$ flags as indefinite, leaving the others unscathed.

Key Results

  • Competitive accuracy at 1-hop: Using only 1-hop neighborhood attention, PRAT outperforms or statistically ties the strongest multi-hop and heterophily-adapted baselines on 4 of 7 Platonov benchmarks (e.g., 90.08% accuracy on roman-empire, 85.04 ROC AUC on tolokers, and 42.69% on Chameleon-filtered) and leads on Actor (37.26%), Texas (84.32%), and Citeseer (78.06%) among standard benchmarks.
  • Zero speed penalty: Because the learned metric $\Lambda$ is diagonal and operates in a latent space sized to the number of classes ($|L|$), PRAT matches GAT's asymptotic complexity. On questions (48.9K nodes), a training step takes 88.7 ms for PRAT vs. 91.2 ms for GAT and 175.2 ms for Graph Transformer.
  • Clean ablation link: When PRAT's metric is constrained to be positive-definite ($\text{PRAT}_{\text{pos}}$), accuracy drops on indefinite graphs (e.g., -14.31 points on Cornell, -7.54 on Texas, -3.09 on Chameleon) while remaining virtually unchanged on positive-signature graphs like Cora and PubMed.

Limitations and Future Work

  • Reliance on node labels for initialization: Computing $S_{\mathcal{G}}$ requires training node labels, tying the method to (semi-)supervised node classification. (Though an appendix experiment shows $k$-means pseudo-labels on features can substitute well, full self-supervised learning remains open).
  • Out-of-reach tasks: Graph-level classification cannot be handled directly since $S_{\mathcal{G}}$ is undefined without node-level classes. Inductive learning across graphs with shifting signatures is also untested.
  • Low-rank bottleneck on binary tasks: Because $\text{rank}(\mathbf{D}) \le |L|$, binary classification ($|L|=2$) compresses the rich metric inertia down to a single bit.
  • Future directions: Extending the framework to dynamic curvature (where the metric varies point-by-point rather than staying constant across the manifold) and adapting the signature formulation to directed graphs.

Summary updated

BibTeX
@inproceedings{choi2026learning,
  author = {Yun Young Choi and Asung Kil and Sun Woo Park and Minho Lee and Seokhwan Kim},
  title = {{Learning Pseudo-Riemannian Manifolds for Heterophilic Graphs via Graph Signature}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=rAJTKw8IvJ},
}
Figure