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

PVFormer: Proper Velocity Transformer for Stable and Scalable Hyperbolic Representation Learning

Xianglong Shi, Nicu Sebe, Bernhard Schölkopf, Ziheng Chen

TL;DR

Hyperbolic space is mathematically ideal for modeling hierarchies and trees, while Transformers are the reigning champions of representation learning—yet combining them usually causes numerical headaches and messy geometric detours. PVFormer solves this by building the first Transformer natively inside Proper Velocity (PV) space, an unconstrained representation of hyperbolic geometry. The result is a faster, cleaner, and remarkably stable hyperbolic Transformer that outperforms previous models across graph, vision, and text tasks.

What Problem Does This Paper Address?

If your data has a tree-like or hierarchical structure—think social networks, taxonomies, or citation graphs—standard flat (Euclidean) space gets crowded fast. Hyperbolic space, with its constant negative curvature, expands exponentially, giving hierarchical data plenty of room to breathe.

Naturally, researchers want to run Transformers in hyperbolic space. The catch? Self-attention isn't just one operation; it is a tightly coupled pipeline of transformation (creating Queries, Keys, and Values), similarity (comparing Q and K), and aggregation (averaging V).

Existing hyperbolic Transformers typically use the Poincaré ball or Lorentz hyperboloid models. In the Poincaré ball, points near the boundary cause gradients to vanish and numbers to explode. In the Lorentz model, you have to constantly enforce strict mathematical constraints to stay on the hyperboloid surface. Consequently, past models constantly bounce back and forth between curved space and flat "tangent" spaces using expensive projection steps, breaking the geometry and slowing everything down.

Figure 1: Comparison of three two-dimensional hyperbolic models. PV represents the same hyper- bolic geometry as the Poincaré and Lorentz models, but removes equality or inequality constraints.

Methods

Inspired by special relativity, the authors turn to Proper Velocity (PV) space. PV space represents the exact same hyperbolic geometry as the Poincaré and Lorentz models, except its points are stored as completely unconstrained vectors in $\mathbb{R}^d$. The curvature is absorbed into the metric itself—meaning no boundaries to crash into and no surfaces to fall off of.

PVFormer redesigns all three self-attention primitives natively in PV space:

  • Transformation: In flat space, linear layers preserve vector addition. PVFormer updates Queries and Values using PV homomorphisms—specifically, origin-preserving orthogonal rotations ($SO(d)$) that preserve hyperbolic addition and distances without distorting the geometry.
  • Similarity & Keys: Standard dot products don't translate directly to curved space. The authors generalize dot-product attention using Busemann functions, which measure distance relative to a ray shooting off to infinity. Because Busemann scoring requires directional keys rather than points, PVFormer introduces a point-to-hyperplane transformation that computes signed margins to learned hyperplanes, directly yielding directional keys without a tangent-space detour.
  • Aggregation & Linear Attention: Instead of standard weighted averaging (which would pull points out of hyperbolic alignment), PVFormer uses closed-form PV midpoint aggregation. Furthermore, because standard $O(N^2)$ attention chokes on massive graphs, the authors algebraically linearize this PV midpoint formula, creating an $O(N)$ PV linear attention variant that never materializes the giant attention matrix.

Datasets

The authors evaluate PVFormer on existing benchmarks—introducing no new datasets—following the exact protocols of prior state-of-the-art hyperbolic Transformers (specifically Hypformer):

  • Small/Medium Graphs: Disease, Airport, Cora, Citeseer, and PubMed.
  • Large-Scale Graphs: ogbn-proteins, ogbn-arxiv, and Amazon2M (up to 2.45 million nodes and 61.8 million edges).
  • Vision & Text (Semi-supervised): Mini-ImageNet and 20News-Groups, evaluated both by constructing $k$-nearest-neighbor ($k$-NN) graphs and in graph-free settings.

Key Insights and Ideas

  • Unconstrained coordinates change the game: Because PV space uses all of $\mathbb{R}^d$ without equality or inequality constraints, you can stack deep Transformer blocks without ever needing "restoration" or clipping steps.
  • Rotations are enough for Q and V: It feels counterintuitive to restrict Query and Value projections to pure rotations without bias terms, yet in PV space, this is the exact mathematical condition required to preserve the underlying hyperbolic algebra—and empirically, it beats unconstrained hyperbolic fully connected layers.
  • Set the curvature and forget it: Hyperbolic networks are notoriously finicky about curvature hyperparameters. Across four graph benchmarks, sweeping curvature $K$ from $-0.5$ to $-4.0$ varied test accuracy by less than $0.45$ points, while every negative curvature beat the flat ($K=0$) baseline.
  • Linearizing curved midpoints: You might expect non-Euclidean averaging to trap you in $O(N^2)$ territory, business as usual. Showing that Lorentzian/PV midpoints can be algebraically factored into $Q(K^\top V)$ order is what unlocks million-node scalability.

Key Results

PVFormer beats strong graph neural networks, Euclidean graph Transformers, and the Lorentz-based Hypformer across the board:

Table 1: Testing results on large-scale node property prediction benchmarks and small and medium- sized graph benchmarks. F1-score is used for DISEASE, ROC-AUC for ogbn-proteins, and Accuracy for all other datasets. OOM denotes out of memory during training or testing. The PVFORMER row is highlighted in gray, with best results shown in red bold.
  • Graph Benchmarks: Sets top marks on all 8 datasets, including 96.37% on Airport, 86.20% on Cora, 83.00% on PubMed, and 90.03% accuracy on the massive Amazon2M dataset.
  • Text & Vision: On 20News-Groups ($k=5$), accuracy jumps from Hypformer's 68.21% to 71.99% (and hits 70.29% with no graph at all). On Mini-ImageNet, it reaches 88.76% ($k=20$).
  • Speed & Scalability: Full Busemann attention runs out of memory past ~25K nodes, whereas PV linear attention scales smoothly to 200K+ nodes on a single A100 GPU—running 11.7% to 33.9% faster per step than Hypformer's linear attention on real large-scale graphs.
  • Ablations: Swapping Busemann similarity for simple hyperbolic distance drops Airport accuracy by 6.10 points, proving directionality matters in curved attention.

Limitations and Future Work

  • Equal-dimensional rotations: Because the homomorphic Q and V updates rely on $SO(d)$ rotations, they preserve dimensionality rather than freely changing vector dimensions layer-to-layer (extensions are deferred to the appendix/future exploration).
  • High-stakes validation: The authors note that while PVFormer aids hierarchical modeling, it requires careful validation before deployment in high-stakes applications.
  • Future Work: Next up, the authors plan to scale PVFormer to Large Language Models (LLMs), testing whether proper velocity space can serve as a backbone for massive-scale sequence modeling.

Summary updated

BibTeX
@inproceedings{shi2026pvformer,
  author = {Xianglong Shi and Nicu Sebe and Bernhard Schölkopf and Ziheng Chen},
  title = {{PVFormer: Proper Velocity Transformer for Stable and Scalable Hyperbolic Representation Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=7jWvuU6Lb6},
}
Figure