Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

PolyFormer: Scalable Node-wise Filters via Polynomial Graph Transformer

About

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.

Jiahong Ma, Mingguo He, Zhewei Wei• 2024

Related benchmarks

TaskDatasetResultRank
Node ClassificationCiteseer (test)
Accuracy0.7213
1013
Node ClassificationPubMed (test)
Accuracy86.82
628
Node ClassificationChameleon (test)
Mean Accuracy46.83
425
Node ClassificationCornell (test)
Mean Accuracy59.02
403
Node ClassificationTexas (test)
Mean Accuracy64.38
402
Node ClassificationRoman-Empire
Accuracy80.27
398
Node ClassificationSquirrel (test)
Mean Accuracy34.42
353
Node ClassificationWisconsin (test)
Mean Accuracy69.77
346
Node ClassificationActor (test)
Mean Accuracy0.3212
339
Node ClassificationCora (test)
Accuracy83.51
254
Showing 10 of 36 rows

Other info

Follow for update