IRC certificate walk: the old and the current protocol¶
A certificate that walks downhill from a saddle and compares the two ends with the endpoints can fail for reasons that have nothing to do with the saddle. The walk can stall on stiff bond stretches, stop while the force is still large, or be compared with an endpoint that is not a minimum. This note records the walk before and after the changes that addressed those failures, step by step, and the measurements that motivated them. The explanation page “Saddle-point certificates” states what the certificate claims, and the how-to “Get an IRC certificate for a saddle” runs it.
What was measured, and where the inputs are¶
The numbers below come from one measurement session on cells of the Baker and Birkholz sets. The session used UMA/OMol, charge and spin from bench/determinism/uma_baker_birkholz.json, a 25 Å box, OPENBLAS_CORETYPE=HASWELL, and one thread. The force tolerance is the 0.5.0 search tolerance, 0.0514221 eV/Å. The walk started from the highest-energy image of a gpridge band saved for each cell. Masses are the standard atomic weights the certificate holds (atomicMassAmu).
The tables do not all cover the same cells.
Table |
Cells |
|---|---|
Old protocol, and the geometry sections that follow the tables |
13_hf, 15_hocl, 16_h2po4, 25_hcnh2 |
Fixed protocol, search and IRC calls and times |
13_hf, 12_ethane, 11_grignard, 16_oxirane |
Earlier |
13_hf, 15_hocl, 16_h2po4, 25_hcnh2 |
Only 13_hf is in all three. The geometry sections compare the old walk with the first fix on the four cells of the first row, and they call that first fix “fixed”. Its numbers are those of the F_max / λ_max table (for example 244 steepest-descent steps and a force of 0.0976 eV/Å for 16_h2po4 forward). The Newton step in the fixed protocol list below replaced that first fix, and it was measured only on the cells of the timing table, so no cell of that table other than 13_hf appears in the geometry sections.
These measurements cannot be regenerated from this repository, and no table is backed by a committed CSV. The saved bands were a local directory (uma26-branch/*/band.con) that is not distributed, and so are the *.extxyz geometries named in the last section. The old protocol ran from commit 8f1ee55fc, which is not in this repository’s history, so the description of the old walk is the record made at the time. The argument lists of the GPRidge 0.5.0 band runs of the 44 UMA cells are in the Zenodo record 10.5281/zenodo.23776354 (gprn.argv.json per cell), and bench/determinism/run_uma_cells.py replays them with the certificate on, as bench/determinism/README.md describes. Whether the saved local bands match those runs has not been checked. Read the numbers as a record of one session, and read the step rules in the “Fixed protocol” section as the part that can be checked: they match gpr/optimization/EndpointConnectivity.h. The history of that file, from git log -- gpr/optimization/EndpointConnectivity.h, includes the Newton step and the walk’s own wall (5b93ae4e0), the --irc-certificate switch and the record file (2523e6580), the bond-graph verdict (b571bcdc1), the choice of the saddle Hessian (b17b6eb29), and the vibrational minimum checks (d26a977d5).
Distances in the tables are permutation-aware Kabsch RMSD in Å against the deposited reactant and product, not against the endpoints after they have been relaxed. The certificate compares a walk to the relaxed endpoints. A distance to the deposit is larger whenever the deposit itself is not the minimum.
Bond graphs use Cordero covalent radii (Dalton Trans. 2008) and a cutoff of 1.2 times the sum of the two radii. The code holds radii for H 0.31, C 0.76, N 0.71, O 0.66, F 0.57, Si 1.11, P 1.07, S 1.05, Cl 1.02 and Br 1.20 Å. An atom of any other element has no edges. The log writes an edge as i-j, with the atom indices in file order, separated by commas. The tables and sections below name edges by element pair for readability.
Old protocol¶
This is the walk of commit 8f1ee55fc, recorded from that code (the commit is not reachable from this repository). It is not a path-following IRC. The code takes one step off the saddle and minimizes.
Cartesian central-difference Hessian, step 0.01 Å. The imaginary mode is the lowest eigenvector of the mass-weighted Hessian, converted back to Cartesian by dividing each component by sqrt(m). Rigid translation and rotation are not removed.
Kick length
0.0514221 / |λ|along that unit vector, and the opposite way. If the kick’s RMSD would exceed half the endpoint separation, it is scaled down to that half. On these four saddles the cap did not bind.If the force at the kicked point is already under 0.0514221 eV/Å, the same kick is repeated, at most once per atom, until the force exceeds the tolerance or the separation cap is crossed.
rgmin L-BFGS through
rgmin_solver_step_fg(RGMIN_LBFGS).gtol = 0, one solver iteration per call,4*(3N−6)calls, initial step equal to the kick length,maxmoveequal to the longer saddle-to-endpoint distance. No separate atom cap.Stop when the maximum atomic force is under 0.0514221 eV/Å, or the solver stops moving.
Match: permutation-aware Kabsch RMSD. The ball around a relaxed endpoint is
min(2 * 0.0514221 / λ_min, half the separation of the two relaxed endpoints).λ_minis the smallest positive vibrational eigenvalue at that endpoint. A walk inside one ball and outside the other, with the two walks in different balls, is a connection.
Cell |
λ (eV/Ų) |
rigid fraction of the mode |
kick length (Å) |
L-BFGS steps allowed |
maxmove (Å) |
forward force, RMSD to R, P |
reverse force, RMSD to R, P |
|---|---|---|---|---|---|---|---|
13_hf |
−10.573 |
0.478 |
0.00486 |
72 |
1.517 |
0.0490, 0.786, 0.275 |
0.0503, 0.0158, 0.812 |
15_hocl |
−5.738 |
0.549 |
0.00896 |
24 |
1.875 |
0.0129, 0.0520, 1.266 |
0.0355, 1.471, 0.682 |
16_h2po4 |
−5.533 |
0.468 |
0.00929 |
60 |
2.434 |
0.0270, 0.0624, 1.126 |
0.0504, 1.112, 0.264 |
25_hcnh2 |
−5.672 |
0.495 |
0.00907 |
36 |
2.783 |
0.0457, 1.413, 1.200 |
0.0348, 0.677, 1.533 |
The old forward/reverse RMSDs above are unaligned Cartesian RMSD. The bond graphs, which do not depend on alignment, are in the verdict section.
Fixed protocol¶
--irc-saddle-hessian measured(the default) builds the Cartesian central-difference Hessian and the same mass weighting. When the search did not store that stencil, the log reports the vibrational index of the measurement (first_orderandVibrational index gate).--irc-saddle-hessian model, or[band] irc_saddle_hessian = "model", uses the fitted mean Hessian for the direction when that stencil is absent and keeps it only when one true central derivative is downhill. That check is one negative direction, not an index: the log and the certificate then saydescent direction verified; index not measuredand do not publishsaddle_curvature. Rigid translation and rotation are then projected out of the Cartesian mode (the overlap removed is the “rigid fraction” column above). The initial kick uses the same length formula along that projected unit mode.Mass-weighted steepest descent. The direction is
-g_i / m_i, normalized. A saddle mode is left out of that direction only when its eigenvalue exceeds both the imaginary-mode curvature and the force tolerance divided by the stencil length. The first bound keeps every mode softer than the reaction coordinate. The second is a bond stretch: a stencil step along it would already exceed the tolerance, and that is theλ_maxthat madeF_max / λ_maxcreep. The trial length is the Newton step of the curvature along the direction that remains. A probe of lengthsgivesk = 2 (E(s) − E + slope·s) / s². Whenkis above the stencil resolution the length isslope / k, capped by the longer saddle-to-endpoint reach. Whenkis not above that resolution the probe is still a descent and does not bound the step: the next length is this one times the ratio of the directional slopes at the two ends of the probe, again capped by the reach. A rise shortens the trial toslope / k.The descent stops when a trial no longer lowers the energy, or the force is under 0.0514221 eV/Å, or the number of steps reaches
max(2·max(1, 3N−6), ceil(reach / 0.01 Å)), or the IRC’s own wall is spent. Herereachis the larger Cartesian distance from the saddle to a deposited endpoint, in Å, and 0.01 Å is the stencil step. On the four cells of theF_max / λ_maxtable below the reach term was the larger one, so the cap equals the value in that table’s step-cap column. It does not treat “force still large” as a finished IRC. A walk stopped by that wall isunresolved: the ball and graph fields still print, and the search row is not withdrawn.rgmin L-BFGS from that point, same solver, tolerance 0.0514221 eV/Å (maximum atomic force, strict inequality), initial step equal to the last accepted descent step,
maxmoveequal to the larger ofreachand that step, memorymax(1, 3N−6), and the same step cap as the descent. Search and IRC share the one absolute--max-wall-secondsdeadline, and the log printsSearch timeandIRC timeon their own lines.If that relaxation still has a vibrational eigenvalue below minus the stencil resolution, the geometry is kicked along that mode by
0.0514221 / |λ|toward the side with lower energy and L-BFGS is run again. The eigenvalue is read from a true-oracle Lanczos expansion on the rigid complement. A Ritz value below minus the expansion’s asymmetry, with its residual inside that asymmetry and inside the gap to the next Ritz value, is a negative mode and the remaining directions are not measured. The expansion certifies that there is no such mode only when it has exhausted the complement. A curvature the asymmetry does not separate from zero is not a negative mode, and it is not measured again with the Cartesian stencil. The Cartesian stencil is used only when the probe cannot be measured. A minimum already certified at the same coordinates, bit for bit, is not measured again.The distance is a Kabsch RMSD in the file’s atom order. Atoms are not re-paired. The bond graph uses that same index, so a degenerate rearrangement is not a zero separation. The imaginary-mode sign is fixed by making its largest component positive, and the walk pins Eigen and OpenBLAS to one thread, so a replay from the saved saddle repeats the ends. The record
irc_certificate.txtholds the saddle, the mode, and both ends with their energies, forces and step counts, as decimal numbers with 17 significant digits, which round-trip a double.--irc-certificate offdoes not run this walk: the log printsball=skipped graph=skippedand the process continues from the converged search.
The verdict is the bond graph when the relaxed endpoints have different graphs. Each walk end must be a minimum (force under the same tolerance, no negative mode left) and carry one endpoint’s graph and not the other’s, one each. A conformer of that basin is another minimum with the same graph; the fixed-label RMSD and the energy above the relaxed endpoint are printed and do not decide. ball is that geometric comparison (yes / no). It decides only when the two endpoint graphs are the same, in which case the log prints graph=na. When the labelled separation does not put each endpoint outside the other’s harmonic match ball, the distance test does not apply and the log prints ball=na.
The table below was measured with the Newton step on the canonical argument list (force 0.0514221 eV/Å, one thread, archive off), as recorded in that session. Grignard and oxirane include --gp-environment-types and the anneal stage. The session recorded search call counts equal to those of the F_max / λ_max binary. IRC calls is the walk’s own count, a+b, and IRC time is its wall time.
ball in this table is the geometric comparison. graph is yes, no, or na (one shared endpoint graph). na is not a miss. A later conformer whose graph matches and whose force is under the tolerance is connected even when ball is no.
Cell |
search calls |
saddle λ (eV/Ų) |
IRC calls |
IRC time |
ball |
graph |
|---|---|---|---|---|---|---|
13_hf |
33 |
−10.573 |
77+198 |
8.0 s |
yes |
yes |
12_ethane |
86 |
−0.0159 |
133+206 |
7.9 s |
no |
no |
11_grignard |
45 |
−0.107 |
579+275 |
498 s |
no |
yes |
16_oxirane |
59 |
−1.227 |
213+279 |
180 s |
no |
yes |
HF’s ends are 0.010 Å from the product and 0.0045 Å from the reactant. Ethane’s returned image is the force-quiet shoulder (barrier 2.968 eV); the forward end is a third bond graph and the reverse end has the reactant graph, 1.02 Å from that minimum. Grignard’s reverse end is 0.35 Å from the reactant and its forward end has the product graph, 1.73 Å out. Oxirane’s reverse end is 0.14 Å from the product.
The table below is the earlier F_max / λ_max walk, kept because it is the measurement that showed the stall. λ_max is the stiffest vibrational eigenvalue, so that length is a few thousandths of an angstrom when the force is soft, and the walk spends the reach/stencil cap. The step rule above replaces it. The four geometries were not re-walked for this table.
Cell |
λ_max (eV/Ų) |
resolution |
initial kick (Å) |
step cap |
forward steps, first / median / max step (Å), SD force |
reverse steps, first / median / max step (Å), SD force |
L-BFGS force F, R |
|---|---|---|---|---|---|---|---|
13_hf |
39.169 |
0.00512 |
0.00486 |
152 |
134, 0.00205 / 0.0105 / 0.0957, 0.555 |
84, 0.00220 / 0.00648 / 0.0922, 0.0508 |
0.0366, 0.0508 |
15_hocl |
28.424 |
0.0112 |
0.00896 |
188 |
54, 0.00310 / 0.0146 / 0.0947, 0.262 |
151, 0.00318 / 0.0138 / 0.100, 0.311 |
0.0374, 0.0484 |
16_h2po4 |
54.296 |
0.00833 |
0.00929 |
244 |
244, 0.00118 / 0.00360 / 0.0589, 0.0976 |
244, 0.00253 / 0.0108 / 0.0246, 0.420 |
0.0356, 0.0369 |
25_hcnh2 |
46.740 |
0.0225 |
0.00907 |
279 |
279, 0.00204 / 0.00269 / 0.110, 0.0521 |
41, 0.00238 / 0.0116 / 0.146, 0.0485 |
0.0270, 0.0485 |
H2PO4 in both directions, and HCNH2 forward, stopped because they used every allowed steepest-descent step of the F / λ_max rule. That length is a few thousandths of an angstrom on these stiff molecules, so the walk does not cross the valley before the cap. L-BFGS is what then brings the force under 0.0514221 eV/Å. That is the stall that remains when a steepest descent is not followed by a minimization: the recorded steepest-descent forces are 0.052 to 0.555 eV/Å.
Bond graphs and the triage¶
The geometries behind the tables were saved with the original note as *_saddle.extxyz, *_forward_sd.extxyz, *_forward_lbfgs.extxyz, *_reverse_sd.extxyz, and *_reverse_lbfgs.extxyz. The comment line of each file is energy=... max_force=.... These files are not distributed, and the geometry sections below cannot be checked against them from this repository.
13_hf (two C, five H, one F). Reactant graph: C-C, C-F, five C-H. Product graph: C-C, four C-H, F-H.
Fixed forward, after L-BFGS: product graph. Permutation Kabsch distance to the deposited product 0.0317 Å, force 0.0366 eV/Å. The steepest-descent end was already the product graph, 0.141 Å out, at force 0.555 eV/Å.
Fixed reverse, after L-BFGS: reactant graph, 0.462 Å from the deposited reactant, force 0.0508 eV/Å. The deposit is not this minimum: the earlier true-surface settling of that deposit dropped 0.129 eV and moved 0.477 Å. This end is that settled reactant, not a third structure.
Old protocol: forward has the product graph, reverse has the reactant graph and sits 0.016 Å from the deposit, i.e. on the unrelaxed deposit.
Verdict: the fixed reverse end moves from the deposited saddle onto the reactant minimum. The old end stays on the deposit, which is why a comparison to the settled reactant missed. The bond-graph assignment does not change. The distance that the certificate uses does.
15_hocl (O, C, Cl, H in the file; the product is the CO···HCl complex). Reactant graph: C-O, C-Cl, C-H. Product graph: C-O, Cl-H.
Fixed forward, steepest descent and L-BFGS: reactant graph. Kabsch distance to the deposited reactant 0.389 Å after L-BFGS, force 0.0374 eV/Å. The descent stopped at 0.262 eV/Å.
Fixed reverse, steepest descent and L-BFGS: product graph, the CO···HCl complex, 0.514 Å from the deposited product, force 0.0484 eV/Å. The descent stopped at 0.311 eV/Å.
Old protocol: the same two graphs, one each way.
Verdict: the complex is the product, and only the reverse end goes there. The forward end stays on the covalent reactant graph. A pure steepest descent stops at 0.26 and 0.31 eV/Å. L-BFGS lowers the force and does not change the graph. It does not recover the 0.0001 Å approach of a short fixed-step descent: 0.389 Å is far outside a ball set by the reactant eigenvalue near 9.6 eV/Ų (
2 * 0.0514221 / 9.6 ≈ 0.011Å) if the relaxed reactant is the deposit. The fixed IRC does not turn HOCl into a harmonic-ball connection.
16_h2po4 (P, four O, two H). Reactant graph: four P-O and H-O on atoms 3-5 and 4-6. Product graph: three P-O and both H on oxygen 3.
Fixed forward: reactant graph. Steepest descent used all 244 steps and stopped at 0.0976 eV/Å, 0.397 Å from the deposit. L-BFGS reached 0.0356 eV/Å and 0.552 Å.
Fixed reverse: product graph. Steepest descent stopped at 0.420 eV/Å. L-BFGS reached 0.0369 eV/Å and 0.151 Å from the deposited product.
Old protocol: the same two graphs. Its forward end is 0.062 Å from the reactant deposit, closer than the fixed end.
Verdict: the graphs are unchanged. The fixed descent is the one that stalls (0.098 and 0.420 eV/Å) because
F / λ_maxwithλ_max = 54.3cannot cross the valley inside 244 steps.
25_hcnh2 (C, N, three H). Reactant graph: C-N, C-H, two N-H. Product graph: C-N, C-H, and an H-H contact (atoms 3 and 4 lie inside 1.2 × 0.62 Å).
Fixed forward: product graph, but 1.290 Å from the deposited product after permutation Kabsch. The descent used all 279 steps and stopped at 0.0521 eV/Å. L-BFGS stopped at 0.0270 eV/Å and energy −2574.042 eV. That energy matches the earlier product-side minimum (−2574.04 eV), and the geometry is still outside a ball of half the endpoint separation (about 0.75 Å).
Fixed reverse: reactant graph, 0.686 Å from the deposited reactant, force 0.0485 eV/Å, energy −2573.376 eV.
Old protocol: the same two graphs, and the forward end is also far from both deposits (unaligned RMSD 1.41 and 1.20 Å).
Verdict: the fixed IRC does not bring the product-side end inside the ball. The step cap is what stops it. The bond graph is the product graph either way.
What changes and what does not¶
The fixed rule changes the HF comparison: the reverse end leaves the deposited saddle and sits on the reactant minimum that endpoint settling also finds. It does not change the bond-graph assignment of any of the four. HOCl’s CO···HCl end is the product, and the other end remains the covalent reactant. H2PO4 and HCNH2 keep one end on each reference graph. HOCl and HCNH2 are still not harmonic-ball connections: the ends that carry the right bonds are 0.39 Å and 1.29 Å from the corresponding deposits, and the steepest-descent forces at which the walk hands over to L-BFGS are 0.26, 0.31, 0.098, 0.42 and 0.052 eV/Å.