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

Unleash Graph Neural Networks from Heavy Tuning

Lequan Lin, Dai Shi, Andi Han, Zhiyong Wang, Junbin GaoarXiv 2024 · DOI

Abstract

Achieving state-of-the-art performance with Graph Neural Networks (GNNs) typically requires exhaustive hyperparameter tuning, which is computationally expensive and prone to overfitting. We present GNN-Diff, a novel framework that treats GNN parameter optimization as a generative task. By utilizing latent diffusion models conditioned on graph structure, GNN-Diff generates high-performing parameters from a small set of "coarse search" checkpoints. Experimental results across diverse benchmarks show that GNN-Diff consistently outperforms massive grid searches while requiring significantly fewer configurations, offering a more efficient and generalizable approach to GNN optimization.

Introduction

The success of Graph Neural Networks (GNNs) is heavily dependent on "heavy tuning"—the meticulous adjustment of learning rates, weight decay, and architecture-specific hyperparameters. Traditional methods like grid search are computationally prohibitive and often lead to models that overfit validation data, failing to generalize to unseen test sets. Furthermore, complex architecture searches often overlook the fact that simpler GNNs can achieve superior performance if tuned optimally.

To address these challenges, we propose shifting the paradigm from search-and-optimization to generative modeling. By learning the distribution of high-performing weights, we can "unleash" researchers from the burden of manual tuning.

Methodology

GNN-Diff (Graph conditional latent diffusion) operates through a multi-stage pipeline designed to capture the manifold of effective GNN parameters.

The GNN-Diff framework consists of four main stages: Parameter Collection, Parameter Autoencoder (PAE) training, Graph Autoencoder (GAE) training, and Graph Conditional Latent Diffusion (G-LDM) for parameter generation.
  1. Coarse Search & Collection: Instead of exhaustive searching, a "light-tuning" phase (20–80 configurations) is conducted to collect training checkpoints representing a population of decent parameters.
  2. Parameter Autoencoder (PAE): To handle high-dimensional weight vectors, the PAE compresses GNN parameters into a compact latent space.
  3. Graph Autoencoder (GAE): Recognizing that GNN weights are data-dependent, the GAE encodes the graph’s signals ($X$) and structure ($A$) into a "graph condition," ensuring generated weights are dataset-specific.
  4. Graph Conditional Latent Diffusion (G-LDM): The core generative engine learns to reverse a noise process to produce high-quality latent parameters from random noise, guided by the graph condition.
  5. Inference: New latent parameters are sampled, decoded into GNN weights, and the best-performing set is selected via a quick validation check.

Results and Discussion

The framework was evaluated on homophilic (Cora, Citeseer) and heterophilic (Actor, Chameleon) benchmark datasets across seven GNN architectures, including GCN, SAGE, GAT, and APPNP.

Performance comparison between Grid Search, Coarse Search, and GNN-Diff. (a) Validation vs. Test Accuracy shows GNN-Diff avoids overfitting. (b) Isomap visualization of parameter space. (c) KDE plot of test accuracy distribution.

GNN-Diff demonstrated superior accuracy, improving test results by up to 1.30% on Cora and 1.77% on Actor compared to the best models found via exhaustive grid search. Notably, GNN-Diff achieved these results using a search space 7 to 30 times smaller than standard methods. As shown in Figure 2(a), while grid search often selects configurations that overfit the validation set (leading to lower test accuracy), GNN-Diff identifies more robust optima. The inference phase is highly efficient, generating 100 parameter sets in under 10 seconds.

The core innovation of GNN-Diff lies in treating "good GNN parameters" as a distribution. By conditioning the diffusion process on the graph's unique topology, the model effectively explores the underlying population of high-performing weights rather than just interpolating between known checkpoints.

Conclusion and Future Work

GNN-Diff successfully bypasses the need for heavy tuning by treating parameter optimization as a generative task. While highly effective for standard benchmarks, future work will explore scaling GNN-Diff to massive graphs with millions of parameters and extending the approach to tasks beyond node classification, such as link prediction and graph-level classification.

Summary updated

BibTeX
@misc{lin2024unleash,
  author = {Lequan Lin and Dai Shi and Andi Han and Zhiyong Wang and Junbin Gao},
  title = {{Unleash Graph Neural Networks from Heavy Tuning}},
  year = {2024},
  eprint = {2405.12521},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.12521},
}
Figure