Cluster-wise Graph Transformer with Dual-granularity Kernelized Attention
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. 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.
Benchmark Results
Tested on 6 datasets 27 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
TU Dortmund
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | MSH-GNN | 0.9910
±0.0030 | |
| 2 | ID-GNN+BEC | 0.9830
±0.0360 | |
| 3 | SupCosine | 0.9830
±0.0250 | |
| 39 | GIN | 0.9330
±0.0290 best reported | best at pub: ProtGNN: Towards Self-Explaining Graph Neural Networks (AAAI 2021) |
| 63 | GCN | 0.9220
±0.0440 best reported | best at pub: Breaking the Limits of Message Passing Graph Neural Networks (ICML 2021) best today: Depth-Adaptive Graph Neural Networks via Learnable Bakry-Émery Curvature (KDD 2025) |
| 101 | TopKPool | 0.9130
±0.0070 best reported | best at pub: Mind the Label Shift of Augmentation-based Graph OOD Generalization (2023) |
| 141 | MINCUTPOOL | 0.9060
±0.0460 best reported | best at pub: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) |
| 158 | GraphSAGE | 0.9040
±0.0780 | |
| 190 | SortPool | 0.9000
±0.0224 best reported | |
| 202 | GMT | 0.8990
±0.0420 best reported | best at pub: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) |
| 239 | DiffPool | 0.8940
±0.0460 best reported | best at pub: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) |
| 367 | ASAP | 0.8740
±0.0570 best reported | best at pub: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) |
| 389 | Cluster-GT | 0.8711
±0.0137 | This paper |
| 403 | MLP | 0.8660
±0.0495 | |
| 437 | SEP-G | 0.8556
±0.0109 | This paper |
| 593 | Set2Set | 0.8084
±0.0067 best reported | |
| 635 | StructPool | 0.7950
±0.0075 | This paper |
| 685 | SAGPool(G) | 0.7678
±0.0212 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | MSH-GNN | 0.9410
±0.0330 | |
| 2 | GRDL | 0.8260
±0.0120 | |
| 3 | GMN | 0.8225 | |
| 7 | DiffPool | 0.8161
±0.0232 best reported | |
| 29 | ASAP | 0.7892
±0.0145 best reported | best at pub: Multi-grained Semantics-aware Graph Neural Networks (2020) |
| 31 | StructPool | 0.7884
±0.0170 best reported | best at pub: Multi-grained Semantics-aware Graph Neural Networks (2020) |
| 32 | GIN | 0.7880
±0.0410 best reported | |
| 58 | TopKPool | 0.7768 best reported | best at pub: Memory-Based Graph Networks (ICLR 2020) |
| 67 | SAGE | 0.7726
±0.0228 | |
| 109 | Cluster-GT | 0.7648
±0.0086 | This paper |
| 114 | SEP-G | 0.7642
±0.0039 | This paper |
| 148 | GCN | 0.7600
±0.0320 best reported | best at pub: CI-GNN: A Granger Causality-Inspired Graph Neural Network for Interpretable Brain Network-Based Psychiatric Diagnosis (2023) best today: Simplifying Graph Convolutional Networks with Redundancy-Free Neighbors (2025) Difference within reported uncertainty; not counted as underperformance. |
| 149 | MLP | 0.7600
±0.0320 | |
| 152 | SortPool | 0.7598
±0.0176 best reported | |
| 172 | MINCUTPOOL | 0.7575
±0.0380 best reported | best at pub: Pooling Architecture Search for Graph Classification (2021) Difference within reported uncertainty; not counted as underperformance. |
| 236 | GMT | 0.7510
±0.0060 best reported | best at pub: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) best today: Multi-Scale Harmonic Encoding for Feature-Wise Graph Message Passing (2025) Difference within reported uncertainty; not counted as underperformance. |
| 301 | Set2Set | 0.7429 best reported | best at pub: Memory-Based Graph Networks (ICLR 2020) Difference within reported uncertainty; not counted as underperformance. |
| 408 | SAGPool(G) | 0.7202
±0.0101 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | WL-MLP | 0.9792 | |
| 2 | MSH-GNN | 0.9640
±0.0070 | |
| 3 | CoCN | 0.8722
±0.0013 | |
| 23 | GCN | 0.8260
±0.0220 best reported | best at pub: Scalable Expressiveness through Preprocessed Graph Perturbations (2024) Difference within reported uncertainty; not counted as underperformance. |
| 30 | GIN | 0.8220
±0.0210 best reported | best at pub: Scalable Expressiveness through Preprocessed Graph Perturbations (2024) |
| 33 | DiffPool | 0.8213
±0.0043 best reported | best at pub: Scalable Graph Compressed Convolutions (2024) |
| 57 | TopKPool | 0.8140
±0.0094 best reported | best at pub: Embedding Graphs on Grassmann Manifold (2022) |
| 70 | SEP-G | 0.8128
±0.0015 | This paper |
| 86 | MINCUTPOOL | 0.8090
±0.0030 best reported | best at pub: Graph Classification via Reference Distribution Learning: Theory and Practice (NeurIPS 2024) Difference within reported uncertainty; not counted as underperformance. |
| 93 | GMT | 0.8074
±0.0054 | This paper |
| 105 | Cluster-GT | 0.8043
±0.0052 | This paper |
| 125 | SortPool | 0.8007 best reported | best at pub: CogDL: A Comprehensive Library for Graph Deep Learning (WWW 2021) |
| 136 | GraphSAGE | 0.7970
±0.0170 | |
| 142 | Set2Set | 0.7960
±0.0230 best reported | best at pub: Fast Graph Representation Learning with PyTorch Geometric (ICLR 2019) Difference within reported uncertainty; not counted as underperformance. |
| 151 | MLP | 0.7920
±0.0240 | |
| 164 | SAGPool(G) | 0.7885
±0.0056 | This paper |
| 166 | ASAP | 0.7864
±0.0050 | This paper |
| 200 | StructPool | 0.7727
±0.0051 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GC-GNN (GCN) | 0.9210
±0.0810 | |
| 2 | SUGAR | 0.8403
±0.0133 | |
| 3 | Ortho-g-U-Nets | 0.8387 | |
| 15 | SAGE | 0.8088
±0.0233 | |
| 18 | DiffPool | 0.8064 best reported | best at pub: Graph U-Nets (2019) best today: Orthogonal Graph Neural Networks (AAAI 2021) |
| 23 | StructPool | 0.8010
±0.0177 best reported | best at pub: Multi-grained Semantics-aware Graph Neural Networks (2020) Difference within reported uncertainty; not counted as underperformance. |
| 32 | ASAP | 0.7950
±0.0180 best reported | best at pub: Multi-grained Semantics-aware Graph Neural Networks (2020) |
| 42 | Cluster-GT | 0.7915
±0.0063 | This paper |
| 43 | GCN | 0.7912
±0.0307 best reported | best at pub: Hierarchical Graph Capsule Network (AAAI 2020) |
| 55 | GMT | 0.7872
±0.0059 | This paper |
| 69 | MINCUTPOOL | 0.7822
±0.0054 | This paper |
| 74 | GIN | 0.7805
±0.0189 best reported | best at pub: Multi-grained Semantics-aware Graph Neural Networks (2020) |
| 77 | SEP-G | 0.7798
±0.0057 | This paper |
| 90 | SortPool | 0.7750
±0.0050 best reported | |
| 110 | TopKPool | 0.7640
±0.0232 best reported | best at pub: Embedding Graphs on Grassmann Manifold (2022) Difference within reported uncertainty; not counted as underperformance. |
| 140 | SAGPool(H) | 0.7472
±0.0082 | This paper |
| 146 | Set2Set | 0.7450 best reported | best at pub: Graph Convolutional Networks with EigenPooling (KDD 2019) |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | ID-GNN+BEC | 0.8150
±0.0240 | |
| 2 | GIN+BEC | 0.8080
±0.0330 | |
| 3 | GCN+BEC | 0.7990
±0.0340 | |
| 4 | GCN | 0.7980
±0.0230 best reported | best at pub: Contrastive Multi-View Representation Learning on Graphs (ICML 2020) best today: Depth-Adaptive Graph Neural Networks via Learnable Bakry-Émery Curvature (KDD 2025) |
| 14 | GIN | 0.7810
±0.0350 best reported | best at pub: Graph Learning with Distributional Edge Layouts (2024) best today: Depth-Adaptive Graph Neural Networks via Learnable Bakry-Émery Curvature (KDD 2025) |
| 39 | Cluster-GT | 0.7510
±0.0084 | This paper |
| 49 | ASAP | 0.7427
±0.0397 best reported | best at pub: Pooling Architecture Search for Graph Classification (2021) Difference within reported uncertainty; not counted as underperformance. |
| 55 | SEP-G | 0.7412
±0.0056 | This paper |
| 70 | GMT | 0.7348
±0.0076 | This paper |
| 78 | DiffPool | 0.7314
±0.0070 | This paper |
| 85 | Set2Set | 0.7290
±0.0075 | This paper |
| 94 | MINCUTPOOL | 0.7265
±0.0075 | This paper |
| 95 | SAGPool(H) | 0.7255
±0.0128 | This paper |
| 99 | GraphSAGE | 0.7230
±0.0530 | |
| 104 | SortPool | 0.7212
±0.0112 | This paper |
| 108 | StructPool | 0.7206
±0.0064 | This paper |
| 117 | TopKPool | 0.7158
±0.0095 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphSNN | 0.7790
±0.0360 | |
| 2 | SIN | 0.7560
±0.0320 | |
| 3 | CIN | 0.7560
±0.0370 | |
| 5 | GIN | 0.7510
±0.0510 best reported | best at pub: Empowering GNNs via Edge-Aware Weisfeiler-Leman Algorithm (TMLR 2022) |
| 35 | Cluster-GT | 0.5213
±0.0078 | This paper |
| 38 | GCN | 0.5190 best reported | best at pub: Contrastive Multi-View Representation Learning on Graphs (ICML 2020) best today: AutoGEL: An Automated Graph Neural Network with Explicit Link Information (NeurIPS 2021) |
| 41 | SEP-G | 0.5153
±0.0065 | This paper |
| 43 | DiffPool | 0.5131
±0.0072 | This paper |
| 45 | MINCUTPOOL | 0.5104
±0.0070 | This paper |
| 46 | GraphSAGE | 0.5090 | |
| 48 | ASAP | 0.5078
±0.0075 | This paper |
| 50 | GMT | 0.5066
±0.0082 | This paper |
| 55 | SAGPool(H) | 0.5023
±0.0044 | This paper |
| 56 | StructPool | 0.5023
±0.0053 | This paper |
| 57 | Set2Set | 0.5019
±0.0039 | This paper |
| 85 | TopKPool | 0.4859
±0.0072 | This paper |
| 90 | SortPool | 0.4818
±0.0083 | This paper |
