PolyFormer: Scalable Node-wise Filters via Polynomial Graph Transformer
<|reference_start|>PolyFormer: Scalable Node-wise Filters via Polynomial Graph Transformer: 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.<|reference_end|>
@article{ma2024polyformer:,
    title={PolyFormer: Scalable Node-wise Filters via Polynomial Graph Transformer},
    author={Jiahong Ma, Mingguo He, Zhewei Wei},
    journal={arXiv preprint arXiv:2407.14459},
    year={2024},
    doi={10.1145/3637528.3671849},
    archivePrefix={arXiv},
    eprint={2407.14459},
    primaryClass={cs.LG}
}