Beyond Message Passing: Neural Graph Pattern Machine
Zehong Wang, Zheyuan Zhang, Tianyi Ma, Nitesh V. Chawla, Chuxu Zhang, Yanfang Ye
Abstract
Graph learning tasks often hinge on identifying key substructure patterns-such as triadic closures in social networks or benzene rings in molecular graphs-that underpin downstream performance. However, most existing graph neural networks (GNNs) rely on message passing, which aggregates local neighborhood information iteratively and struggles to explicitly capture such fundamental motifs, like triangles, kcliques, and rings. This limitation hinders both expressiveness and long-range dependency modeling. In this paper, we introduce the Neural Graph Pattern Machine (GPM), a novel framework that bypasses message passing by learning directly from graph substructures. GPM efficiently extracts, encodes, and prioritizes taskrelevant graph patterns, offering greater expressivity and improved ability to capture long-range dependencies. Empirical evaluations across four standard tasks-node classification, link prediction, graph classification, and graph regressiondemonstrate that GPM outperforms state-of-theart baselines. Further analysis reveals that GPM exhibits strong out-of-distribution generalization, desirable scalability, and enhanced interpretability. Code and datasets are available at: https: //github.com/Zehong-Wang/GPM .
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 3908d956-a2c9-46a1-afb3-fd55aa8eb7f1Cited by top-tier papers5
- Graph is a Substrate Across Data ModalitiesZiming Li, Xiao-Ming Wu, Zehong Wang, Jiazheng Li et al.ICML 2026 · 16 citations
- Controllable Graph Generation with Diffusion Models via Inference-Time Tree Search GuidanceJiachi Zhao, Zehong Wang, Yamei Liao, Chuxu Zhang et al.WWW 2026 · 4 citations
- Consistency Deep Equilibrium ModelsJunchao Lin, Zenan Ling, Jingwen Xu, Robert QiuICML 2026 · 2 citations
- Generalizing GNNs with Tokenized Mixture of ExpertsXiaoguang Guo, Zehong Wang, Jiazheng Li, Shawn Spitzel et al.KDD 2026 · 1 citation
- Learning Graph Foundation Models on Riemannian Graph-of-GraphsHaokun Liu, Zezhong Ding, Xike XieICML 2026
Builds on51
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image ClassificationChun-Fu (Richard) Chen, Quanfu Fan, Rameswar PandaICCV 2021 · 2,072 citations
- Strategies for Pre-training Graph Neural NetworksWeihua Hu, Bowen Liu, Joseph Gomes, Marinka Zitnik et al.ICLR 2020 · 1,744 citations
- Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng et al.NeurIPS 2021 · 1,632 citations
Related papers
- Generative Graph Pattern MachineZehong Wang, Zheyuan Zhang, Tianyi Ma, Chuxu Zhang et al.NeurIPS 2025
- Graph Neural Networks Can (Often) Count SubstructuresPaolo Pellizzoni, Till Hendrik Schulz, Karsten M. BorgwardtICLR 2025
- From Stars to Subgraphs: Uplifting Any GNN with Local Structure AwarenessLingxiao Zhao, Wei Jin, Leman Akoglu, Neil ShahICLR 2022 · 213 citations
- Deep Homomorphism NetworksTakanori Maehara, Hoang NTNeurIPS 2024 · 2 citations
- Improving the Expressiveness of K-hop Message-Passing GNNs by Injecting Contextualized Substructure InformationTianjun Yao, Yingxu Wang, Kun Zhang, Shangsong LiangKDD 2023 · 8 citations
