NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Motif-driven Subgraph Structure Learning for Graph Classification

Zhiyao Zhou, Sheng Zhou, Bochao Mao, Jiawei Chen, Qingyun Sun, Yan Feng, Chun Chen, Can WangarXiv 2024

Abstract

To mitigate the suboptimal nature of graph structure, Graph Structure Learning (GSL) has emerged as a promising approach to improve graph structure and boost performance in downstream tasks. Despite the proposal of numerous GSL methods, the progresses in this field mostly concentrated on node-level tasks, while graph-level tasks (e.g., graph classification) remain largely unexplored. Notably, applying node-level GSL to graph classification is non-trivial due to the lack of fine-grained guidance for intricate structure learning. Inspired by the vital role of subgraphs in graph classification, in this paper we explore the potential of subgraph structure learning for graph classification by tackling the challenges of key subgraph selection and structure optimization. We propose a novel Motif-driven Subgraph Structure Learning method for Graph Classification (MOSGSL). Specifically, MOSGSL incorporates a subgraph structure learning module which can adaptively select important subgraphs. A motif-driven structure guidance module is further introduced to capture key subgraph-level structural patterns (motifs) and facilitate personalized structure learning. Extensive experiments demonstrate a significant and consistent improvement over baselines, as well as its flexibility and generalizability for various backbones and learning procedures.

The Challenge of Graph-Level Structure Learning

Graph Neural Networks (GNNs) are powerful, but they are notoriously sensitive to the quality of the input graph. Real-world data is often "messy"—it contains missing connections or "spurious" links (noise) that can mislead a model. Graph Structure Learning (GSL) was developed to solve this by "re-wiring" the graph during training to find an optimal structure.

Comparison of node-level and graph-level structure learning challenges. Node-level GSL benefits from fine-grained labels, whereas graph-level GSL faces coarse-grained label challenges.

However, most GSL research focuses on node-level tasks, where every node has a label to guide the re-wiring process. In graph-level classification (e.g., determining if a molecule is toxic), we only have one "coarse-grained" label for the entire graph. This makes it difficult for a model to know which specific edges to add or remove. MOSGSL addresses this gap, which is vital for fields like protein property prediction and social group identification.

The MOSGSL Framework

MOSGSL (Motif-driven SubGraph Structure Learning) optimizes graph structures specifically for graph-level classification tasks by partitioning graphs into subgraphs and using class-specific "motifs" as structural anchors. The framework consists of two main modules:

The MOSGSL framework architecture, featuring the Subgraph Structure Learning Module and the Motif-Driven Structure Guidance Module.

1. Subgraph Structure Learning Module (SGSL)

Instead of attempting to fix the entire graph simultaneously, the model uses Breadth-First Search (BFS) to partition the graph into several subgraphs. It learns the optimal structure for each subgraph independently, preventing noise in one part of the graph from interfering with structure learning in another. A gate mechanism assigns an "importance score" to each subgraph, allowing the model to adaptively fuse the most relevant pieces back into a refined global structure.

2. Motif-driven Structure Guidance Module

This module addresses the lack of fine-grained labels by extracting motifs—representative structural patterns—for each category. It uses a contrastive loss function to align learned subgraphs with their corresponding class motifs. This process is iterative: better structures lead to clearer motifs, and clearer motifs provide better guidance for structure learning.

Experimental Evaluation

The researchers evaluated MOSGSL on five widely used benchmarks across two distinct domains:

  • Social Networks: IMDB-BINARY (IMDB-B), IMDB-MULTI (IMDB-M), and REDDIT-BINARY (RDT-B).
  • Bioinformatics: ENZYMES and PROTEINS.

Key Results

  • Superior Accuracy: MOSGSL achieved the highest average rank across all five datasets, consistently beating standard GNNs (GCN, GraphSAGE, GIN) and specialized GSL baselines like VIBGSL and HGP-SL.
  • Significant Gains: On average, MOSGSL provided an 8.85% performance boost over a standard GCN backbone.
  • Robustness in Biology: While many existing GSL methods degraded performance on biological datasets due to over-fitting on coarse labels, MOSGSL showed significant improvements, proving its motif-driven guidance is more effective than simple global signals.
  • Flexibility: The framework is "backbone-agnostic," meaning it can be integrated into various GNN architectures (GCN, SAGE, GIN) and used in different training regimes.

Conclusion and Future Work

MOSGSL demonstrates that subgraphs are an effective "unit of learning" for graph-level tasks. By focusing on subgraphs, the model finds a middle ground where structural patterns are more recognizable and easier to optimize. Class-specific motifs act as "structural anchors," providing the necessary ground truth for optimized graph structures.

Future work may explore more sophisticated partitioning algorithms beyond BFS and deeper interpretability of the learned motifs to understand which structural patterns the model identifies as most critical for specific classes.

Summary updated

BibTeX
@misc{zhou2024motif,
  author = {Zhiyao Zhou and Sheng Zhou and Bochao Mao and Jiawei Chen and Qingyun Sun and Yan Feng and Chun Chen and Can Wang},
  title = {{Motif-driven Subgraph Structure Learning for Graph Classification}},
  year = {2024},
  eprint = {2406.08897},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.08897},
}
Figure