Cluster Attention for Graph Machine Learning
Organizations: HSE University, Yandex Research · Yandex Research
Abstract
Message Passing Neural Networks have recently become the most popular approach to graph machine learning tasks; however, their receptive field is limited by the number of message passing layers. To increase the receptive field, Graph Transformers with global attention have been proposed; however, global attention does not take into account the graph topology and thus lacks graph-structure-based inductive biases, which are typically very important for graph machine learning tasks. In this work, we propose an alternative approach: cluster attention (CLATT). We divide graph nodes into clusters with off-the-shelf graph community detection algorithms and let each node attend to all other nodes in each cluster. CLATT provides large receptive fields while still having strong graph-structure-based inductive biases. We show that augmenting Message Passing Neural Networks or Graph Transformers with CLATT significantly improves their performance on a wide range of graph datasets including datasets from the recently introduced GraphLand benchmark representing real-world applications of graph machine learning.
Figures & tables
| node regression | node classification | |||||||||||
| city-roads-M | city-roads-L | avazu-ctr | tolokers-2 | city-reviews | hm-categories | pokec-regions | questions | lastfm-asia | amzn-r-5core | amzn-r-full | ||
| # nodes | K | K | K | K | K | K | M | K | K | K | K | K |
| # edges | K | K | M | K | M | M | M | K | K | K | K | K |
| avg degree | ||||||||||||
| median degree | ||||||||||||
| avg distance | ||||||||||||
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| lastfm-asia | tolokers-2 | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| quantile | ||||||||||
| LGT (local attention) | ||||||||||
| LGT-CLATT (local attention) | ||||||||||
| LGT-CLATT (cluster attention) | ||||||||||
| GGT-DW (global attention) | ||||||||||
| GGT-DW-CLATT (global attention) | ||||||||||
| clustering algorithm | LA | BPP | H1 | KM |
|---|---|---|---|---|
| city-roads-M | ✓ | ✓ | ||
| city-roads-L | ✓ | ✓ | ||
| avazu-ctr | ✓ | |||
| tolokers-2 | ✓ | |||
| city-reviews | ✓ | |||
| hm-categories | ✓ |