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

Uncovering Strong Lottery Tickets in Graph Transformers: A Path to Memory Efficient and Robust Graph Learning

Hiroaki Ito, Jiale Yan, Hikari Otsuka, Kazushi Kawamura, Masato Motomura, Thiem Van Chu, Daichi Fujiki

Graph Transformers (GTs) have emerged as a powerful tool for modeling complex relational data, leveraging global self-attention to capture long-range dependencies that traditional Message Passing Neural Networks (MPNNs) often overlook. However, the computational and memory costs of GTs are significant, often exceeding those of standard Graph Convolutional Networks (GCNs) by several fold. This research explores the application of the Strong Lottery Ticket Hypothesis (SLTH) to GTs, demonstrating that highly efficient, sparse subnetworks exist within randomly initialized models that can match or exceed the performance of fully trained dense counterparts without any weight updates.

The Challenge of Memory and Stability

While previous studies successfully identified "Strong Lottery Tickets" (SLTs) in MPNNs—subnetworks that function effectively with fixed, random weights—applying this concept to GTs presented unique hurdles. Standard search methods often fail because fixed random weights lead to "biased attention." In these scenarios, the Softmax calculation in the attention mechanism becomes dominated by a few nodes, resulting in an unstable and inaccurate model. For instance, the NodeFormer architecture requires nearly 4.6x more memory than a standard GCN, making the search for efficient subnetworks both necessary and difficult.

Methodology: Adaptive Scaling and Stability

To overcome these challenges, the authors propose a search strategy based on the Edge-Popup algorithm, significantly enhanced by a novel Adaptive Scaling technique.

Overview of the GT architecture and the proposed SLT Linear Layer with Dynamic Weight Scaling.
  1. Edge-Popup Baseline: Instead of training weights ($W$), the algorithm learns a "supermask" ($M$). It assigns a score to each connection and selects the top-$k$% highest-scoring edges to create a sparse subnetwork ($W_{SLT} = W_{rand} \odot M$).
  2. Dynamic Weight Scaling (DWS): To address biased attention, the researchers introduced a scaling factor ($\lambda$) based on the absolute mean of learned scores. This allows the model to adjust activation magnitudes during the search, providing the flexibility typically lost with fixed weights.
  3. Attention Stability Norm (ASNorm): The architecture incorporates PairNorm, a normalization technique that maintains constant total pairwise feature distance across layers, preventing "over-smoothing" where node embeddings become indistinguishable in deep networks.

This search is applied to the linear projection layers (Query, Key, Value, and Feed-Forward blocks) across various GT architectures, including NodeFormer, GRIT, and GraphGPS.

Experimental Evaluation

The study evaluated the proposed method across 13 diverse datasets, covering both node-level tasks (e.g., Cora, Citeseer, Pubmed, Actor) and graph-level tasks (e.g., ZINC, MNIST, CIFAR10, OGBG-Molhiv).

Key Insights: The Flexibility Gap and Robustness

A critical finding is the "Flexibility Gap": the Softmax function in Transformers is hypersensitive to the scale of input activations. Traditional SLT methods fail because they cannot tune weight magnitudes. Dynamic Weight Scaling acts as a proxy for weight training, allowing the subnetwork to balance its own attention scores effectively.

Distribution of attention scores using SLT with Adaptive Scaling, showing a more balanced and less biased distribution.

Furthermore, sparsity acts as a powerful regularizer. By forcing the model to be sparse (often $\geq 80\%$), the SLT search prunes noisy connections, improving performance on out-of-distribution (OOD) data and increasing resilience to node feature perturbations (Gaussian noise).

Results and Performance

  • Memory Efficiency: The SLT approach achieved a 2x to 32x reduction in memory consumption compared to fully trained dense models.
  • Accuracy: On the Pubmed dataset, a 2-layer NodeFormer-SLT achieved 78.20% accuracy using only 0.619 MB of memory, outperforming the dense version (75.54% accuracy at 4.512 MB).
  • OOD and Robustness: SLTs improved OOD detection performance by 0.15 to 0.4 (ROC-AUC) on the Cora dataset. High performance was maintained even at 80% to 90% sparsity.

Conclusion and Future Directions

This work demonstrates that Graph Transformers contain powerful, sparse subnetworks that can be uncovered without weight training. While the current approach uses unstructured pruning, future work could explore structural pruning (removing entire neurons or heads) to achieve hardware-level speedups. Additionally, extending this research to tasks like link prediction and providing a formal mathematical grounding for the emergence of SLTs in GTs remain important open challenges.

Summary updated

BibTeX
@article{ito2025uncovering,
  author = {Hiroaki Ito and Jiale Yan and Hikari Otsuka and Kazushi Kawamura and Masato Motomura and Thiem Van Chu and Daichi Fujiki},
  title = {{Uncovering Strong Lottery Tickets in Graph Transformers: A Path to Memory Efficient and Robust Graph Learning}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure