The surrogate loop and derivative observations¶
A saddle search needs many energy and force evaluations, and each can cost an electronic-structure calculation. A Gaussian-process (GP) surrogate fitted to the evaluations already made can propose the next steps, provided it is refitted when it disagrees with a new measurement and is never the final judge. A surrogate saddle search alternates predictions with measured energies and forces. The GP supplies a differentiable model for the inner optimizer; the underlying potential supplies the observations and the force used for acceptance. NEB and the dimer retain Cartesian positions, including for linear molecules and systems with frozen atoms.
Status: implemented; this page describes the behaviour of gprn and
gprd and the regression tests that fix it. The overall method is in
How GPRidge finds a saddle.
The method and its applications are described in Goswami et al. [5].
Joint energy and gradient observations¶
Write \(g(x)=\nabla E(x)\), so the physical force is \(-g(x)\). For \(D\) moving Cartesian coordinates, each oracle evaluation returns one energy and \(D\) gradient components. These constrain one latent scalar function. They need not be independent: translation invariance, for example, introduces exact relations among gradient components.
For a scalar energy kernel \(k(x,z)\), the observation covariance is
For observations stored as forces, both off-diagonal blocks change sign. The gradient–gradient block retains its sign. With \(N\) geometries, the joint training matrix has \(N(D+1)\) channels. The implementation groups energies first and then each derivative component across geometries. See the joint energy–force kernel for the derivative construction.
Every purchased observation includes its complete energy and gradient. Training-set selection can reduce the hyperparameter fitting set; observation retention and posterior conditioning are separate operations. Deduplicating an identical geometry must not turn a joint observation into an energy-only or force-only row. Gradient information improves local constraints, but the number of channels alone supplies no fixed reduction in oracle calls.
A fitted background and an active residual¶
The model can retain a fitted posterior as its background and condition it on disjoint new observations. Let \(m_B\) and \(C_B\) be the background posterior mean and covariance, and let \(K_A\) be an optional independent active residual kernel. All three refer to joint energy–gradient channels in the same physical units. For new channels \(U\), define
The updated posterior is
ConditionalPosterior implements these equations. With \(K_A=0\), this
is sequential conditioning under the fixed background model. Adding a
nonzero residual changes the model; its parameters are fitted to the
conditional residual likelihood. The background observations must not be
purchased or assimilated again as independent new evidence.
GaussianProcessRegression::prepareActivePosterior checks that the
background’s fitted observations are a prefix of the full data, and forms
new channels from the suffix. AtomicDimer::refreshGPRModelFixedTheta
uses this route when its state contract permits it; otherwise it updates
the model with the full observations. The correction factor has the size
of the new channels, while evaluation of its background covariance still
has a cost. This identity does not establish a wall-time speedup by itself.
What triggers a refit¶
A measurement must be compared with the posterior that proposed it, before conditioning on that measurement. Comparing with a reset model loses the active correction and its output transform; comparing after assimilation can conceal a prediction error.
AtomicDimer::refitGPRModel checks for a restricted active refit and for
agreement with the retained posterior. A measured curvature contradiction
requires a full refit even when forces agree. Parameter initialization must
follow the agreement check because it replaces posterior state.
The regressions RefitConsistencyUsesTheActivePosterior and
CurvatureContradictionOverridesConsistentForces exercise these decisions.
The inner optimizer uses GP predictions. A selected trial is measured on the underlying potential, retained, and used to update the surrogate. For GP-OIE, one selected band image is acquired at a time; GP-AIE acquires all intermediate images at the outer boundary. Neither schedule identifies the true saddle index from predicted forces alone.
Geometry and acceptance¶
The contact-domain limiter bounds trial geometries using element-pair floors
derived from the ZBL repulsion-onset radii, with the scalar floor retained as
a lower bound when configured. It checks the complete Cartesian step against
every periodic image that could enter the contact range, so a step cannot
cross a floor and land at a feasible endpoint. Candidate pairs come from
cutoffNeighbors: a fully open cell uses linkcell pairs_open, and a
periodicity mask uses pairs_within_pbc. The feasibility metric uses MinImage.
This acquisition-domain constraint does not modify energies or forces
returned by the potential, but it does restrict the geometries the search can
visit. Derivative stencils retain the coordinates at which the derivative is
defined.
A per-atom force criterion, the largest
\(\sqrt{F_{ix}^2+F_{iy}^2+F_{iz}^2}\) over the atoms \(i\) (in eV/Angstrom),
is selected with --convergence-force-norm max_force_on_atom. The default
auto keeps the norm of each search (l2 and linf are the alternatives;
see the command-line reference).
A force-converged point still requires a curvature check to distinguish a
minimum, a first-order saddle, and a higher-index stationary point.
Path connectivity is a separate property from the local saddle index.
Limits of the convergence claim¶
Finite energy and gradient observations do not determine the potential between the measured geometries. Posterior variance is uncertainty under the chosen GP model, not a deterministic error bound on an arbitrary potential. Exact interpolation and a small variance therefore do not prove that a surrogate search reaches the same saddle as a direct search.
scripts/derive_surrogate_validation_limits.py runs ten exact SymPy
examples. Three bear on this page: identical joint observations can coexist
with different stationary-point indices; a soft stable mode can dominate
saddle displacement; and a symmetric finite-difference Hessian can have the
wrong curvature sign.
The last example means the antisymmetric part of a force stencil alone
cannot bound its symmetric truncation error. The other seven examples cover
the length-scale information in derivative observations, derivative variance,
the rank of a quadratic fit, dimer orientation, and the limits of an index
test that resolves only some modes.
For a nondegenerate quadratic saddle with Hessian \(H\), a gradient perturbation \(e\) displaces its stationary point by \(-H^{-1}e\). The worst-case sensitivity is \(1/\min_j|\lambda_j(H)|\), after removing exact symmetry modes. It is not generally the reciprocal of the most negative eigenvalue. Nonlinear local bounds also require control of the Hessian throughout the neighborhood being considered.
proofs/lean/GPRidge/DimerConvergence.lean proves that an assumed gradient
error bound transfers to the true gradient at a surrogate critical point.
SurrogateConvergence.lean propagates assumed error bounds and decay.
Those statements do not prove that the implemented acquisition and refit
schedule satisfies their assumptions. Measured forces, numerical curvature
checks, and complete benchmark records establish the reported outcomes.