Loading...
Searching...
No Matches
UncertaintyAwareSaddle.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3//
4// UA-NEB and UA-Dimer: geometry-preserving saddle search under anisotropic
5// force uncertainty. Yu and Wang, DOI 10.48550/arxiv.2605.24401.
6//
7// A surrogate does not err equally in every direction. The NEB tangent
8// projection and the dimer rotation are both built from Euclidean
9// orthogonality, which treats a direction the model knows well and one it has
10// never sampled as interchangeable. These replace the Euclidean projection
11// with the one orthogonal in the Sigma^{-1} metric, Sigma being the force
12// covariance:
13//
14// P = I - tau (tau^T Sigma^{-1} tau)^{-1} tau^T Sigma^{-1}
15//
16// P is an oblique projector: P tau = 0 and P^2 = P, and P F is Sigma^{-1}-
17// orthogonal to the tangent rather than Euclidean-orthogonal to it. At
18// Sigma = I it is exactly the usual I - tau tau^T, so the classical method is
19// the isotropic special case.
20//
21// "Geometry-preserving" is the property that matters for correctness: P is
22// applied to the force, never to the geometry, and P annihilates nothing but
23// the tangent component. A configuration where the mean force vanishes is
24// still stationary after projection, whatever Sigma says, so the saddle
25// equations of the mean potential are untouched and only the path taken to
26// them changes.
27
28#ifndef GPR_ML_UNCERTAINTY_AWARE_SADDLE_H_
29#define GPR_ML_UNCERTAINTY_AWARE_SADDLE_H_
30
31#include <Eigen/Core>
32
33namespace gpr {
34namespace uasaddle {
35
43[[nodiscard]] Eigen::MatrixXd obliqueNormalProjector(
44 const Eigen::VectorXd& tangent, const Eigen::MatrixXd& force_covariance);
45
48[[nodiscard]] Eigen::VectorXd projectPerpendicular(
49 const Eigen::VectorXd& force, const Eigen::VectorXd& tangent,
50 const Eigen::MatrixXd& force_covariance);
51
54[[nodiscard]] Eigen::VectorXd projectPerpendicularIsotropic(
55 const Eigen::VectorXd& force, const Eigen::VectorXd& tangent);
56
63[[nodiscard]] Eigen::VectorXd projectPerpendicularDiagonal(
64 const Eigen::VectorXd& force, const Eigen::VectorXd& tangent,
65 const Eigen::VectorXd& force_variance);
66
75[[nodiscard]] Eigen::VectorXd covarianceWeightedRotationForce(
76 const Eigen::VectorXd& force_one, const Eigen::VectorXd& force_two,
77 const Eigen::VectorXd& axis, const Eigen::MatrixXd& force_covariance);
78
81[[nodiscard]] double directionalUncertainty(
82 const Eigen::VectorXd& direction, const Eigen::MatrixXd& force_covariance);
83
84} // namespace uasaddle
85} // namespace gpr
86
87#endif // GPR_ML_UNCERTAINTY_AWARE_SADDLE_H_
Eigen::VectorXd projectPerpendicularDiagonal(const Eigen::VectorXd &force, const Eigen::VectorXd &tangent, const Eigen::VectorXd &force_variance)
double directionalUncertainty(const Eigen::VectorXd &direction, const Eigen::MatrixXd &force_covariance)
Eigen::VectorXd projectPerpendicular(const Eigen::VectorXd &force, const Eigen::VectorXd &tangent, const Eigen::MatrixXd &force_covariance)
Eigen::VectorXd projectPerpendicularIsotropic(const Eigen::VectorXd &force, const Eigen::VectorXd &tangent)
Eigen::MatrixXd obliqueNormalProjector(const Eigen::VectorXd &tangent, const Eigen::MatrixXd &force_covariance)
Eigen::VectorXd covarianceWeightedRotationForce(const Eigen::VectorXd &force_one, const Eigen::VectorXd &force_two, const Eigen::VectorXd &axis, const Eigen::MatrixXd &force_covariance)
Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
Definition Macros.h:16