PolyFormer: Scalable Node-wise Filters via Polynomial Graph Transformer
Jiahong Ma, Mingguo He, Zhewei Wei
Abstract
Spectral Graph Neural Networks have demonstrated superior performance in graph representation learning. However, many current methods focus on employing shared polynomial coefficients for all nodes, i.e., learning node-unified filters, which limits the filters' flexibility for node-level tasks. The recent DSF attempts to overcome this limitation by learning node-wise coefficients based on positional encoding. However, the initialization and updating process of the positional encoding are burdensome, hindering scalability on large-scale graphs. In this work, we propose a scalable node-wise filter, PolyAttn. Leveraging the attention mechanism, PolyAttn can directly learn node-wise filters in an efficient manner, offering powerful representation capabilities. Building on PolyAttn, we introduce the whole model, named PolyFormer. In the lens of Graph Transformer models, PolyFormer, which calculates attention scores within nodes, shows great scalability. Moreover, the model captures spectral information, enhancing expressiveness while maintaining efficiency. With these advantages, PolyFormer offers a desirable balance between scalability and expressiveness for node-level tasks. Extensive experiments demonstrate that our proposed methods excel at learning arbitrary node-wise filters, showing superior performance on both homophilic and heterophilic graphs, and handling graphs containing up to 100 million nodes. The code is available at https://github.com/air029/PolyFormer .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Node4All: Learning Node Representation Beyond Datasets cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Node4All: Learning Node Representation Beyond Datasets cites Do Transformers Really Perform Badly for Graph Representation?
- Recipe for a General, Powerful, Scalable Graph Transformer cites Do Transformers Really Perform Badly for Graph Representation?
- Do Transformers Really Perform Badly for Graph Representation? cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
- Do Transformers Really Perform Badly for Graph Representation? cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Do Transformers Really Perform Badly for Graph Representation? cites On Layer Normalization in the Transformer Architecture
- Learn When and Where to Connect: Adaptive Virtual Nodes for Dynamic Message Passing on Graphs cites Recipe for a General, Powerful, Scalable Graph Transformer
- GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers cites Recipe for a General, Powerful, Scalable Graph Transformer
- GrokFormer: Graph Fourier Kolmogorov-Arnold Transformers cites Do Transformers Really Perform Badly for Graph Representation?
- Rethinking Tokenized Graph Transformers for Node Classification cites Recipe for a General, Powerful, Scalable Graph Transformer
Cited by top-tier papers5
- Rethinking Tokenized Graph Transformers for Node ClassificationJinsong Chen, Chenyang Li, Gaichao Li, John E. Hopcroft et al.NeurIPS 2025 · 8 citations
- Node4All: Learning Node Representation Beyond DatasetsDooho Lee, Jaemin YooKDD 2026 · 2 citations
- Hierarchical Multi Scale Graph Neural Networks: Scalable Heterophilous Learning with Oversmoothing and Oversquashing MitigationMD SAZZAD Hossen, Avimanyu SahooICML 2026
- Learn When and Where to Connect: Adaptive Virtual Nodes for Dynamic Message Passing on GraphsJaejun Lee, Joyce Jiyoung WhangKDD 2026
- GrokFormer: Graph Fourier Kolmogorov-Arnold TransformersGuoguo Ai, Guansong Pang, Hezhe Qiao, Yuan Gao et al.ICML 2025
Builds on20
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
- Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng et al.NeurIPS 2021 · 1,632 citations
- On Layer Normalization in the Transformer ArchitectureRuibin Xiong, Yunchang Yang, Di He, Kai Zheng et al.ICML 2020 · 1,388 citations
- Recipe for a General, Powerful, Scalable Graph TransformerLadislav Rampásek, Michael Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu et al.NeurIPS 2022 · 1,216 citations
Related papers
- Specformer: Spectral Graph Neural Networks Meet TransformersDeyu Bo, Chuan Shi, Lele Wang, Renjie LiaoICLR 2023 · 16 citations
- Large-Scale Spectral Graph Neural Networks via Laplacian SparsificationHaipeng Ding, Zhewei Wei, Yuhang YeKDD 2025 · 4 citations
- Exphormer: Sparse Transformers for GraphsHamed Shirzad, Ameya Velingker, Balaji Venkatachalam, Danica J. Sutherland et al.ICML 2023 · 219 citations
- GOAT: A Global Transformer on Large-scale GraphsKezhi Kong, Jiuhai Chen, John Kirchenbauer, Renkun Ni et al.ICML 2023 · 76 citations
- Simplifying and Empowering Transformers for Large-Graph RepresentationsQitian Wu, Wentao Zhao, Chenxiao Yang, Hengrui Zhang et al.NeurIPS 2023 · 318 citations
