Hierarchical Graph Transformer with Adaptive Node Sampling

Zaixi Zhang, Qi Liu, Qingyong Hu, Chee-Kong Lee
10/8/2022
cs.LGcs.AI
transformer-attentiongnn

Official code: zaixizhang/ANS-GT (51 stars, Python, last commit 2023-10-18).

Abstract

The Transformer architecture has achieved remarkable success in a number of domains including natural language processing and computer vision. However, when it comes to graph-structured data, transformers have not achieved competitive performance, especially on large graphs.

Show full abstract

In this paper, we identify the main deficiencies of current graph transformers:(1) Existing node sampling strategies in Graph Transformers are agnostic to the graph characteristics and the training process. (2) Most sampling strategies only focus on local neighbors and neglect the long-range dependencies in the graph. We conduct experimental investigations on synthetic datasets to show that existing sampling strategies are sub-optimal. To tackle the aforementioned problems, we formulate the optimization strategies of node sampling in Graph Transformer as an adversary bandit problem, where the rewards are related to the attention weights and can vary in the training procedure. Meanwhile, we propose a hierarchical attention scheme with graph coarsening to capture the long-range interactions while reducing computational complexity. Finally, we conduct extensive experiments on real-world datasets to demonstrate the superiority of our method over existing graph transformers and popular GNNs.

View on arXivView PDF

Code Implementations(1)

zaixizhang/ANS-GTOfficial100%

NeurIPS'22 Spotlight paper "Hierarchical Graph Transformer with Adaptive Node Sampling"

516Python, ShellOct 8, 20223 years ago

Similar Papers

Cite this paper

@article{zhang2022hierarchical,
  title  = {Hierarchical Graph Transformer with Adaptive Node Sampling},
  author = {Zaixi Zhang and Qi Liu and Qingyong Hu and Chee-Kong Lee},
  year   = {2022},
  eprint = {2210.03930},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.03930}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.03930.svg)](https://codeofpaper.com/paper/2210.03930)

Discussion