Exploring Consistency in Graph Representations: from Graph Kernels to Graph Neural Networks
Xuyuan Liu, Yinghao Cai, Qihui Yang, Yujun Yan
Abstract
Graph Neural Networks (GNNs) have emerged as a dominant approach in graph representation learning, yet they often struggle to capture consistent similarity relationships among graphs. While graph kernel methods such as the Weisfeiler-Lehman subtree (WL-subtree) and Weisfeiler-Lehman optimal assignment (WLOA) kernels are effective in capturing similarity relationships, they rely heavily on predefined kernels and lack sufficient non-linearity for more complex data patterns. Our work aims to bridge the gap between neural network methods and kernel approaches by enabling GNNs to consistently capture relational structures in their learned representations. Given the analogy between the message-passing process of GNNs and WL algorithms, we thoroughly compare and analyze the properties of WL-subtree and WLOA kernels. We find that the similarities captured by WLOA at different iterations are asymptotically consistent, ensuring that similar graphs remain similar in subsequent iterations, thereby leading to superior performance over the WL-subtree kernel. Inspired by these findings, we conjecture that maintaining consistency in the similarities of graph representations across GNN layers is crucial for capturing relational structures and improving graph classification performance. Thus, we propose a loss to enforce the similarity of graph representations to be consistent across different layers. Our empirical analysis verifies our conjecture and shows that our proposed consistency loss can significantly enhance graph classification performance across several GNN backbones on various datasets.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext d9f41c99-5761-459a-9de6-4e215e7723a6Cited by top-tier papers3
- SheetDesigner: MLLM-Powered Spreadsheet Layout Generation with Rule-Based and Vision-Based ReflectionQin Chen, Yuanyi Ren, Xiaojun Ma, Mugeng Liu et al.EMNLP 2025
- Tackling Size Generalization of Graph Neural Networks on Biological Data from a Spectral PerspectiveGaotang Li, Danai Koutra, Yujun YanKDD 2025
- WILTing Trees: Interpreting the Distance Between MPNN EmbeddingsMasahiro Negishi, Thomas Gärtner, Pascal WelkeICML 2025
Builds on14
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong et al.NeurIPS 2020 · 3,935 citations
- Graph Contrastive Learning with AugmentationsYuning You, Tianlong Chen, Yongduo Sui, Ting Chen et al.NeurIPS 2020 · 3,042 citations
- Graph Contrastive Learning with Adaptive AugmentationYanqiao Zhu, Yichen Xu, Feng Yu, Qiang Liu et al.WWW 2021 · 1,415 citations
- Pre-training Molecular Graph Representation with 3D GeometryShengchao Liu, Hanchen Wang, Weiyang Liu, Joan Lasenby et al.ICLR 2022 · 440 citations
- Geometric Latent Diffusion Models for 3D Molecule GenerationMinkai Xu, Alexander S. Powers, Ron O. Dror, Stefano Ermon et al.ICML 2023 · 252 citations
Related papers
- Wasserstein Graph Distance Based on L1-Approximated Tree Edit Distance between Weisfeiler-Lehman SubtreesZhongxi Fang, Jianming Huang, Xun Su, Hiroyuki KasaiAAAI 2023 · 8 citations
- Nested Graph Neural NetworksMuhan Zhang, Pan LiNeurIPS 2021 · 213 citations
- Generalizing Weisfeiler-Lehman Kernels to SubgraphsDongkwan Kim, Alice OhICLR 2025
- A graph similarity for deep learningSeongmin OkNeurIPS 2020 · 16 citations
- From Relational Pooling to Subgraph GNNs: A Universal Framework for More Expressive Graph Neural NetworksCai Zhou, Xiyuan Wang, Muhan ZhangICML 2023 · 22 citations
