Hyperparameter Optimization of Graph Neural Networks for the OpenCatalyst Dataset: A Case Study

Carmelo Gonzales, Eric Hans Lee, Kin Long Kelvin Lee, Joyce Tang, Santiago MiretAI4Mat @ NeurIPS 2022

TL;DR

Training large graph neural networks (GNNs) on massive scientific datasets like OpenCatalyst is computationally expensive, making hyperparameter optimization (HPO) a major bottleneck. This paper introduces a cost-aware HPO methodology that combines multi-fidelity experiments and hyperparameter importance analysis to achieve over 50% speedup in finding optimal GNN configurations for materials science tasks.

What Problem Does This Paper Address?

The paper tackles the significant computational challenge of hyperparameter optimization (HPO) for deep learning models, specifically Graph Neural Networks (GNNs), when applied to large-scale scientific datasets. The OpenCatalyst dataset, a crucial resource for materials design using AI, presents a prime example. Training GNNs on this dataset requires immense computational power, making traditional HPO methods like grid search or even standard Bayesian optimization prohibitively time-consuming and expensive. The core problem is finding effective GNN models for scientific discovery without incurring months of computation for hyperparameter tuning.

Methods

The authors propose a novel, cost-aware HPO methodology that is an ensemble of several techniques:

  • Early Stopping: A standard technique to reduce training time by terminating runs when performance plateaus. While not the core innovation, it's noted to provide significant time savings (around 50% on average).
  • Bayesian Optimization (BO): A well-established method for efficient HPO. However, the paper notes that even BO can be too slow for the scale of this problem due to the need for continuous training and retraining.
  • Multi-fidelity Optimization: This is a key component. Instead of running full, expensive experiments, the authors use "low-fidelity" evaluations. In this context, low fidelity means using smaller training and validation datasets. This allows for faster, albeit noisier, data collection.
  • Hyperparameter Importance Analysis (FANOVA): After gathering data from low-fidelity experiments, the authors use Functional Analysis of Variance (FANOVA) to identify which hyperparameters have the most significant impact on model performance.
  • Ensemble Approach: The methodology combines these elements:
  • Run BO on a large search space at a low fidelity with early stopping.
  • Use this low-fidelity data to compute hyperparameter importances.
  • Select the top k most important hyperparameters.
  • Run high-fidelity experiments focusing only on these k hyperparameters.

This approach aims to quickly identify promising regions of the search space using cheap, low-fidelity data and then refine the search in a smaller, more focused space at high fidelity.

Datasets

The primary dataset used is OpenCatalyst. This dataset is described as one of the first large-scale datasets for materials design, containing over 1.3 million molecular relaxations of adsorbates on catalytic surfaces. The paper specifically focuses on the S2EF (Surface-to-Adsorbate Energy and Forces) task within OpenCatalyst. They utilize different data splits for their experiments, ranging from a 200K training set for lower fidelity to a 20M training set for larger scale experiments.

Key Insights and Ideas

  • HPO is a Bottleneck, Not Just a Tuning Step: The paper highlights that for large-scale scientific ML, HPO isn't just about fine-tuning; it's a critical, often prohibitive, computational hurdle.
  • Low-Fidelity Data is Gold: The core idea is that even noisy, cheap data from smaller datasets can be incredibly valuable for guiding expensive high-fidelity experiments. It's not about getting the best result at low fidelity, but about learning where to look for the best results at high fidelity.
  • Hyperparameter Importance is Crucial for Pruning: Identifying which hyperparameters truly matter allows for significant reduction in the search space, making high-fidelity optimization much more efficient. Not all hyperparameters are created equal; some have minimal impact.
  • No "One-Size-Fits-All" HPO: The authors emphasize that generic HPO tools won't magically solve complex problems. A careful analysis of the dataset, model, and search space is essential for effective and efficient optimization.

Key Results

  • Over 50% Speedup: The proposed cost-aware HPO methodology achieved speedups of over 50% in hyperparameter optimization for the E(n)-GNN model on the OpenCatalyst dataset.
  • Significant Time Savings: The "High-Method" experiment (using their ensemble approach) achieved a best loss of 62.8 in just five iterations, while a "Reference-Baseline" experiment took twelve iterations to reach a loss of 65.5.
  • Reduced Computational Cost: The overhead of the low-fidelity data gathering was roughly equivalent to one iteration of the high-fidelity experiment, making the overall process much more efficient.
  • Early Stopping Effectiveness: Early stopping alone was found to reduce training time by about 50% on average.

Limitations and Future Work

  • Limited Fidelity Levels: The proposed method uses only two fidelity levels (low and high) rather than a full continuum. The authors suggest that more extensive multi-fidelity approaches could potentially yield further acceleration.
  • Case Study Nature: The paper acknowledges that this is a "case study" and not a comprehensive study of HPO methods or a deep dive into the challenges of predicting expensive DFT calculations. While it provides valuable insights, it doesn't claim to be exhaustive.
  • Future Work: The paper implies that further exploration of more sophisticated multi-fidelity techniques and a deeper understanding of the interplay between dataset size, model complexity, and HPO efficiency would be beneficial. The authors also suggest that their findings could be even more impactful on even larger datasets (e.g., the 20 million sample OpenCatalyst dataset).

Summary updated

BibTeX
@inproceedings{gonzales2022hyperparameter,
  author = {Carmelo Gonzales and Eric Hans Lee and Kin Long Kelvin Lee and Joyce Tang and Santiago Miret},
  title = {{Hyperparameter Optimization of Graph Neural Networks for the OpenCatalyst Dataset: A Case Study}},
  booktitle = {AI4Mat @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=_7bEq9JQKIJ},
}
Figure