NAGphormer: A Tokenized Graph Transformer for Node Classification in Large Graphs
Jinsong Chen, Kaiyuan Gao, Gaichao Li, Kun He
摘要
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 .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 92 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Forest-Based Graph Learning for Semi-Supervised Node Classification 引用了 Simple and Deep Graph Convolutional Networks
- Forest-Based Graph Learning for Semi-Supervised Node Classification 引用了 Simplifying and Empowering Transformers for Large-Graph Representations
- Forest-Based Graph Learning for Semi-Supervised Node Classification 引用了 Do Transformers Really Perform Badly for Graph Representation?
- Graph Mamba: Towards Learning on Graphs with State Space Models 引用了 Do Transformers Really Perform Badly for Graph Representation?
- Graph Mamba: Towards Learning on Graphs with State Space Models 引用了 Polynormer: Polynomial-Expressive Graph Transformer in Linear Time
- Graph Mamba: Towards Learning on Graphs with State Space Models 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Simplifying and Empowering Transformers for Large-Graph Representations 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Do Transformers Really Perform Badly for Graph Representation? 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Do Transformers Really Perform Badly for Graph Representation? 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Do Transformers Really Perform Badly for Graph Representation? 引用了 On Layer Normalization in the Transformer Architecture
- Polynormer: Polynomial-Expressive Graph Transformer in Linear Time 引用了 Simple and Deep Graph Convolutional Networks
- Polynormer: Polynomial-Expressive Graph Transformer in Linear Time 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Polynormer: Polynomial-Expressive Graph Transformer in Linear Time 引用了 Do Transformers Really Perform Badly for Graph Representation?
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
引用它的顶会 Paper92
- Simplifying and Empowering Transformers for Large-Graph RepresentationsQitian Wu, Wentao Zhao, Chenxiao Yang, Hengrui Zhang 等NeurIPS 2023 · 318 次引用
- LLaGA: Large Language and Graph AssistantRunjin Chen, Tong Zhao, Ajay Kumar Jaiswal, Neil Shah 等ICML 2024 · 180 次引用
- Forest-Based Graph Learning for Semi-Supervised Node ClassificationJin Li, Shenghao Gao, Kaichen Zhang, Xinlong Chen 等ICLR 2026 · 132 次引用
- Polynormer: Polynomial-Expressive Graph Transformer in Linear TimeChenhui Deng, Zichao Yue, Zhiru ZhangICLR 2024 · 81 次引用
- Graph Mamba: Towards Learning on Graphs with State Space ModelsAli Behrouz, Farnoosh HashemiKDD 2024 · 63 次引用
它引用的 Paper19
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Simple and Deep Graph Convolutional NetworksMing Chen, Zhewei Wei, Zengfeng Huang, Bolin Ding 等ICML 2020 · 1,910 次引用
- Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng 等NeurIPS 2021 · 1,632 次引用
- On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng 等ICML 2020 · 1,388 次引用
相关 Paper
- Tokenphormer: Structure-aware Multi-token Graph Transformer for Node ClassificationZijie Zhou, Zhaoqi Lu, Xuekai Wei, Rongqin Chen 等AAAI 2025 · 5 次引用
- HubGT: Fast Graph Transformer with Decoupled Hierarchy LabelingNingyi Liao, Zihao Yu, Siqiang Luo, Gao CongNeurIPS 2025 · 3 次引用
- VCR-Graphormer: A Mini-batch Graph Transformer via Virtual ConnectionsDongqi Fu, Zhigang Hua, Yan Xie, Jin Fang 等ICLR 2024 · 47 次引用
- A Scalable and Effective Alternative to Graph TransformersKaan Sancak, Zhigang Hua, Jin Fang, Yan Xie 等AAAI 2025 · 5 次引用
- Primphormer: Efficient Graph Transformers with Primal RepresentationsMingzhen He, Ruikai Yang, Hanling Tian, Youmei Qiu 等ICML 2025
