Skip to main content
QUICK REVIEW

[Paper Review] Hierarchical Graph Transformer with Adaptive Node Sampling

Zaixi Zhang, Qi Liu|arXiv (Cornell University)|Oct 8, 2022
Advanced Graph Neural NetworksComputer Science30 citations
TL;DR

The paper introduces ANS-GT, a graph transformer with adaptive node sampling via an adversarial bandit framework and a hierarchical attention scheme with graph coarsening to capture local and global information on large graphs.

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. 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.

Motivation & Objective

  • Motivate the need for graph transformers that scale to large graphs while preserving performance.
  • Propose an adaptive node sampling mechanism that selects informative nodes during training.
  • Incorporate long-range, global dependencies via a hierarchical attention scheme with graph coarsening.
  • Demonstrate empirical gains over existing graph transformers and popular GNNs on six datasets.

Proposed method

  • Formulate node sampling as an adversarial bandit problem and adapt Exp4.P to weigh multiple sampling heuristics (1-/2-hop, PPR, KNN).
  • Define a reward based on attention magnitudes and sampling probabilities to guide sampling strategy updates.
  • Introduce a hierarchical attention framework with fine-grained local attention and coarse-grained global attention using graph coarsening and a few global nodes.
  • Employ graph coarsening to generate a smaller graph and enable global interactions with reduced complexity.
  • Use proximity-based positional encodings and Graphormer-inspired transformer layers with pre- and post-LN structure.
  • Provide a linear-time overall computational complexity claim via limiting sampled nodes and offloading long-range interactions to a coarsened graph.

Experimental results

Research questions

  • RQ1Can adaptive, graph-aware node sampling improve Graph Transformer performance on large graphs?
  • RQ2Does incorporating long-range global information via graph coarsening and hierarchical attention yield better representations than local-only attention?
  • RQ3How do different sampling heuristics (1-hop, 2-hop, PPR, KNN) fare across graphs with varying structural properties (e.g., homophily/heterophily)?

Key findings

  • ANS-GT consistently outperforms existing Graph Transformer baselines across six benchmark datasets.
  • Adaptive sampling weights vary over training and align with graph properties, improving attention-focused node selection.
  • Hierarchical attention with graph coarsening captures long-range dependencies while maintaining efficiency.
  • Ablation studies show substantial gains from the adaptive sampling module over a version without it (HGT).
  • Coarsening methods are robust, and a small coarsening rate suffices for strong performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.