Lune

ICLR2025Top-tier venue

Homomorphism Counts as Structural Encodings for Graph Learning

Linus Bao, Emily Jin, Michael M. Bronstein, Ismail Ilkan Ceylan, Matthias Lanzinger

Abstract

Graph Transformers are popular neural networks that extend the well-known Transformer architecture to the graph domain. These architectures operate by applying self-attention on graph nodes and incorporating graph structure through the use of positional encodings (e.g., Laplacian positional encoding) or structural encodings (e.g., random-walk structural encoding). The quality of such encodings is critical, since they provide the necessary graph inductive biases\textit{graph inductive biases} to condition the model on graph structure. In this work, we propose motif structural encoding\textit{motif structural encoding} (MoSE) as a flexible and powerful structural encoding framework based on counting graph homomorphisms. Theoretically, we compare the expressive power of MoSE to random-walk structural encoding and relate both encodings to the expressive power of standard message passing neural networks. Empirically, we observe that MoSE outperforms other well-known positional and structural encodings across a range of architectures, and it achieves state-of-the-art performance on a widely studied molecular property prediction dataset.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Recipe for a General, Powerful, Scalable Graph Transformer cites Do Transformers Really Perform Badly for Graph Representation?
  • Recipe for a General, Powerful, Scalable Graph Transformer cites Rethinking Graph Transformers with Spectral Attention
  • Recipe for a General, Powerful, Scalable Graph Transformer cites Graph Neural Networks with Learnable Structural and Positional Representations
  • Sketch-Augmented Features Improve Learning Long-Range Dependencies in Graph Neural Networks cites Recipe for a General, Powerful, Scalable Graph Transformer
  • Sketch-Augmented Features Improve Learning Long-Range Dependencies in Graph Neural Networks cites Do Transformers Really Perform Badly for Graph Representation?
  • Sketch-Augmented Features Improve Learning Long-Range Dependencies in Graph Neural Networks cites Rethinking Graph Transformers with Spectral Attention
  • Message Passing on the Edge: Towards Scalable and Expressive GNNs cites Recipe for a General, Powerful, Scalable Graph Transformer
  • Do Transformers Really Perform Badly for Graph Representation? cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Do Transformers Really Perform Badly for Graph Representation? cites Rethinking Graph Transformers with Spectral Attention
  • Rethinking Graph Transformers with Spectral Attention cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Graph Neural Networks with Learnable Structural and Positional Representations cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • Graph Neural Networks with Learnable Structural and Positional Representations cites Rethinking Graph Transformers with Spectral Attention
  • On The Expressive Power of GNN Derivatives cites Recipe for a General, Powerful, Scalable Graph Transformer
  • On The Expressive Power of GNN Derivatives cites Open Graph Benchmark: Datasets for Machine Learning on Graphs
  • On The Expressive Power of GNN Derivatives cites Graph Neural Networks with Learnable Structural and Positional Representations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Sketch-Augmented Features Improve Learning Long-Range Dependencies in Graph Neural NetworksRyien Hosseini, Filippo Simini, Venkatram Vishwanath, Rebecca Willett et al.NeurIPS 2025 · 1 citation
  2. On The Expressive Power of GNN DerivativesYam Eitan, Moshe Eliasof, Yoav Gelberg, Fabrizio Frasca et al.ICLR 2026 · 1 citation
  3. Message Passing on the Edge: Towards Scalable and Expressive GNNsPablo Barcelo, Fabian Jogl, Alexander Kozachinskiy, Matthias Lanzinger et al.ICML 2026
  4. DISSOLVR: An Interpretable and Fast Framework for Aqueous and Organic Solubility PredictionVansh Ramani, Har A Arora, Dhairya Kuchhal, Sayan Ranu et al.ICML 2026

Builds on26

  1. Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
  2. Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng et al.NeurIPS 2021 · 1,632 citations
  3. Recipe for a General, Powerful, Scalable Graph TransformerLadislav Rampásek, Michael Galkin, Vijay Prakash Dwivedi, Anh Tuan Luu et al.NeurIPS 2022 · 1,216 citations
  4. Rethinking Graph Transformers with Spectral AttentionDevin Kreuzer, Dominique Beaini, William L. Hamilton, Vincent Létourneau et al.NeurIPS 2021 · 854 citations
  5. Graph Neural Networks with Learnable Structural and Positional RepresentationsVijay Prakash Dwivedi, Anh Tuan Luu, Thomas Laurent, Yoshua Bengio et al.ICLR 2022 · 464 citations

Related papers

  1. Simple Path Structural Encoding for Graph TransformersLouis Airale, Antonio Longa, Mattia Rigon, Andrea Passerini et al.ICML 2025
  2. From Theory to Practice: Rethinking Green and Martin Kernels for Unleashing Graph TransformersYoon Hyeok Lee, Jaemin Park, Taejin Paik, Doyun Kim et al.ICML 2025
  3. Structure-Aware Transformer for Graph Representation LearningDexiong Chen, Leslie O'Bray, Karsten M. BorgwardtICML 2022 · 349 citations
  4. On the Stability of Expressive Positional Encodings for GraphsYinan Huang, William Lu, Joshua Robinson, Yu Yang et al.ICLR 2024 · 32 citations
  5. Transformers over Directed Acyclic GraphsYuankai Luo, Veronika Thost, Lei ShiNeurIPS 2023 · 43 citations
Dusk over the sea between two cliffs drawn in fine vertical lines