Subgraph Neural Networks

Emily Alsentzer, Samuel G. Finlayson, Michelle M. Li, Marinka Zitnik

Introduction

Graph Neural Networks (GNNs) have traditionally excelled at two scales: node-level predictions (e.g., classifying a single user in a social network) and graph-level predictions (e.g., determining the properties of an entire molecule). However, a significant gap exists for subgraphs—collections of nodes and edges that reside within a larger "parent" graph. Subgraphs are ubiquitous in real-world data, representing biological processes in protein-protein interaction networks or sets of symptoms in medical knowledge graphs.

Subgraphs present unique challenges because their identity is defined by both their internal topology and their external context (position and connectivity) within the parent graph. Existing GNNs often fail here; node-level models ignore global context, while graph-level models lose fine-grained local structure.

The SUBGNN Framework

To address these challenges, the authors propose SUBGNN, a hierarchical framework designed to learn disentangled subgraph representations. SUBGNN moves beyond standard neighborhood aggregation by utilizing a message-passing scheme involving anchor patches—small subgraphs sampled from the parent graph.

The SUBGNN architecture utilizes anchor patches and three property-aware channels (Position, Neighborhood, and Structure) to generate comprehensive subgraph embeddings.

The architecture is structured around three distinct property-aware channels, each further divided into Internal (intra-subgraph) and Border (subgraph-to-parent) subchannels:

  1. Position (P): Captures the subgraph's location using shortest-path distances to anchor patches.
  2. Neighborhood (N): Captures the identity and characteristics of nodes surrounding the subgraph.
  3. Structure (S): Captures the "shape" of the subgraph using a triangular random walk mechanism to identify complex motifs.

By processing these channels independently before concatenation, SUBGNN can effectively disentangle the topological properties most relevant to a specific task.

Experimental Evaluation

The model was evaluated across eight datasets, including four synthetic benchmarks designed to isolate specific topological properties:

  • DENSITY: Measures the density of edges within the subgraph.
  • CUT RATIO: Measures the connectivity between the subgraph and the rest of the graph.
  • CORENESS: Identifies the "centrality" or depth of the subgraph nodes.
  • COMPONENT: Identifies the number of disconnected components within the subgraph.

Real-world evaluations included protein-protein interaction (PPI-BP) and clinical diagnostic tasks (HPO-METAB, HPO-NEURO) where subgraphs represent complex disease phenotypes.

Results and Discussion

SUBGNN demonstrates significant performance improvements over state-of-the-art baselines, including GAT and GIN. On average, the model achieved a 19.8% boost over the strongest baselines.

Performance comparison on synthetic datasets. SUBGNN consistently outperforms node-averaging, meta-node, and graph-level GNN baselines across all topological tasks.

As shown in the synthetic results, SUBGNN's ability to isolate structural and positional properties allows it to dominate tasks like DENSITY and COMPONENT identification, where standard graph-level GNNs struggle. In real-world clinical tasks, the model successfully distinguished between subcategories of rare neurological disorders, highlighting its potential for high-stakes medical applications.

Conclusion

SUBGNN fills a critical gap in graph representation learning by treating subgraphs as relational entities. By disentangling position, neighborhood, and structure, the framework provides a robust inductive bias that significantly outperforms traditional GNN approaches. Future work will focus on reducing the computational overhead of similarity calculations and improving generalization to subgraphs with zero training overlap.

Summary updated

BibTeX
@inproceedings{alsentzer2020subgraph,
  author = {Emily Alsentzer and Samuel G. Finlayson and Michelle M. Li and Marinka Zitnik},
  title = {{Subgraph Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure