Activation Function Matters in Graph Transformers

Zhihao Yu, Xu Chu, Zixiang Wang, Liantao Ma, Yasha Wang, Wenwu ZhuOpenReview 2024 · Submission to ICLR 2024 · Withdrawn

Its authors withdrew this paper, so there is no full text to read or summarize.

Abstract

Following the success of Transformers in deep learning, Graph Transformers have emerged as one of the most prominent architectures for graph representation learning. At the heart of Graph Transformers lies the self-attention mechanism, which aims to elevate information from nodes similar to the query node while suppressing information from others. However, this paper has unveiled a critical limitation: the attention mechanism in MPNN-based Graph Transformers cannot effectively discern the number of neighbors, resulting in a restricted expressive capacity. To address this limitation, we investigate three activation functions for the attention mechanism: $softmax$, $tanh$, and $sigmoid$, and show that $sigmoid$ is the most powerful. Our study culminate in the development of an enhanced variant of the Graph Transformer, known as the Expressive Graph Transformer (EGT), and we prove that EGT effectively distinguish number of neighbors without restricted expressive capacity. Extensive evaluations on graph classification and node classification demonstrate the effectiveness and robustness of EGT. Our code is released at https://anonymous.4open.science/r/EGT-98CA/.
BibTeX
@misc{yu2024activation,
  author = {Zhihao Yu and Xu Chu and Zixiang Wang and Liantao Ma and Yasha Wang and Wenwu Zhu},
  title = {{Activation Function Matters in Graph Transformers}},
  year = {2024},
  url = {https://openreview.net/forum?id=YIIYhSqf1L},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2024},
}
Figure