FDphormer: Beyond Homophily with Feature-Difference Position Encoding
Graph Transformers have garnered significant attention due to their ability to address the challenges of long-distance interactions in previous GNNs. However, most current graph Transformers face difficulties when dealing with heterophilic graphs. To investigate this issue, we first analyzed the distribution of attention weights for homophilic and heterophilic graphs. We discovered that heterophily interferes with the allocation of attention weights, leading to errors in node classification. Further investigation revealed that the root cause may be the difficulty of current graph Transformers in capturing the difference between the features of each node and its neighbors. To alleviate this issue, we propose a position encoding strategy called DiSP to better capture the feature difference and introduce FDphormer, a new efficient and simple graph Transformer model based on DiSP. Additionally, we analyze the generalization error of existing graph Transformer models and provide an upper bound on the generalization error of current graph Transformers with the introduction of DiSP. Extensive experiments demonstrate that FDphormer not only outperforms state-of-the-art methods on diverse heterogeneous datasets but also exhibits competitive performance under homophily.
Authors
- Junqi Gao (ORCID: https://orcid.org/0009-0007-1644-5812)
- Dong Li (ORCID: https://orcid.org/0009-0002-6625-9341)
- Huan Xiong (ORCID: https://orcid.org/0000-0001-5401-7834)
- A. Hongyu Zhang
Institutions
- Harbin Institute of Technology (CN)
- Beijing Academy of Artificial Intelligence (CN)
- Shanghai Artificial Intelligence Laboratory (CN)
Publication Details
- Journal
- ACM Transactions on Knowledge Discovery from Data
- Published
- 2025-04-15
- DOI
- https://doi.org/10.1145/3727882
- Citations
- 1
- Primary Topic
- Advanced Neural Network Applications
- Type
- article
- Field-Weighted Citation Impact
- 1.28