Growing String Method
Module: sci_form::gsm (core since 2026-11-08; F82 validated) Feature flag: none — alpha-gsm and experimental-gsm are compatibility aliases; sci_form::alpha::gsm re-exports the core module.
Validation and limits
| Question | Answer |
|---|---|
| Compared with | ASE CI-NEB and analytic surfaces |
| Measured separation | Müller-Brown barrier 1.6e-3, TS location 0.028; five curved wells ≤0.8% |
| Confidence region | Müller-Brown plus five curved wells |
| Main limitation | no pyGSM/Transition1x parity; the energy backend limits accuracy |
The raw rows and the exact tolerances are in the full validation matrix.
Overview
Implements a reaction path and transition state finder driven purely by force-field gradients. Unlike NEB (Nudged Elastic Band), GSM does not require an initial guess of the full path — it grows the string from both reactant and product endpoints, finding the minimum energy path and saddle point with fewer energy evaluations.
Theory
String Initialization
Given reactant
Growth Step
At each iteration, new nodes are added along the string:
- Tangent:
(central difference) - Perpendicular gradient:
- Optimization: Interior nodes are optimized along the perpendicular gradient
- New node: Added at distance
along the interpolation direction
Junction and Saddle Detection
- Junction: When tips from both ends meet (distance <
) - Saddle point: Node with maximum energy along the converged string
- Refinement: Steepest descent on the perpendicular gradient around the saddle candidate
API
use sci_form::gsm::*;
// Interpolate between two geometries
let midpoint = interpolate_node(&reactant, &product, 0.5);
// Energy function (any force field)
let energy_fn = |coords: &[f64]| -> f64 { /* UFF, MMFF94, EHT, etc. */ };
// Configure GSM
let config = GsmConfig {
max_nodes: 11, // nodes along the string
step_size: 0.01, // optimization step size
grad_tol: 0.5, // gradient tolerance
max_iter: 100, // max optimization iterations per growth
fd_step: 0.005, // finite difference step for gradient
};
// Grow the string
let path = grow_string(&reactant, &product, &energy_fn, &config);
// path.nodes: Vec<Vec<f64>>
// path.energies: Vec<f64>
// path.joined: bool
// path.iterations: usize
// Find transition state
let result = find_transition_state(&reactant, &product, &energy_fn, &config);
// result.ts_coords: Vec<f64>
// result.ts_energy: f64
// result.activation_energy: f64 (forward barrier)
// result.reverse_barrier: f64 (reverse barrier)
// result.path_coords: Vec<Vec<f64>>
// result.n_nodes: usize
// result.energy_evaluations: usize
// Refine saddle point
let (refined_coords, refined_energy) = refine_saddle(
&ts_guess, &energy_fn, (&prev_node, &next_node),
max_steps, fd_step, step_size,
);Energy Backends
GSM works with any energy function that maps coordinates to a scalar:
| Backend | Speed | Accuracy | Best For |
|---|---|---|---|
| UFF | Fast | Low | Quick screening |
| MMFF94 | Fast | Medium | Organic reactions |
| EHT | Medium | Medium | π-conjugated systems |
| PM3 | Slow | High | Reaction barriers |
| xTB | Slow | High | Organometallic reactions |
Output
The transition state result includes:
- Transition state geometry and energy
- Activation energy (forward barrier:
) - Reverse barrier (
) - Full reaction path as a sequence of geometries with energies
- Energy evaluation count for benchmarking efficiency
Validation (F82, 2026-10-14)
External gate tests/alpha_gsm_validation.rs vs scripts/validation/oracle_gsm.py (ASE CI-NEB/FIRE on Müller-Brown, TS −40.66 textbook): barrier 1.6e-3, TS location 0.028. Fix: arc-length reparametrization every iteration (without it nodes slide into the minima and the barrier collapses to 0.02). pyGSM/Transition1x not run.
Tests
cargo test --test experimental_gates -- test_gsm8 integration tests (tests/experimental/test_gsm.rs) covering: linear interpolation, quarter-point interpolation, string growth, transition state finding on a double-well potential, path ordering, energy evaluation counting, symmetric barrier detection, and saddle point refinement.
These tests live in the experimental_gates target — see Overview for the full command matrix.