[Paper Review] Particle Swarm Based Hyper-Parameter Optimization for Machine Learned Interatomic Potentials
This paper proposes a two-step particle swarm optimization (PSO) framework for hyper-parameter tuning in machine learning-based interatomic potentials (ML-PES), using SOAP descriptors and Gaussian process regression (GAP). By first optimizing feature extraction hyper-parameters (SOAP) and then training hyper-parameters (GAP), the method reduces computational cost while achieving state-of-the-art accuracy, with a 64.5 meV/molecule mean absolute error on the QM9 dataset using only 1,000 training molecules.
Modeling non-empirical and highly flexible interatomic potential energy surfaces (PES) using machine learning (ML) approaches is becoming popular in molecular and materials research. Training an ML-PES is typically performed in two stages: feature extraction and structure-property relationship modeling. The feature extraction stage transforms atomic positions into a symmetry-invariant mathematical representation. This representation can be fine-tuned by adjusting on a set of so-called "hyper-parameters" (HPs). Subsequently, an ML algorithm such as neural networks or Gaussian process regression (GPR) is used to model the structure-PES relationship based on another set of HPs. Choosing optimal values for the two sets of HPs is critical to ensure the high quality of the resulting ML-PES model. In this paper, we explore HP optimization strategies tailored for ML-PES generation using a custom-coded parallel particle swarm optimizer (available freely at https://github.com/suresh0807/PPSO.git). We employ the smooth overlap of atomic positions (SOAP) descriptor in combination with GPR-based Gaussian approximation potentials (GAP) and optimize HPs for four distinct systems: a toy C dimer, amorphous carbon, $α$-Fe, and small organic molecules (QM9 dataset). We propose a two-step optimization strategy in which the HPs related to the feature extraction stage are optimized first, followed by the optimization of the HPs in the training stage. This strategy is computationally more efficient than optimizing all HPs at the same time by means of significantly reducing the number of ML models needed to be trained to obtain the optimal HPs. This approach can be trivially extended to other combinations of descriptor and ML algorithm and brings us another step closer to fully automated ML-PES generation.
Motivation & Objective
- To address the challenge of hyper-parameter optimization in machine learning interatomic potentials (ML-PES), which critically affects model accuracy and efficiency.
- To reduce the computational burden of simultaneous hyper-parameter optimization across multiple stages (feature extraction and model training).
- To develop a scalable, automated workflow for generating high-accuracy ML-PES with minimal user intervention.
- To validate the method across diverse systems: a C-dimer, amorphous carbon, α-Fe, and the QM9 dataset.
- To demonstrate that hyper-parameters optimized for a given training set yield superior performance when applied to that same data set.
Proposed method
- A custom parallel particle swarm optimizer (PPSO) is implemented and freely released to enable stochastic hyper-parameter search.
- The two-step strategy first optimizes SOAP hyper-parameters (e.g., cutoff radii, width parameters) by maximizing kernel distribution variance and minimizing skewness.
- Subsequently, GAP hyper-parameters (e.g., kernel length scales, regularization) are optimized by minimizing root mean square error (RMSE) on a test set.
- SOAP descriptors are compressed by retaining only the 450 components with the lowest singular values, preserving accuracy while reducing computation.
- The method uses a fixed, small SOAP basis (n_max = l_max = 4) to reduce dimensionality and computational cost.
- Validation is performed on four systems: a C-dimer, amorphous carbon, α-Fe, and the QM9 dataset, using DFT as the reference method.
Experimental results
Research questions
- RQ1Can a two-step hyper-parameter optimization strategy reduce the number of required ML model evaluations while maintaining or improving model accuracy?
- RQ2Does optimizing SOAP hyper-parameters based on kernel distribution statistics (variance and skewness) lead to better subsequent GAP model performance?
- RQ3Can a small SOAP basis (n_max = l_max = 4) produce GAP models with performance comparable to larger bases?
- RQ4Is there a transferability gap when using hyper-parameters optimized on a small training set for a larger one?
- RQ5Can the proposed PSO-based framework be generalized to other descriptors and machine learning architectures beyond SOAP and GAP?
Key findings
- The two-step optimization strategy reduced the number of required GAP model training runs, significantly lowering computational cost compared to joint optimization.
- For the QM9 dataset, the method achieved a mean absolute error (MAE) of 64.5 meV/molecule using only 1,000 training molecules and a small SOAP basis (n_max = l_max = 4).
- When hyper-parameters optimized on 100 molecules were applied to a 1,000-molecule training set, the MAE increased to 84.3 meV/molecule, indicating that HPs must be tuned per training set size.
- Using the 100-molecule optimized HP set on a 100-molecule test set yielded a MAE of 313 meV/molecule, confirming that HPs are sensitive to data size and should not be transferred.
- The compressed SOAP descriptor (450 components) maintained model quality with reduced computational cost, showing that dimensionality reduction is viable without significant accuracy loss.
- The method achieved performance comparable to or better than existing literature benchmarks, demonstrating its effectiveness across diverse systems including complex materials and organic molecules.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.