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

Weisfeiler and Leman Go Gambling: Why Expressive Lottery Tickets Win

Lorenz Kummer, Samir Moustafa, Anatol Ehrlich, Franka Bause, Nikolaus Suess, Wilfried N. Gansterer, Nils M. Kriege

TL;DR

This paper provides the first formal theoretical link between the Lottery Ticket Hypothesis (LTH) and Graph Neural Network (GNN) expressivity. The authors prove the Strong Expressive Lottery Ticket Hypothesis (SELTH), demonstrating that a sparse GNN subnetwork can only maintain high predictive performance if its initialization preserves the ability to distinguish non-isomorphic graphs.

What Problem Does This Paper Address?

The Lottery Ticket Hypothesis (LTH) famously states that dense, randomly initialized neural networks contain sparse subnetworks ("winning tickets") that can match the performance of the original network when trained in isolation. While this phenomenon is well-documented in Convolutional Neural Networks (CNNs) and standard Multi-Layer Perceptrons (MLPs), its application to GNNs has historically been purely empirical.

GNNs face a unique challenge: expressivity. To perform well, a GNN must be able to distinguish between different graph structures, a capability typically benchmarked against the 1-Weisfeiler-Leman (1-WL) graph isomorphism test. Until now, there was no theoretical framework explaining how network pruning impacts a GNN's expressivity at initialization, or why certain sparse subnetworks fail to converge altogether.

Methods

The authors bridge this gap by analyzing the computational paths inside moment-based GNNs (such as GIN and GCN):

  • Critical Paths Framework: They define "critical paths" as the specific computational routes through the network's MLPs that are strictly necessary for distinguishing graph classes.
  • Strong Expressive Lottery Ticket Hypothesis (SELTH): They mathematically prove that sufficiently overparameterized GNNs contain sparse subnetworks capable of matching 1-WL expressivity entirely at initialization, without requiring any weight training.
  • Gradient Diversity Link: They connect graph expressivity to gradient diversity. By ensuring that distinct graphs produce distinct, non-colinear embeddings, the sparse initialization increases gradient diversity, which smoothens the loss landscape and accelerates training.
  • Irrecoverable Loss Analysis: They identify a class of graphs called Structurally Isomorphic, Feature-Divergent Graphs (SIFDGs)—graphs with identical structures but different node features. They prove that if a pruning mask destroys the ability to differentiate these features in the very first layer, the loss of expressivity is permanent and cannot be recovered by training.

Datasets

The authors evaluated their hypothesis using 10 real-world datasets from the standard TUDataset repository, spanning multiple domains:

  • Chemical Compounds: MUTAG, AIDS, PTC_FM, PTC_MR, and NCI1 (crucial for testing molecular properties and stereoisomers).
  • Protein Structures: PROTEINS and ENZYMES.
  • Image Segmentation: MSRC_9 and MSRC_21C (where images are processed as superpixel graphs).
  • Social Networks: IMDB-BINARY.

Key Insights and Ideas

  • Expressivity is a Gatekeeper: If a pruning strategy accidentally eliminates a critical path at initialization, the network is fundamentally blinded. Training cannot recover this lost structural awareness.
  • The Danger in Drug Discovery: In biochemistry, structurally identical molecules can have different spatial arrangements (stereoisomers) resulting in vastly different properties—such as one being a safe drug and the other being highly toxic (e.g., Thalidomide). Misaligned pruning can completely wipe out the GNN's capacity to catch these "activity cliffs."
Figure 1: Visualization of thalidomide and its toxic stereoisomer as an example of Structurally Isomorphic, Feature-Divergent Graphs (SIFDGs).
  • Geometry Drives Convergence: Highly expressive sparse initializations naturally yield more orthogonal node embeddings. This geometric divergence directly translates to higher gradient diversity, preventing the model from getting trapped in sharp, poorly generalizing local minima.

Key Results

The authors backed up their theory with 13,500 independent training runs across Graph Isomorphism Networks (GIN) and Graph Convolutional Networks (GCN):

  • Winning Tickets at High Sparsity: Highly expressive sparse GINs could be pruned by up to 80% and still match or even outperform dense, unpruned baselines.
  • No Recovery From Blindness: The empirical results strongly validated Lemma 3.5; as shown in their expressivity mapping, models initialized with low expressivity ($\tau_{pre}$) almost never gained expressivity during training ($\tau_{post}$), with data points consistently falling below the ideal equivalence line.
Figure 4: Untrained vs. post-training expressivity, demonstrating that models rarely recover expressivity lost at initialization.

Limitations and Future Work

  • Architecture Scope: The current theoretical proofs are tailored specifically to moment-based GNNs (like GIN or GCN). Extending this framework to attention-based GNNs (GAT) or models incorporating complex edge features remains an open challenge.
  • Practical Bounds: One of their theoretical bounds (Lemma 3.6) requires knowing all graph isomorphism types within a dataset, which is computationally prohibitive for massive, web-scale graphs.
  • Smarter Pruning Algorithms: Rather than relying on standard magnitude-based pruning (IMP), the authors note that future work should focus on developing layer-wise sparsification algorithms that explicitly check and preserve input-output injectivity during the pruning step itself.

Summary updated

BibTeX
@inproceedings{kummer2025weisfeiler,
  author = {Lorenz Kummer and Samir Moustafa and Anatol Ehrlich and Franka Bause and Nikolaus Suess and Wilfried N. Gansterer and Nils M. Kriege},
  title = {{Weisfeiler and Leman Go Gambling: Why Expressive Lottery Tickets Win}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=7EtP9u7JNw},
}
Figure