Skip to main content
Back

EPFL Unifies Three Chemistry Algorithms Into One Bayesian Loop, Cutting Costs by 4x

One Bayesian optimization loop unifies minimization, dimer, and NEB saddle searches, cutting DFT calls by roughly 10x with a Rust reference implementation.

Pro

  • A unified Bayesian optimization loop covers minimization, dimer, and NEB saddle searches, differing only in inner optimizer and acquisition rule.
  • Local per-search Gaussian processes cut electronic structure calls by roughly 10x versus classical methods on saddle problems.
  • Inverse-distance kernel with analytical gradient observations gives rotational invariance and 3N+1 constraints per DFT call.
  • Optimal Transport GP extensions (FPS with EMD, MAP barrier, adaptive trust radius) drop failure rate from 12% to 2% on 500+ reactions.
  • Random Fourier Features decouple hyperparameter training from prediction, scaling to larger systems and longer NEB paths.
  • Rust reference code chemgp-core released, with production C++ gpr_optim used via eOn.

Finding saddle points on a potential energy surface is one of those problems where nearly every step of the search costs minutes to hours of DFT time, and where a chemist doing high throughput screening might need to characterize thousands of transitions. A new tutorial review from EPFL's Lab-COSMO argues that the three algorithms people actually use for this, local minimization, the dimer method, and the nudged elastic band, are the same Bayesian optimization loop wearing three costumes, and it ships a Rust reference implementation to prove the point.

Why saddle searches are expensive

A reaction rate under harmonic transition state theory depends exponentially on the barrier between a minimum and a first order saddle point, where the Hessian has exactly one negative eigenvalue. Point searches typically need hundreds of such evaluations to converge, and this cost becomes prohibitive in large-scale studies where workflow-driven screening may require characterizing thousands of distinct transitions. Each of those evaluations is a full electronic structure calculation.

Machine learning potentials like MACE-MP-0 or PET-MAD are the obvious lever, but they have a specific blind spot for this task. Saddle points are rare events, and equilibrium sampling almost never visits them. Random structure searches explore configuration space without bias toward the transition region. Most training sets assembled from these approaches will have a blind spot precisely where it matters for kinetics. A universal potential can be accurate at the minimum and unreliable exactly where the barrier lives.

The local surrogate alternative

The alternative developed here is a per-search Gaussian process trained on the fly from the tens of DFT calls the search itself generates, then thrown away. Convergence to a saddle point typically requires on the order of 30 electronic structure evaluations, compared to the thousands needed for even a modest MLIP. The GP is system specific and method specific by construction, so switching from DFT to coupled cluster or from one molecule to another needs no retraining.

The design choices that make this work are unusually specific:

  • Inverse distance features. The kernel operates on 1/r between atom pairs rather than raw Cartesian coordinates or SOAP descriptors. This gives rotational and translational invariance for free, and the 1/r divergence acts as a built in barrier that stops the surrogate from ever predicting a smooth path through a repulsive wall.
  • Gradient observations. Every DFT call returns forces at negligible extra cost, so a 10 atom system contributes 31 constraints per evaluation instead of one. Thirty calls give 930 independent observations.
  • Analytical derivatives. Using nested automatic differentiation introduces numerical noise of order 10 to the minus 8 in the force-force block. This is the same magnitude as the Tikhonov regularizer, so the assembled covariance matrix loses positive definiteness after approximately 10 training points. Autodiff simply does not survive here.

One loop, three algorithms

The unifying claim is that minimization, the dimer, and NEB share the same six step outer loop, and differ only in what runs inside it. The skeleton looks like this:

while not converged:
    subset = farthest_point_sample(data)      # bounded hyperparam cost
    theta  = train_hyperparameters(subset)    # MAP with log barrier
    surrogate = build_gp(data, theta)         # exact GP or RFF
    x_prop = inner_optimize(surrogate)        # L-BFGS / CG+L-BFGS / NEB
    x_prop = clip_to_trust_region(x_prop)     # EMD based
    y, grad = oracle(x_prop)                  # the only expensive call
    data.append((x_prop, y, grad))
    update_trust_radius()

Minimization runs L-BFGS on the surrogate. The dimer runs conjugate gradient rotation plus L-BFGS translation. NEB relaxes a chain of images and picks the next one to evaluate by an upper confidence bound score. The GP itself does not know or care which caller produced the geometry it is fitting.

The extensions that make it production ready

A naive per-step GP fails in specific ways, and the paper's Optimal Transport GP additions are engineered around each failure mode. Together these changes reduce the failure rate from approximately 12% to approximately 2% across 500+ benchmark reactions.

  • Farthest point sampling with Earth Mover's Distance. Hyperparameters are optimized on a geometrically diverse subset, while prediction uses the full dataset. EMD solves a per element assignment problem so that a methyl rotation or proton hop between equivalent sites is recognized as a small change rather than a large one.
  • MAP regularization. A logarithmic barrier caps the signal variance to stop it running away, and a sign reversal diagnostic detects when hyperparameters are oscillating between competing likelihood modes as new data arrives, triggering a subset growth retry.
  • Adaptive trust radius. The trust region grows with an exponential saturation curve as the GP earns credibility, capped by a physical ceiling that scales as one over the square root of the atom count.
  • Random Fourier Features. For training sets beyond around 100 configurations, RFF replaces the cubic exact GP solve with Bayesian linear regression in a fixed dimensional feature space, giving roughly a 1000x speedup for 400 observations at 200 features while preserving the predictive variance the acquisition rule needs.

What the numbers look like

On the LEPS collinear atom transfer surface, classical NEB converges in 156 oracle calls. The all images evaluated GP-NEB variant needs 100, and the one image evaluated variant, which picks the highest variance image per cycle, needs 42. For local minimization on the same surface, the GP wrapper hits the 0.01 eV per Angstrom force threshold in 9 calls versus 57 for direct L-BFGS.

The gains are not uniform. On the cheap Muller-Brown surface, GP minimization loses to L-BFGS (50 versus 34 calls) because the surrogate overhead does not pay off when the oracle is trivial. The largest gains show up in anisotropic saddle searches with expensive oracles and available analytical forces, which is the regime that matters for real chemistry. On a PET-MAD C3H5 allyl radical dimer search, the OTGPD variant reaches convergence in 13 oracle calls versus roughly 50 for the standard dimer.

What is actually available

The pedagogical reference implementation is chemgp-core, a Rust crate where each equation in the paper maps to a specific function, with documentation online. Production scale saddle point studies on hundreds of molecular reactions use a separate C++ code called gpr_optim, reported in the companion JCTC paper, and the two share the same algorithmic core. Both plug into the eOn saddle point search framework for real workflows.

The broader point the review is making, beyond any specific speedup number, is that the interesting design choices in this space live at the level of the outer loop rather than the surrogate. Once you accept that a GP fit to thirty points and thrown away is a legitimate object, the differences between finding a minimum, walking uphill along a curvature direction, and relaxing a chain of images collapse into the same code path.