Cluster-wise Graph Transformer with Dual-granularity Kernelized Attention

Siyuan Huang, Yunchong Song, Jiayue Zhou, Zhouhan Lin
10/1/2024
18 citations
transformer-attentiongnn

Official code: LUMIA-Group/Cluster-wise-Graph-Transformer (18 stars, Python, last commit 2024-10-10).

Abstract

In the realm of graph learning, there is a category of methods that conceptualize graphs as hierarchical structures, utilizing node clustering to capture broader structural information. While generally effective, these methods often rely on a fixed graph coarsening routine, leading to overly homogeneous cluster representations and loss of node-level information.

Show full abstract

In this paper, we envision the graph as a network of interconnected node sets without compressing each cluster into a single embedding. To enable effective information transfer among these node sets, we propose the Node-to-Cluster Attention (N2C-Attn) mechanism. N2C-Attn incorporates techniques from Multiple Kernel Learning into the kernelized attention framework, effectively capturing information at both node and cluster levels. We then devise an efficient form for N2C-Attn using the cluster-wise message-passing framework, achieving linear time complexity. We further analyze how N2C-Attn combines bi-level feature maps of queries and keys, demonstrating its capability to merge dual-granularity information. The resulting architecture, Cluster-wise Graph Transformer (Cluster-GT), which uses node clusters as tokens and employs our proposed N2C-Attn module, shows superior performance on various graph-level tasks. Code is available at https://github.com/LUMIA-Group/Cluster-wise-Graph-Transformer.

View on arXivView PDF

Code Implementations(1)

Official implementation for "Cluster-wise Graph Transformer with Dual-granularity Kernelized Attention" (NeurIPS2024 Spotlight)

180PythonOct 9, 20242 years ago

Similar Papers

Cite this paper

@article{huang2024clusterwise,
  title  = {Cluster-wise Graph Transformer with Dual-granularity Kernelized Attention},
  author = {Siyuan Huang and Yunchong Song and Jiayue Zhou and Zhouhan Lin},
  year   = {2024},
  eprint = {2410.06746},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2410.06746},
  url    = {https://arxiv.org/abs/2410.06746},
  journal = {NEURIPS 2024 2024}
}

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/2410.06746.svg)](https://codeofpaper.com/paper/2410.06746)

Discussion