Papers
Topics
Authors
Recent
Search
2000 character limit reached

Locally Trained SOAP-GAP Model

Updated 11 November 2025
  • The paper introduces a machine-learned interatomic potential that uses SOAP descriptors and Gaussian process regression to predict energies, forces, and virials with quantum accuracy.
  • The methodology leverages active learning and local filtering of datasets to enhance accuracy and transferability within specific configurational regions.
  • Practical applications include large-scale molecular dynamics and Monte Carlo simulations, balancing computational efficiency with high-fidelity results.

A Locally Trained SOAP-GAP (Smooth Overlap of Atomic Positions - Gaussian Approximation Potential) model is a machine-learned interatomic potential constructed by fitting Gaussian process regression to local atomic environments, defined via the SOAP descriptor. This model targets specific configurational or spatial regions (such as defect cores, surfaces, or alloy concentrations) to achieve enhanced accuracy and transferability within the selected local domain. The model enables quantum-accurate prediction of energies, forces, and virials for atomistic simulations, with practical deployment in large-scale molecular dynamics, Monte Carlo sampling, and related techniques.

1. Theoretical Foundations

A SOAP-GAP model is predicated on the principle that the total potential energy of an atomic system can be decomposed as a sum over local atomic contributions, each represented as a feature vector derived from the local environment:

Etot=iEi,E_\text{tot} = \sum_i E_i \,,

where each EiE_i is modeled as a function of the local atomic neighborhood using the SOAP representation and a kernel-based regression within the Gaussian process (GP) framework.

Neighbor Density and Basis Expansion

The local environment for atom ii is encoded via a smeared neighbor density

ρiα(r)=jnbrsδzj,αexp(rrij22σ2)fcut(rij)\rho_i^\alpha(\mathbf{r}) = \sum_{j \in \text{nbrs}} \delta_{z_j, \alpha} \exp\left( -\frac{\left|\mathbf{r} - \mathbf{r}_{ij}\right|^2}{2\sigma^2} \right) f_\text{cut}(|\mathbf{r}_{ij}|)

where zjz_j is the chemical identity, σ\sigma is the atomic Gaussian width, and fcutf_\text{cut} is a smooth radial cutoff. This density is projected onto a set of orthogonal radial basis functions gn(r)g_n(r) and spherical harmonics Ylm(r^)Y_{lm}(\hat{r}):

ρα(r)=nlmcnlmαgn(r)Ylm(r^)\rho^\alpha(\mathbf{r}) = \sum_{nlm} c_{nlm}^\alpha\, g_n(|r|)\, Y_{lm}(\hat{r})

SOAP Power Spectrum

Permutationally, translationally, and rotationally invariant features are constructed from the expansion coefficients as the SOAP power spectrum:

EiE_i0

All EiE_i1 are concatenated into a single descriptor vector EiE_i2 for each atomic environment.

SOAP-GAP Kernel

Similarity between environments is measured by a normalized dot-product polynomial kernel:

EiE_i3

with typical exponents EiE_i4. Normalization ensures EiE_i5.

Gaussian Process Regression

Each local atomic energy is expanded over EiE_i6 "sparse" (inducing) environments EiE_i7 as

EiE_i8

with weights EiE_i9 found by solving the regularized linear system:

ii0

where ii1, ii2 contains target observables (energies, forces, virials), and ii3 encapsulates regularization parameters for different observables.

2. Data Preparation and Active Learning Workflow

Locally trained SOAP-GAP models require an appropriately curated and labeled dataset. The principal steps in database construction, as implemented for Ag-Pd alloys (Rosenbrock et al., 2019), are:

  1. Initial Dataset Generation
    • Enumerate fcc- and bcc-based supercells up to 4 atoms for multiple compositions.
  2. Preliminary MTP Fit
    • Fit a polynomial MTP to DFT-computed structures.
  3. Active Learning Iteration
    • Relax each structure; high extrapolation grades trigger DFT calculation and inclusion in the training set.
  4. Expansion
    • Extend to larger cells (up to 12 atoms), yielding 10,850 structures and 774 unique DFT-relaxed configurations.
  5. High-Precision DFT Evaluation
    • All 774 training configurations re-evaluated at tight DFT settings (k-point density ii4 Åii5, EDIFF=ii6).
  6. Locality Filtering

No off-lattice or liquid data is included during training for solid-phase models.

3. Descriptor, Sparsification, and Kernel Construction

Descriptor construction and sparsification are the computational bottlenecks for SOAP-GAP models. The procedure is as follows:

  • SOAP Descriptor Evaluation
    • For each atom in each frame, evaluate ii7 within a cutoff ii8 (e.g., ii9–ρiα(r)=jnbrsδzj,αexp(rrij22σ2)fcut(rij)\rho_i^\alpha(\mathbf{r}) = \sum_{j \in \text{nbrs}} \delta_{z_j, \alpha} \exp\left( -\frac{\left|\mathbf{r} - \mathbf{r}_{ij}\right|^2}{2\sigma^2} \right) f_\text{cut}(|\mathbf{r}_{ij}|)0 Å).
    • Descriptor dimensionality scales as ρiα(r)=jnbrsδzj,αexp(rrij22σ2)fcut(rij)\rho_i^\alpha(\mathbf{r}) = \sum_{j \in \text{nbrs}} \delta_{z_j, \alpha} \exp\left( -\frac{\left|\mathbf{r} - \mathbf{r}_{ij}\right|^2}{2\sigma^2} \right) f_\text{cut}(|\mathbf{r}_{ij}|)1, where ρiα(r)=jnbrsδzj,αexp(rrij22σ2)fcut(rij)\rho_i^\alpha(\mathbf{r}) = \sum_{j \in \text{nbrs}} \delta_{z_j, \alpha} \exp\left( -\frac{\left|\mathbf{r} - \mathbf{r}_{ij}\right|^2}{2\sigma^2} \right) f_\text{cut}(|\mathbf{r}_{ij}|)2 is the number of elements.
  • Compression Techniques
    • Apply embedding (e.g., ρiα(r)=jnbrsδzj,αexp(rrij22σ2)fcut(rij)\rho_i^\alpha(\mathbf{r}) = \sum_{j \in \text{nbrs}} \delta_{z_j, \alpha} \exp\left( -\frac{\left|\mathbf{r} - \mathbf{r}_{ij}\right|^2}{2\sigma^2} \right) f_\text{cut}(|\mathbf{r}_{ij}|)3, ρiα(r)=jnbrsδzj,αexp(rrij22σ2)fcut(rij)\rho_i^\alpha(\mathbf{r}) = \sum_{j \in \text{nbrs}} \delta_{z_j, \alpha} \exp\left( -\frac{\left|\mathbf{r} - \mathbf{r}_{ij}\right|^2}{2\sigma^2} \right) f_\text{cut}(|\mathbf{r}_{ij}|)4) to map chemical and radial indices to lower ρiα(r)=jnbrsδzj,αexp(rrij22σ2)fcut(rij)\rho_i^\alpha(\mathbf{r}) = \sum_{j \in \text{nbrs}} \delta_{z_j, \alpha} \exp\left( -\frac{\left|\mathbf{r} - \mathbf{r}_{ij}\right|^2}{2\sigma^2} \right) f_\text{cut}(|\mathbf{r}_{ij}|)5-dimensional representation.
    • Use reduced forms such as ρiα(r)=jnbrsδzj,αexp(rrij22σ2)fcut(rij)\rho_i^\alpha(\mathbf{r}) = \sum_{j \in \text{nbrs}} \delta_{z_j, \alpha} \exp\left( -\frac{\left|\mathbf{r} - \mathbf{r}_{ij}\right|^2}{2\sigma^2} \right) f_\text{cut}(|\mathbf{r}_{ij}|)6, ρiα(r)=jnbrsδzj,αexp(rrij22σ2)fcut(rij)\rho_i^\alpha(\mathbf{r}) = \sum_{j \in \text{nbrs}} \delta_{z_j, \alpha} \exp\left( -\frac{\left|\mathbf{r} - \mathbf{r}_{ij}\right|^2}{2\sigma^2} \right) f_\text{cut}(|\mathbf{r}_{ij}|)7 schemes to achieve linear scaling with ρiα(r)=jnbrsδzj,αexp(rrij22σ2)fcut(rij)\rho_i^\alpha(\mathbf{r}) = \sum_{j \in \text{nbrs}} \delta_{z_j, \alpha} \exp\left( -\frac{\left|\mathbf{r} - \mathbf{r}_{ij}\right|^2}{2\sigma^2} \right) f_\text{cut}(|\mathbf{r}_{ij}|)8.
  • Sparse Point Selection
    • Choose ρiα(r)=jnbrsδzj,αexp(rrij22σ2)fcut(rij)\rho_i^\alpha(\mathbf{r}) = \sum_{j \in \text{nbrs}} \delta_{z_j, \alpha} \exp\left( -\frac{\left|\mathbf{r} - \mathbf{r}_{ij}\right|^2}{2\sigma^2} \right) f_\text{cut}(|\mathbf{r}_{ij}|)9 representative environments (e.g., zjz_j0=500–2000) via CUR, zjz_j1-means, random, or uniform sampling.
    • Remove near-duplicates according to a jitter threshold.
  • Kernel Assembly
    • Build kernel blocks zjz_j2 (zjz_j3) and zjz_j4 (zjz_j5).
    • Compute derivatives for force and stress learning.

4. Model Fitting, Regularization, and Validation

The fitting procedure specifically addresses the high-dimensional kernel regression while ensuring stability and generalization:

  • Regularization
    • Distinct regularization (zjz_j6) per observable: typical settings are zjz_j7 eV/atom, zjz_j8 eV/Å, zjz_j9 eV/atom.
    • Additional small jitter (σ\sigma0) added to kernel diagonals.
  • Parallel Fit and Hyperparameter Optimization
    • Distributed descriptor computation and linear algebra across σ\sigma1 MPI ranks. Use ScaLAPACK QR for scalable solves (Klawohn et al., 2023).
    • Hyperparameters (cutoff, basis resolution, kernel exponent, regularization strength) tuned by cross-validation on held-out frames (10–20% test split).
  • Model Validation
    • Reported benchmarks (Rosenbrock et al., 2019):
    • On liquid MD test set (6000 snapshots): energy RMSE σ\sigma2 meV/atom, force RMSE σ\sigma3 meV/Å, virial RMSE σ\sigma4 meV/Åσ\sigma5.
    • Phonon spectrum integrated RMSE: σ\sigma6 THz, train/test parity.
    • Transition path "swap" test: SOAP-GAP correctly predicts physical barriers without spurious minima.
  • Posterior Variance Diagnostics
    • The prediction variance, σ\sigma7, identifies out-of-sample areas where model uncertainty is large.

5. Implementation and Practical Usage

A locally trained SOAP-GAP model is typically implemented using the QUIP/GAP suite (Klawohn et al., 2023), with a workflow as follows:

  • Configuration File Example:

fcutf_\text{cut}9

  • Fitting Invocation:

gn(r)g_n(r)0

When focusing on a local region, ensure that configurations are tagged accordingly (e.g., config_type="surf").

  • Hardware and Scaling:
    • Descriptor memory scales as σ\sigma8, with kernel memory as σ\sigma9.
    • Fitting fcutf_\text{cut}0 with fcutf_\text{cut}1 is feasible using MPI and descriptor compression.
    • Training is typically completed within hours on fcutf_\text{cut}2 CPU cores.
  • Post-Fitting Deployment:
    • Validated XML models are compatible with ASE, LAMMPS, and other atomistic simulation environments.

6. Computational Cost and Comparative Performance

SOAP-GAP offers DFT-like accuracy but at significantly reduced computational cost relative to ab initio methods:

Model Typical RMSE (energy) Relative Evaluation Speed Suitable for
SOAP-GAP fcutf_\text{cut}3 meV/atom 10³–10⁴× faster than DFT Off-lattice modeling
MTP fcutf_\text{cut}4–fcutf_\text{cut}5 meV/atom fcutf_\text{cut}6 faster than GAP Phase diagrams, large sampling

Evaluating a slice with fcutf_\text{cut}7 billion potential calls is feasible with MTP but remains prohibitive with SOAP-GAP. GAP evaluations scale as fcutf_\text{cut}8 and are several times slower per atom than MTP, but orders of magnitude faster than on-the-fly DFT (Rosenbrock et al., 2019).

7. Limitations and Domain of Applicability

Locally trained SOAP-GAP models, while excelling in local accuracy and transferability within their training domain, are limited in their extrapolation ability outside of that space. The exclusion of off-lattice and liquid configurations in training restricts the model’s generalization to high-temperature or disordered phases. Model quality is strongly dependent on choice and diversity of training data, regularization strength, and descriptor completeness. The computational requirements for fitting SOAP-GAP scale steeply with descriptor and sparse set size, motivating compression and parallelism techniques introduced in recent GAP frameworks (Klawohn et al., 2023).

A plausible implication is that, for applications requiring extensive sampling (e.g., nested sampling, large-scale Monte Carlo), alternative polynomial potentials such as MTP offer a better cost-precision trade-off, while SOAP-GAP is preferred for simulations where off-lattice or local accuracy is paramount, and model uncertainty needs quantification.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Locally Trained SOAP-GAP Model.