Skip to main navigation Skip to search Skip to main content

FDphormer: Beyond Homophily with Feature-Difference Position Encoding

  • Dong Li
  • , Aijia Zhang
  • , Huan Xiong*
  • , Biqing Qi
  • , Junqi Gao
  • *Corresponding author for this work
  • Harbin Institute of Technology
  • Shanghai Artificial Intelligence Laboratory

Research output: Contribution to journalArticlepeer-review

Abstract

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.

Original languageEnglish
Article number108
JournalACM Transactions on Knowledge Discovery from Data
Volume19
Issue number5
DOIs
StatePublished - 16 Jun 2025

Keywords

  • Graph representation learning
  • heterophily
  • homophily
  • position encoding
  • transformer

Fingerprint

Dive into the research topics of 'FDphormer: Beyond Homophily with Feature-Difference Position Encoding'. Together they form a unique fingerprint.

Cite this