mlsanityData to 24 Nov 2026

NearFormer: Linear-Size Sparse Attention via Randomized Near Neighbors

arXiv 2611.12186 ↗Submitted 9 Nov 2026cs.LG cs.AIcited by 0

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

  1. 2017Attention Is All You Needcited by 62,125
  2. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,727
  3. 2017Graph Attention Networkscited by 9,201
  4. 2017Inductive Representation Learning on Large Graphscited by 6,466
  5. 2018How Powerful are Graph Neural Networks?cited by 4,526
  6. 2017Neural Message Passing for Quantum Chemistrycited by 3,554
  7. 2016Convolutional Neural Networks on Graphs with Fast Localized Spectral Filteringcited by 2,119
  8. 2020Big Bird: Transformers for Longer Sequencescited by 1,729
  9. 2020Rethinking Attention with Performerscited by 1,669
  10. 2019Strategies for Pre-training Graph Neural Networkscited by 1,000
  11. 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 899
  12. 2020Simple and Deep Graph Convolutional Networkscited by 873
37 more
  1. 2020Efficient Transformers: A Surveycited by 812
  2. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 741
  3. 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 649
  4. 2021Understanding over-squashing and bottlenecks on graphs via curvaturecited by 494
  5. 2017Residual Gated Graph ConvNetscited by 358
  6. 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 353
  7. 2021Do Transformers Really Perform Bad for Graph Representation?cited by 330
  8. 2020Improving Graph Neural Network Expressivity via Subgraph Isomorphism Countingcited by 320
  9. 2023A Survey on Oversmoothing in Graph Neural Networkscited by 277
  10. 2022Long Range Graph Benchmarkcited by 267
  11. 2023NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classificationcited by 218
  12. 2017Network Embedding as Matrix Factorization: Unifying DeepWalk, LINE, PTE, and node2veccited by 208
  13. 2020Random Features Strengthen Graph Neural Networkscited by 191
  14. 2020Graph-Bert: Only Attention is Needed for Learning Graph Representationscited by 181
  15. 2023Exphormer: Sparse Transformers for Graphscited by 176
  16. 2023On Over-Squashing in Message Passing Neural Networks: The Impact of Width, Depth, and Topologycited by 170
  17. 2023Graph Inductive Biases in Transformers without Message Passingcited by 156
  18. 2019Relational Pooling for Graph Representationscited by 152
  19. 2021GraphiT: Encoding Graph Structure in Transformerscited by 152
  20. 2020Directional Graph Networkscited by 135
  21. 2022Graph-Coupled Oscillator Networkscited by 129
  22. 2022FoSR: First-order spectral rewiring for addressing oversquashing in GNNscited by 107
  23. 2023Understanding Oversquashing in GNNs through the Lens of Effective Resistancecited by 100
  24. 2023DIFFormer: Scalable (Graph) Transformers Induced by Energy Constrained Diffusioncited by 88
  25. 2023DRew: Dynamically Rewired Message Passing with Delaycited by 85
  26. 2022DiffWire: Inductive Graph Rewiring via the Lov'asz Boundcited by 80
  27. 2021Gophormer: Ego-Graph Transformer for Node Classificationcited by 66
  28. 2022Anti-Symmetric DGN: a stable architecture for Deep Graph Networkscited by 64
  29. 2022Oversquashing in GNNs through the lens of information contraction and graph expansioncited by 54
  30. 2024On Oversquashing in Graph Neural Networks Through the Lens of Dynamical Systemscited by 30
  31. 2023Exposition on over-squashing problem on GNNs: Current Methods, Benchmarks and Challengescited by 25
  32. 2024Comparing Graph Transformers via Positional Encodingscited by 21
  33. 2024Port-Hamiltonian Architectural Bias for Long-Range Propagation in Deep Graph Networkscited by 17
  34. 2025Can You Hear Me Now? A Benchmark for Long-Range Graph Propagationcited by 13
  35. 2019Point Clouds Learning with Attention-based Graph Convolution Networkscited by 9
  36. 2023Higher-Order Expander Graph Propagationcited by 5
  37. 2017Randomized Near Neighbor Graphs, Giant Components, and Applications in Data Sciencecited by 4

Built on by

Not cited yet.