A Novel Genetic Algorithm with Hierarchical Evaluation Strategy for Hyperparameter Optimisation of Graph Neural Networks

Yingfang Yuan, Wenjun Wang, George M. Coghill, Wei PangarXiv 2021

Abstract

Graph Neural Networks (GNNs) are essential for modeling structured data, yet their performance is highly dependent on hyperparameter configurations that are computationally expensive to optimize. We present HESGA, a genetic algorithm incorporating a Hierarchical Evaluation Strategy (HES) to efficiently navigate the hyperparameter search space. By utilizing early learning progress as a proxy for final performance, HESGA reduces computational costs by up to 90% while achieving superior accuracy compared to standard Bayesian optimization.

Introduction

The optimization of hyperparameters—such as learning rates, batch sizes, and filter counts—is a critical yet resource-intensive step in deploying Graph Neural Networks (GNNs). Traditional methods like Grid Search or standard Genetic Algorithms (GAs) often require full training cycles for every candidate, creating a significant bottleneck. HESGA addresses this by introducing a tiered evaluation approach that prioritizes promising configurations early in the search process.

Methodology: Hierarchical Evaluation Strategy (HES)

The core of HESGA is the Hierarchical Evaluation Strategy, which filters candidates through two distinct stages:

  1. Fast Evaluation: Candidates undergo abbreviated training (typically 10–20% of total epochs). A "fast score" is derived from the initial rate of error reduction (RMSE). This heuristic identifies models with high learning potential without requiring full convergence.
  2. Full Evaluation: Only the top-performing candidates from the fast evaluation stage proceed to full training. These "elite" individuals are then stored in an Elite Archive to guide subsequent generations.
The HESGA workflow: A two-tier evaluation system filters candidates to minimize redundant computation.

The algorithm employs binary encoding for hyperparameters, utilizing standard genetic operators—crossover and mutation—to explore the search space effectively. This allows the system to evolve better configurations over successive generations while focusing resources on the most promising candidates.

Experimental Results

HESGA was benchmarked against standard GNN defaults and Bayesian Hyperparameter Optimization (BHO) using molecular property prediction datasets: ESOL, FreeSolv, and Lipophilicity. These benchmarks are standard in drug discovery and materials science applications.

Performance and Stability

Results indicate that HESGA consistently outperforms both default configurations and BHO. For instance, on the ESOL dataset, HESGA achieved a validation RMSE of 0.89, compared to 1.05 for BHO. Beyond raw accuracy, the optimized models demonstrated significantly lower variance across runs, indicating greater architectural stability.

Comparison of RMSE across training, validation, and test sets: HESGA (orange) demonstrates superior performance and lower variance than default parameters (blue).

Computational Efficiency

By eliminating poor-performing configurations early, HESGA achieves an estimated 80% to 90% reduction in computational overhead compared to traditional GA approaches. This efficiency makes high-quality Hyperparameter Optimisation (HPO) accessible on standard hardware without the need for massive compute clusters.

Discussion and Future Work

While HESGA offers substantial improvements, challenges such as overfitting in high-resolution search spaces remain. Future iterations of the algorithm will explore bi-objective optimization to simultaneously minimize prediction error and training time using Pareto-optimal strategies. Additionally, making the number of training epochs a dynamic hyperparameter may further mitigate overfitting and enhance generalization.

Conclusion

HESGA represents a significant step forward in making GNN optimization practical and efficient. By leveraging early learning heuristics within a hierarchical genetic framework, it provides a robust alternative to computationally prohibitive search methods, ensuring high-performance models can be developed with significantly fewer resources.

Summary updated

BibTeX
@misc{yuan2021novel,
  author = {Yingfang Yuan and Wenjun Wang and George M. Coghill and Wei Pang},
  title = {{A Novel Genetic Algorithm with Hierarchical Evaluation Strategy for Hyperparameter Optimisation of Graph Neural Networks}},
  year = {2021},
  eprint = {2101.09300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.09300},
}
Figure