Soft Modes as a Stress Test for Neural Interatomic Potentials

Machine-learned interatomic potentials are graph neural networks that map atomic positions to energy, and they are now routinely differentiated twice to predict vibrations, phonon spectra and elastic moduli. They are judged almost entirely by force error. Many of the materials people most want to screen with them sit on a mechanical knife-edge: porous frameworks, glasses and granular-like packings. In these materials a small set of very soft vibrational directions controls whether the structure holds up or collapses. We argue that force error is nearly blind to exactly these directions. Near the point where a structure is barely rigid, a fixed absolute error in the predicted curvature becomes an unboundedly large relative error in the soft modes. A potential with excellent force accuracy can therefore invent a stability gap that does not exist, or erase one that does.

The proposal has two parts. We build a controlled benchmark in which rigidity can be dialed continuously toward its collapse point, using jammed sphere packings, model glasses and metal-organic frameworks, all with cheap exact second derivatives. We use it to measure where neural potentials break. We then test one targeted fix. The model is trained on curvature along a handful of directions chosen by classical rigidity theory, rather than on full second-derivative matrices or on forces. If it works, near-collapse materials can be screened reliably at the cost of a few extra reference calculations per structure.

Core Claim

Marginal stability means being just barely rigid. The physics of such systems gives a precise prediction for how learned potentials should fail. In jammed packings, the frequency $\omega^*$ above which ordinary sound-like vibrations take over scales linearly with the excess number of contacts per particle $\delta z = z - z_c$ above the minimum needed for rigidity. Below $\omega^*$ the density of vibrational states is flat, an excess of soft modes known as the Boson peak (Effects of compression on the vibrational modes of marginally jammed solids; Geometric origin of excess low-frequency vibrational modes in weakly connected amorphous solids).

A soft mode with eigenvector $v$ has squared frequency equal to the curvature $v^\top H v$, where $H$ is the Hessian (the matrix of second derivatives of energy). If a learned Hessian carries an error of typical size $\epsilon$ along $v$, first-order perturbation theory shifts that squared frequency by about $\epsilon$. At the characteristic frequency, $\omega^{*2} \sim \delta z^2$, so the relative error grows as $\epsilon/\delta z^2$. Our central prediction follows directly. As a function of true $\delta z$, a neural potential's apparent $\omega^*$ tracks the true linear law down to a floor at $\delta z \sim \sqrt{\epsilon}$. Below that floor it either saturates, producing a spurious gap, or goes imaginary, producing a spurious instability. Force error does not reveal this floor, because forces are dominated by stiff directions.

The fix we test is a relative loss on curvature along soft directions:

$$\mathcal{L}_{\text{soft}} = \sum_{k} \frac{\left(u_k^\top H_\theta u_k - c_k\right)^2}{\left(c_k + \lambda_0\right)^2}.$$

Here $H_\theta$ is the network's Hessian obtained by automatic differentiation, and $u_k$ are probe directions. $c_k$ is the reference curvature along $u_k$, which costs only a directional finite difference or a Hessian-vector product. $\lambda_0$ is a small floor that keeps the ratio finite. The marginal-stability ingredient is how the $u_k$ are chosen. They are the soft and floppy directions of a cheap spring-network rigidity matrix built from the structure's contact or bond graph, following the rigidity-matrix and zero-mode analysis of Singularly isostatic and geometrically unstable rigidity of metal-organic frameworks.

Relation to Prior Work

Three works motivate the gap. Phonon predictions with E(3)-equivariant graph neural networks (Phonax) differentiates equivariant potentials such as NequIP and MACE to obtain phonons for 1,515 crystals. It shows that Hessian labels are data-efficient, reporting one Hessian worth about 7 displaced force configurations. It tests only ordinary stable crystals and weights all Hessian entries equally, which is precisely the regime our scaling argument says hides the problem. Owen and Lawler show that most of 5,682 CoRE 2019 frameworks are formally over-constrained yet cluster near the rigidity threshold, with accidental zero modes (238 at the zone center in UiO-66). They also show that weak longer-range interactions, switched on by a neighbor cutoff $\tau$, lift those modes into flat soft bands. That work uses harmonic spring networks and involves no learning. Excess Vibrational Modes and the Boson Peak in Model Glasses shows that even densely coordinated glasses are governed by a near-marginal subset of stiff contacts, with the weak contacts setting the soft spectrum. This is why we expect the problem to extend beyond idealized packings.

Two works constrain the design through the graph representation. A Theoretically-Principled Sparse, Connected, and Rigid Graph Representation of Molecules (SCHull) builds sparse graphs with a rigidity guarantee for the geometry. Its edge-to-node ratio is capped at 3, however, which is exactly the isostatic count for central forces in three dimensions. Such a graph therefore has no room for the excess constraints that carry internal stress. More importantly for us, rigidity of the geometry (the graph determines the shape) is different from mechanical rigidity (the energy resists deformation), and SCHull addresses only the first. The radial cutoffs used in Unified Graph Neural Network Force-field for the Periodic Table (ALIGNN-FF) and Matformer (Periodic Graph Transformers for Crystal Material Property Prediction) decide which weak interactions a model can even see. By Owen and Lawler's $\tau$ result, that choice determines whether soft-mode lifting is representable at all. We treat the cutoff as an experimental variable rather than a fixed hyperparameter.

The method draws on the rigidity-matrix machinery of Owen and Lawler and on the higher-order training of Phonax. It differs from both in using the former to decide where to spend the latter's curvature supervision.

Research Program

The benchmark has three tiers, each with exact, cheap second derivatives. The first tier is frictionless harmonic sphere packings of about 1,024 particles in three dimensions, generated at a ladder of pressures so that $\delta z \sim p^{1/2}$ spans roughly two decades. The ground-truth $\omega^*$ and flat density of states are known analytically and numerically (Wyart, Silbert, Nagel, Witten). The second tier is repulsive and full Lennard-Jones glasses following Xu et al., where weak contacts matter. The third tier is CoRE 2019 frameworks with UFF4MOF labels, stratified into Owen and Lawler's three regimes: generic rigid, singular isostatic and geometrically unstable. In tier three the classical force field is the ground truth by construction. The question is surrogate fidelity, not force-field accuracy, and this is what makes exact Hessians affordable at scale.

On each tier we train MACE (ACEsuit/mace) and an ALIGNN-style line-graph model under four supervision schemes at matched label budgets. The schemes are forces only, full Hessians (Phonax-style), the soft-direction loss with rigidity-derived probes, and the same loss with random probes. We also evaluate the pretrained MACE-MP foundation potential zero-shot on the framework tier.

The measured quantities are the following. We record the apparent $\omega^*$ versus true $\delta z$ and the location of its floor. We record the shape of the density of states below $\omega^*$ and the error in low-frequency mode counts. We record the fraction of structures with spurious imaginary modes or spuriously lifted zero modes, and the error in shear modulus. The shear modulus matters because marginal-stability theory predicts it vanishes at the threshold, a consistency check that Matformer and ALIGNN treat only as free regression. Finally, we compare the estimated per-direction Hessian error $\epsilon$ against the observed floor to test the $\sqrt{\epsilon}$ prediction quantitatively.

Baselines

The naive reference is a forces-only potential of the same architecture, trained on the same structures. It stands for current practice: ALIGNN-FF reports a test force error of 0.047 eV/Å on JARVIS-DFT with a force weight of 10. That number describes force accuracy, not soft-mode accuracy. No reported result was found on Lacuna for any neural potential's low-frequency spectrum on jammed packings, glasses or near-isostatic frameworks. We expect this baseline to match force error across tiers while its $\omega^*$ floor degrades toward the threshold.

The strongest existing method is Phonax-style full-Hessian training, from Phonon predictions with E(3)-equivariant graph neural networks. It is the strongest competitor because it already supervises curvature directly. Its reported advantage is data efficiency (one Hessian ≈ 7 force configurations). No reported soft-mode or marginal-system accuracy was found on Lacuna for it. For a fair comparison we count labels in units of reference second-derivative evaluations. Full-Hessian training gets $3N$ directional derivatives per structure. The soft-direction method gets far fewer per structure, spread over more structures, so that total reference cost, training steps and the hyperparameter search budget are equal. Beating it means a lower $\omega^*$ floor and fewer spurious imaginary modes at equal or lower reference cost, with force error no worse than 10% above it.

The ablation that isolates the key ingredient is the soft-direction loss with the same number of random probe directions. If rigidity-derived probes do not beat random ones, the marginal-stability content of the method is doing nothing, and the gain, if any, comes from the relative weighting alone. A further ablation varies the graph cutoff from the contact distance up to beyond Owen and Lawler's weak-interaction range. This tests whether representation, not supervision, sets the floor.

An oracle reference is direct spring-network lattice dynamics with UFF4MOF itself, which gives the exact answer on our tiers. It is included to anchor the metrics, not as a competitor.

Why not just…?

Why not just compute the rigidity matrix directly and skip the learned potential? On our benchmark tiers that is exactly the oracle, and it is cheap. The purpose of the tiers is to measure surrogate failure where the truth is known. In practice, surrogates are used when the truth is DFT and spring networks are unavailable or wrong, and Owen and Lawler's analysis is restricted to harmonic, zero-temperature springs. The real threat is that practitioners do not need neural potentials for near-marginal frameworks at all. We address this by reporting whether the soft-direction potential, trained on classical labels, transfers the $\omega^*$ floor improvement to a held-out framework subset. We also note that the probe-direction scheme is designed to require only directional derivatives, which is what makes it applicable later to DFT labels.

Why not just train on full Hessians, as Phonax does? This is the most serious threat, and the fair-budget comparison above exists to settle it. An unweighted squared Hessian loss is dominated by stiff entries, so we predict the soft eigenvalues keep an absolute error comparable to the stiff ones and retain the $\sqrt{\epsilon}$ floor. If full-Hessian training at equal reference cost already removes the floor, our method is unnecessary. We would then report the benchmark and scaling analysis as the contribution.

Why not just scale the model and data, or use a foundation potential like MACE-MP? Lowering $\epsilon$ lowers the floor only as $\sqrt{\epsilon}$. Halving the $\delta z$ at which fidelity is lost requires a fourfold reduction in curvature error. Frameworks such as UiO-66 sit essentially at zero $\delta z$ in their unstable subspace, so no finite error suffices there. The zero-shot MACE-MP evaluation, and a sweep of training-set size, directly test whether scale alone moves the floor at the predicted rate.

Decisive Checks

The first check is the floor plot on harmonic packings. Apparent versus true $\omega^*$ should follow the true linear law down to a floor. The location of that floor, across models with different measured $\epsilon$, should scale as $\sqrt{\epsilon}$. If there is no floor, the premise is wrong and the project stops at a negative result worth publishing.

The second check is whether rigidity-derived probes beat random probes and full Hessians at equal reference cost. Success requires a lower floor and fewer spurious imaginary modes, with the gap growing toward the threshold.

The third check is on the framework tier, where improvement should concentrate in Owen and Lawler's singular-isostatic and geometrically-unstable classes and be negligible for generically rigid frameworks. A uniform improvement across classes would indicate the gain comes from generic regularization rather than from marginal-stability physics.