BusemannFormer: Horospherical Self-Attention for Hyperbolic Graph Transformers
Organizations: Yale University · The Chinese University of Hong Kong
Abstract
Hyperbolic neural networks excel on hierarchical graph data, yet existing hyperbolic Transformers largely adapt conventional attention without explicitly exploiting the ideal boundary, a geometric structure closely tied to tree hierarchy. We propose Horospherical Self-Attention (HSA): each query selects an ideal-boundary direction and scores keys by their Busemann depth along that direction, yielding a token-to-token hyperbolic attention kernel. We establish a flat-limit connection to dot-product attention, characterize score level sets as horospheres, and bound key-side gradients. HSA is integrated into BusemannFormer, a fully hyperbolic graph Transformer, with a log-depth variant that uses query depth to modulate attention concentration. We further introduce a finite-boundary-dictionary extension supporting linear-complexity global attention. Experiments on hierarchical and citation graphs show that BusemannFormer-LD outperforms the evaluated baselines on several node-classification benchmarks and achieves competitive performance across diverse graph structures.
Figures & tables
| Model | Disease | Airport | Cora | Citeseer | PubMed |
|---|---|---|---|---|---|
| GCN | |||||
| GAT | |||||
| HGCN | |||||
| Hypformer | |||||
| Euclidean Transformer | |||||
| BusemannFormer-LD |
| Method | Disease-LP | Airport-LP | PubMed-LP | Cora-LP |
|---|---|---|---|---|
| Euclidean GNNs | ||||
| GCN [ 12 ] | ||||
| GAT [ 13 ] | ||||
| Hyperbolic GNNs | ||||
| HGCN [ 2 ] | ||||
| HBNN [ 9 ] | ||||
| Score function | Formula | Disease | Airport | Cora | Citeseer | PubMed |
|---|---|---|---|---|---|---|
| Log-depth HSA | ||||||
| Hyperbolic distance | ||||||
| Spatial dot product | ||||||
| Bidirectional HSA | ||||||
| Directed HSA |
| Architecture | Disease | Airport | Cora | Citeseer | PubMed |
|---|---|---|---|---|---|
| Lorentz GNN only | 84.76 | 58.47 | 75.96 | 65.57 | 75.35 |
| Log-depth HSA only | 92.66 | 61.49 | 75.37 | 66.67 | 76.31 |
| Log-depth HSA + GNN | 90.85 | 60.90 | 77.17 | 66.86 | 77.37 |
| Model / global kernel | Test accuracy (%) | Parameters | ms | MiB |
|---|---|---|---|---|
| Hypformer-large, native | 848,723 | 39.97 | 4,467.0 | |
| Hypformer + Busemann modulation | 979,797 | 55.09 | 5,128.5 | |
| SGFormer, official rerun | 474,152 | 20.05 | 1,314.2 | |
| GCN, official OGB rerun | 110,120 | 9.13 | 961.2 | |
| BusemannFormer, dictionary 16 | 113,202 | 59.55 | 1,273.2 | |
| Same backbone, focused 16 | 111,018 | 61.09 | 1,273.2 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Range | Default |
| Hidden dim | {32, 64, 128} | 64 |
| Heads | {2, 4, 8} | 4 |
| Layers | {1, 2, 3} | 2 |
| Learning rate | {1e-4, 5e-4, 1e-3} | 5e-4 |
| Weight decay | {0, 1e-4, 1e-3} | 1e-4 |
| Dropout | {0.0, 0.1, 0.2} | 0.1 |
| Dataset | Nodes | Train / validation / test | Classes | Metric |
|---|---|---|---|---|
| Disease | 1,044 | 748 / 42 / 254 | 2 | Macro-F1 |
| Airport | 3,188 | 2,232 / 478 / 478 | 4 | Accuracy |
| Cora | 2,708 | 140 / 500 / 1,000 | 7 | Accuracy |
| Citeseer | 3,327 | 120 / 500 / 1,000 | 6 | Accuracy |
| PubMed | 19,717 | 60 / 500 / 1,000 | 3 | Accuracy |
| ogbn-arxiv | 169,343 | 90,941 / 29,799 / 48,603 | 40 | Accuracy |
| Dense HSA | Dict. materialized | Dict. associative | |
|---|---|---|---|
| 512 | 0.55 / 41.5 | 1.38 / 43.0 | 1.48 / 42.0 |
| 8,192 | 6.26 / 1,384.4 | 5.28 / 632.8 | 1.51 / 177.4 |
| 65,536 | 365.03 / 82,531.0 | 229.98 / 33,507.0 | 5.12 / 1,188.0 |
| Execution | Peak MiB | Seconds/epoch | Test accuracy (%) |
|---|---|---|---|
| Dense masked | 64,652.35 | 1.11129 | |
| Sparse supported pairs | 4,013.50 | 0.08355 |
| Method | Query object and score type | Use case / role |
|---|---|---|
| Hypformer [ 5 ] | Queries and keys embed as Lorentz points; attention uses a hyperbolic counterpart of a dot-product score (pair-compatibility within the manifold). | Graph Transformer |
| HBNN [ 9 ] | Queries are Lorentz points but Busemann terms use fixed directions . Layers give class logits or FC features, not a dynamic Q-dependent axis. | FC & classification head |
| Busemann prototypes [ 7 ] | Class prototypes on define Busemann centred losses; no per-token boundary choice from embeddings. | Prototype classifier |
| EmBolic [ 33 ] | Attention-like scores use coarse class-level Busemann energies, not per-token dynamic boundary directions. | Emotion / fixed labels |
| Ours (HSA) | For each query : choose dynamically ; score is a genuine token-token attention kernel. | General self-attention |