NearFormer: Linear-Size Sparse Attention via Randomized Near Neighbors
Not on the map. Why?
Abstract (arXiv)
Graph transformers can capture long-range interactions, but their quadratic attention cost limits their use on large graphs. We introduce NearFormer, a graph transformer whose global attention is restricted to a randomized near-neighbor (NN) graph. NearFormer uses an efficient randomized construction to connect each node to a small number of near neighbors from a broader neighborhood defined by a label-independent feature or spectral geometry. For a fixed retained budget (k), the resulting attention support has linear size (O(|E|+nk)). The NN graph is built once by within-bin search and then held fixed. We use these edges as sparse global-attention supports, with optional learned attention biases, while preserving the original graph for local message passing. Experiments on long-range graph benchmarks and synthetic structural tasks show that NearFormer provides a favorable accuracy--scalability trade-off relative to local message passing, dense and sparse attention.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 49 of its 55 references that are in the map. Submitted 9 Nov 2026.
Builds on
49 of 55 references.
References · 49
- 2017Attention Is All You Needcited by 62,125
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,727
- 2017Graph Attention Networkscited by 9,201
- 2017Inductive Representation Learning on Large Graphscited by 6,466
- 2018How Powerful are Graph Neural Networks?cited by 4,526
- 2017Neural Message Passing for Quantum Chemistrycited by 3,554
- 2016Convolutional Neural Networks on Graphs with Fast Localized Spectral Filteringcited by 2,119
- 2020Big Bird: Transformers for Longer Sequencescited by 1,729
- 2020Rethinking Attention with Performerscited by 1,669
- 2019Strategies for Pre-training Graph Neural Networkscited by 1,000
- 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 899
- 2020Simple and Deep Graph Convolutional Networkscited by 873
37 more
- 2020Efficient Transformers: A Surveycited by 812
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 741
- 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 649
- 2021Understanding over-squashing and bottlenecks on graphs via curvaturecited by 494
- 2017Residual Gated Graph ConvNetscited by 358
- 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 353
- 2021Do Transformers Really Perform Bad for Graph Representation?cited by 330
- 2020Improving Graph Neural Network Expressivity via Subgraph Isomorphism Countingcited by 320
- 2023A Survey on Oversmoothing in Graph Neural Networkscited by 277
- 2022Long Range Graph Benchmarkcited by 267
- 2023NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classificationcited by 218
- 2017Network Embedding as Matrix Factorization: Unifying DeepWalk, LINE, PTE, and node2veccited by 208
- 2020Random Features Strengthen Graph Neural Networkscited by 191
- 2020Graph-Bert: Only Attention is Needed for Learning Graph Representationscited by 181
- 2023Exphormer: Sparse Transformers for Graphscited by 176
- 2023On Over-Squashing in Message Passing Neural Networks: The Impact of Width, Depth, and Topologycited by 170
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 156
- 2019Relational Pooling for Graph Representationscited by 152
- 2021GraphiT: Encoding Graph Structure in Transformerscited by 152
- 2020Directional Graph Networkscited by 135
- 2022Graph-Coupled Oscillator Networkscited by 129
- 2022FoSR: First-order spectral rewiring for addressing oversquashing in GNNscited by 107
- 2023Understanding Oversquashing in GNNs through the Lens of Effective Resistancecited by 100
- 2023DIFFormer: Scalable (Graph) Transformers Induced by Energy Constrained Diffusioncited by 88
- 2023DRew: Dynamically Rewired Message Passing with Delaycited by 85
- 2022DiffWire: Inductive Graph Rewiring via the Lov'asz Boundcited by 80
- 2021Gophormer: Ego-Graph Transformer for Node Classificationcited by 66
- 2022Anti-Symmetric DGN: a stable architecture for Deep Graph Networkscited by 64
- 2022Oversquashing in GNNs through the lens of information contraction and graph expansioncited by 54
- 2024On Oversquashing in Graph Neural Networks Through the Lens of Dynamical Systemscited by 30
- 2023Exposition on over-squashing problem on GNNs: Current Methods, Benchmarks and Challengescited by 25
- 2024Comparing Graph Transformers via Positional Encodingscited by 21
- 2024Port-Hamiltonian Architectural Bias for Long-Range Propagation in Deep Graph Networkscited by 17
- 2025Can You Hear Me Now? A Benchmark for Long-Range Graph Propagationcited by 13
- 2019Point Clouds Learning with Attention-based Graph Convolution Networkscited by 9
- 2023Higher-Order Expander Graph Propagationcited by 5
- 2017Randomized Near Neighbor Graphs, Giant Components, and Applications in Data Sciencecited by 4
Built on by
Not cited yet.