Homomorphism Counts as Structural Encodings for Graph Learning
Linus Bao, Emily Jin, Michael Bronstein, \.Ismail \.Ilkan Ceylan,, Matthias Lanzinger

TL;DR
This paper introduces motif structural encoding (MoSE), a novel graph structural encoding based on homomorphism counts, which enhances graph neural network expressiveness and achieves state-of-the-art results in molecular property prediction.
Contribution
The paper proposes MoSE, a new structural encoding framework based on homomorphism counts, and demonstrates its superior expressiveness and empirical performance over existing encodings.
Findings
MoSE outperforms existing encodings across various architectures.
MoSE achieves state-of-the-art results on molecular property prediction.
Theoretically, MoSE's expressive power surpasses or matches other encodings.
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 to condition the model on graph structure. In this work, we propose (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…
Peer Reviews
Decision·ICLR 2025 Poster
- MoSE’s homomorphism count-based encoding enhances expressiveness beyond RWSE and aligns well with complex graph structures, as it provides unique structural insights through flexible motif selection. - The paper rigorously compares MoSE to established methods and relates its expressiveness to the WL hierarchy, grounding its effectiveness in theoretical proofs. - MoSE achieves state-of-the-art results on benchmarks, showcasing its applicability and effectiveness in both real-world and synthetic
- The performance of MoSE may vary depending on the choice of motif graphs, requiring task-specific tuning to achieve optimal results. - Calculating homomorphism counts for large and complex graphs could increase computational requirements, potentially limiting scalability for very large datasets. - The theoretical analysis of the expressivity of homomorphism counts has been established and well-studied by recent works (e.g., Jin et al. 2024). It is not very clear what additional theoretical con
1. The experiments supports the claim that MoSE improves performance on molecular property prediction tasks. 2. The theoretical arguments provide a plausible explanation for the observed performance gains. 3. The paper is well-organized and easy to follow.
1. The paper focuses on comparing MoSE with RWSE, justified by RWSE's empirical success. However, several recent graph transformers, such as GRIT, can incorporate edge features and encodings. RRWP, as proposed in the GRIT paper, builds on RWSE by incorporating non-diagonal terms and achieves both greater theoretical expressiveness and empirical performance improvements over RWSE. Although the paper shows that GRIT+MoSE outperforms GRIT+RRWP, a theoretical explanation (e.g., specific examples or
- the paper is a beautiful read on the limitations of existing RW structural encoding for graph transformers, and how the proposed homomorphism count based SE can address it. - although the paper does not present a sophisticated new model, the presented SE is carefully studied, and experiments show the advantage (although marginal) brought by MoSE over existing methods in GTs. - the comparison section of RWSE and MoSE is insightful and shows RWSE is strictly weaker than MoSE, which is reflected
- although the MoSE is useful as studied, a concerning factor is of the computational complexity of getting the vectors. how does this compare experimentally? - the utility of the propose structural encoding may be limited to addressing specific failure cases of prior SEs as indicated by the minor changes in experimental numbers.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Graph Neural Networks · Text and Document Classification Technologies · Machine Learning and Data Classification
MethodsLinear Layer · Dense Connections · Multi-Head Attention · Adam · Softmax · Dropout · Absolute Position Encodings · Label Smoothing · Byte Pair Encoding · Layer Normalization
