PolyFormer: Scalable Node-wise Filters via Polynomial Graph Transformer
Open Access
- 24 August 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 2118-2129
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.Keywords
All Related Versions
Funding Information
- National Natural Science Foundation of China (No. U2241212, No. 61932001)
- Huawei-Renmin University joint program on Information Retrieval
- National Science and Technology Major Project (2022ZD0114800)
- Beijing Outstanding Young Scientist Program (No.BJJWZYJH012019100020098)
- Beijing Natural Science Foundation (No. 4222028)
This publication has 9 references indexed in Scilit:
- Graph Filters for Signal Processing and Machine Learning on GraphsarXiv, 2024
- Graph-Segmenter: graph transformer with boundary-aware attention for semantic segmentationFrontiers of Computer Science, 2023
- Attention-based graph neural networks: a surveyArtificial Intelligence Review, 2023
- Graph Neural Networks with Diverse Spectral Filtering2023
- GPT-3: Its Nature, Scope, Limits, and ConsequencesMinds and Machines, 2020
- Optuna2019
- Speech-Transformer: A No-Recurrence Sequence-to-Sequence Model for Speech Recognition2018
- Relaxation-Based Coarsening and Multiscale Graph OrganizationMultiscale Modeling & Simulation, 2011
- Near-Minimax Polynomial Approximation in an Elliptical RegionSIAM Journal on Numerical Analysis, 1978