PVFormer: Proper Velocity Transformer for Stable and Scalable Hyperbolic Representation Learning
Organizations: University of Science and Technology of China · University of Trento · Max Planck Institute for Intelligent Systems, Tübingen
Abstract
Hyperbolic representations have shown remarkable success on hierarchical and tree-like data, and Transformers have become a central architecture for representation learning. However, a principled construction of hyperbolic Transformers remains challenging because the self-attention layer decomposes into three coupled primitives, transformation, similarity, and aggregation, that should all respect the underlying geometry. Existing hyperbolic Transformer designs are typically built in the Poincaré or Lorentz models, where bounded domains, time-like constraints, tangent-space detours, or projection steps make it difficult to keep the full block intrinsic and scalable. To address this gap, we propose PVFormer, to the best of our knowledge, the first Transformer architecture that operates natively in proper velocity (PV) space. The proper velocity model provides an unconstrained representation of hyperbolic geometry, and PVFormer exploits this structure to redesign the Transformer block in PV space. On the transformation side, we use PV homomorphism transformations to update query and value representations. On the similarity side, we generalize Euclidean inner-product attention with a PV Busemann score inspired by Busemann-based hyperbolic learning and a PV point-to-hyperplane key transformation. On the aggregation side, we replace Euclidean averaging with PV midpoint aggregation and further derive a scalable PV linear attention variant for large graphs. Extensive experiments support the effectiveness of PVFormer across graph, text, and vision benchmarks.
Figures & tables
| Small/Medium | Large | |||||||
| Method | Disease | Airport | Cora | Citeseer | PubMed | ogbn-proteins | Amazon2M | ogbn-arxiv |
| #Nodes | ||||||||
| #Edges | ||||||||
| MLP | – | – | – | – | – | |||
| GCN ( 21 ) | ||||||||
| GAT ( 37 ) | – | – | – | |||||
| Method | Mini-ImageNet | 20News-Groups | ||||||
|---|---|---|---|---|---|---|---|---|
| GCN ( 21 ) | ||||||||
| GAT ( 37 ) | ||||||||
| DropEdge ( 29 ) | ||||||||
| IDGL ( 9 ) | ||||||||
| LDS ( 14 ) | OOM | OOM | OOM | OOM | ||||
| Dataset | (Euclidean) | Span | |||||
|---|---|---|---|---|---|---|---|
| Airport | |||||||
| Cora | |||||||
| Citeseer | |||||||
| PubMed |
| Q/V map | Airport | Cora | Citeseer | PubMed |
|---|---|---|---|---|
| Homomorphic | ||||
| PVNN-FC |
| Attention variant | Airport | Cora | Citeseer | PubMed |
|---|---|---|---|---|
| PVFormer | ||||
| Distance similarity | ||||
| Logmap key |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Notation | Description |
|---|---|
| Constant sectional curvature; all formulas keep negative. | |
| -dimensional Euclidean space. | |
| and | Euclidean inner product and norm. |
| Riemannian manifold with metric . | |
| , , and | Tangent space at , Riemannian metric, and induced tangent norm. |
| , , , and | Geodesic distance, exponential map, logarithmic map, and parallel transport. |
| Metric (%) | Model | Geodesic radius | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Failure rate | |||||||||||
| Failure rate | Poincaré | ||||||||||
| Failure rate | Hyperboloid | ||||||||||
| Violation rate | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | |
| Violation rate | Poincaré | ||||||||||
| Input radius | max/min | zero-grad | Lorentz max/min | Lorentz zero-grad |
|---|---|---|---|---|
| Airport: Lorentz | Airport: | Citeseer: Lorentz | Citeseer: | |
|---|---|---|---|---|
| Collapse | flat |
| Method | ogbn-arxiv (full graph, 169K) | Amazon2M (batch 900K) | Amazon2M (batch 100K) |
|---|---|---|---|
| Hypformer | |||
| PVFormer | |||
| Time reduction | 33.9% | 29.7% | 11.7% |
| Input radius | Homomorphic (ours) + Busemann (ours) | PVNN-FC + Busemann (ours) | Homomorphic (ours) + distance | PVNN-FC + distance |
|---|---|---|---|---|
Hyperbolic Representation Learning
Hyperbolic Representation Learning uses negatively curved spaces to encode hierarchies and scale-free relations in compact, geometry-aware embeddings.
See all 101 papers