mlsanityData to 14 Oct 2026

NAGphormer: A Tokenized Graph Transformer for Node Classification in Large Graphs

arXiv 2206.04910 ↗First posted 10 Jun 2022cs.LG cs.AIcited by 137

Not on the map. Why?

Abstract (arXiv)

The graph Transformer emerges as a new architecture and has shown superior performance on various graph mining tasks. In this work, we observe that existing graph Transformers treat nodes as independent tokens and construct a single long sequence composed of all node tokens so as to train the Transformer model, causing it hard to scale to large graphs due to the quadratic complexity on the number of nodes for the self-attention computation. To this end, we propose a Neighborhood Aggregation Graph Transformer (NAGphormer) that treats each node as a sequence containing a series of tokens constructed by our proposed Hop2Token module. For each node, Hop2Token aggregates the neighborhood features from different hops into different representations and thereby produces a sequence of token vectors as one input. In this way, NAGphormer could be trained in a mini-batch manner and thus could scale to large graphs. Moreover, we mathematically show that as compared to a category of advanced Graph Neural Networks (GNNs), the decoupled Graph Convolutional Network, NAGphormer could learn more informative node representations from the multi-hop neighborhoods. Extensive experiments on benchmark datasets from small to large are conducted to demonstrate that NAGphormer consistently outperforms existing graph Transformers and mainstream GNNs. Code is available at https://github.com/JHL-HUST/NAGphormer.

Key facts. Cited by 137 papers in the map (data through 14 Oct 2026). Builds on 43 of its 55 references that are in the map. First posted on arXiv 10 Jun 2022.

Builds on

43 of 55 references.

References · 43

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  5. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  6. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
  7. 2017Graph Attention Networkscited by 8,923
  8. 2017Inductive Representation Learning on Large Graphscited by 6,320
  9. 2018How Powerful are Graph Neural Networks?cited by 4,393
  10. 2017Neural Message Passing for Quantum Chemistrycited by 3,487
  11. 2016Convolutional Neural Networks on Graphs with Fast Localized Spectral Filteringcited by 2,089
  12. 2019Simplifying Graph Convolutional Networkscited by 1,477
31 more
  1. 2018Graph Convolutional Neural Networks for Web-Scale Recommender Systemscited by 1,138
  2. 2018Pitfalls of Graph Neural Network Evaluationcited by 1,007
  3. 2018Predict then Propagate: Graph Neural Networks meet Personalized PageRankcited by 993
  4. 2020On Layer Normalization in the Transformer Architecturecited by 922
  5. 2020Simple and Deep Graph Convolutional Networkscited by 860
  6. 2018Link Prediction Based on Graph Neural Networkscited by 832
  7. 2019Graph Neural Networks for Social Recommendationcited by 714
  8. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
  9. 2020A Generalization of Transformer Networks to Graphscited by 661
  10. 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 631
  11. 2019GraphSAINT: Graph Sampling Based Inductive Learning Methodcited by 618
  12. 2020Adaptive Universal Generalized PageRank Graph Neural Networkcited by 595
  13. 2018FastGCN: Fast Learning with Graph Convolutional Networks via Importance Samplingcited by 584
  14. 2019Measuring and Relieving the Over-smoothing Problem for Graph Neural Networks from the Topological Viewcited by 545
  15. 2019Cluster-GCN: An Efficient Algorithm for Training Deep and Large Graph Convolutional Networkscited by 541
  16. 2021Rethinking Graph Transformers with Spectral Attentioncited by 473
  17. 2019Diffusion Improves Graph Learningcited by 414
  18. 2020Graph Random Neural Network for Semi-Supervised Learning on Graphscited by 213
  19. 2022Representing Long-Range Context for Graph Neural Networks with Global Attentioncited by 195
  20. 2022Structure-Aware Transformer for Graph Representation Learningcited by 194
  21. 2019Layer-Dependent Importance Sampling for Training Deep and Large Graph Convolutional Networkscited by 177
  22. 2020Scaling Graph Neural Networks with Approximate PageRankcited by 174
  23. 2021Global Self-Attention as a Replacement for Graph Convolutioncited by 114
  24. 2020Node Similarity Preserving Graph Convolutional Networkscited by 112
  25. 2022Transformer for Graphs: An Overview from Architecture Perspectivecited by 107
  26. 2020Scalable Graph Neural Networks via Bidirectional Propagationcited by 87
  27. 2020Tackling Over-Smoothing for General Graph Convolutional Networkscited by 66
  28. 2021Gophormer: Ego-Graph Transformer for Node Classificationcited by 63
  29. 2020Revisiting Over-smoothing in Deep GCNscited by 55
  30. 2020On the Equivalence of Decoupled Graph Convolution Network and Label Propagationcited by 49
  31. 2022GRAND+: Scalable Graph Random Neural Networkscited by 25

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 1; 2023: 18; 2024: 54; 2025: 38; 2026: 26.

137 papers.

Sort:

By area:

  1. 2024LLaGA: Large Language and Graph Assistantcited by 181
  2. 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 133
  3. 2023DIFFormer: Scalable (Graph) Transformers Induced by Energy Constrained Diffusioncited by 87
  4. 2024Graph Mamba: Towards Learning on Graphs with State Space Modelscited by 86
  5. 2024Classic GNNs are Strong Baselines: Reassessing GNNs for Node Classificationcited by 85
  6. 2023Attending to Graph Transformerscited by 83
  7. 2024Polynormer: Polynomial-Expressive Graph Transformer in Linear Timecited by 65
  8. 2024VCR-Graphormer: A Mini-batch Graph Transformer via Virtual Connectionscited by 34
  9. 2025Relational Graph Transformercited by 34
  10. 2024FairGT: A Fairness-aware Graph Transformercited by 29
  11. 2023GRENADE: Graph-Centric Language Model for Self-Supervised Representation Learning on Text-Attributed Graphscited by 28
  12. 2025Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellencecited by 26
38 more
  1. 2023G-Adapter: Towards Structure-Aware Parameter-Efficient Transfer Learning for Graph Transformer Networkscited by 25
  2. 2024Unifying Generation and Prediction on Graphs with Latent Graph Diffusioncited by 25
  3. 2025Relational Deep Learning: Challenges, Foundations and Next-Generation Architecturescited by 23
  4. 2023Graph Meets LLMs: Towards Large Graph Modelscited by 20
  5. 2024Learning Graph Quantized Tokenizerscited by 19
  6. 2024Learning Long Range Dependencies on Graphs via Random Walkscited by 18
  7. 2023LPFormer: An Adaptive Graph Transformer for Link Predictioncited by 17
  8. 2023GraphGPT: Generative Pre-trained Graph Eulerian Transformercited by 17
  9. 2025Beyond Message Passing: Neural Graph Pattern Machinecited by 17
  10. 2023Enhancing Graph Transformers with Hierarchical Distance Structural Encodingcited by 16
  11. 2024Rethinking Node-wise Propagation for Large-scale Graph Learningcited by 16
  12. 2024FedSSP: Federated Graph Learning with Spectral Knowledge and Personalized Preferencecited by 16
  13. 2024Probabilistic Graph Rewiring via Virtual Nodescited by 15
  14. 2024What Improves the Generalization of Graph Transformers? A Theoretical Dive into the Self-attention and Positional Encodingcited by 14
  15. 2024GraphFM: A generalist graph transformer that learns transferable representations across diverse domainscited by 14
  16. 2025A Survey of Graph Transformers: Architectures, Theories and Applicationscited by 14
  17. 2024What Can We Learn from State Space Models for Machine Learning on Graphs?cited by 13
  18. 2024Locality-Sensitive Hashing-Based Efficient Point Transformer with Applications in High-Energy Physicscited by 12
  19. 2025Graph2text or Graph2token: A Perspective of Large Language Models for Graph Learningcited by 12
  20. 2025DeepGate4: Efficient and Effective Representation Learning for Circuit Design at Scalecited by 12
  21. 2025Return of ChebNet: Understanding and Improving an Overlooked GNN on Long Range Taskscited by 12
  22. 2022Toward Robust Graph Semi-Supervised Learning against Extreme Data Scarcitycited by 11
  23. 2024Towards Dynamic Message Passing on Graphscited by 11
  24. 2025Generative Graph Pattern Machinecited by 11
  25. 2023A Hierarchical Spatial Transformer for Massive Point Samples in Continuous Spacecited by 10
  26. 2023Graph Transformers for Large Graphscited by 10
  27. 2024Node Identifiers: Compact, Discrete Representations for Efficient Graph Learningcited by 10
  28. 2024PolyFormer: Scalable Node-wise Filters via Polynomial Graph Transformercited by 10
  29. 2025Message-Passing State-Space Models: Improving Graph Learning with Modern Sequence Modelingcited by 10
  30. 2024GTC: GNN-Transformer Co-contrastive Learning for Self-supervised Heterogeneous Graph Representationcited by 9
  31. 2024Leveraging Contrastive Learning for Enhanced Node Representations in Tokenized Graph Transformerscited by 9
  32. 2024STGformer: Efficient Spatiotemporal Graph Transformer for Traffic Forecastingcited by 9
  33. 2024A Survey on Structure-Preserving Graph Transformerscited by 7
  34. 2024Graph-Skeleton: ~1% Nodes are Sufficient to Represent Billion-Scale Graphcited by 6
  35. 2024A Comprehensive Benchmark on Spectral GNNs: The Impact on Efficiency, Memory, and Effectivenesscited by 6
  36. 2024A Pure Transformer Pretraining Framework on Text-attributed Graphscited by 6
  37. 2024When Heterophily Meets Heterogeneity: Challenges and a New Large-Scale Graph Benchmarkcited by 6
  38. 2024NeuroPath: A Neural Pathway Transformer for Joining the Dots of Human Connectomescited by 6

50 most cited of 137 All 137 (JSON)