Learning Relaxation Steps from DFT Trajectories to Correct Soft Interatomic Potentials

Finding the stable 3D shape of a molecule or crystal ("structural relaxation") is a basic step in computational chemistry. Today it runs as a per-structure optimization loop. A machine-learned interatomic potential (MLIP), meaning a neural network trained to imitate quantum-mechanical energies and forces, is queried for forces, and a classical optimizer such as BFGS or FIRE moves the atoms downhill for tens to hundreds of steps. That loop has two problems. It is slow, much like fitting a 3D scene from scratch was slow before feed-forward reconstruction. It also ends in the wrong place. MLIPs are trained mostly on near-equilibrium structures where forces are nearly zero, so they learn energy surfaces that are systematically too flat. An optimizer that follows a too-flat surface converges to the model's minimum, not the true one, or stalls before it gets there.

We propose to replace the optimizer with a small learned network that takes a few large steps. The network reads the current geometry and the MLIP's forces, then predicts a coordinate update. Unlike the classical optimizer, it is supervised to land on the quantum-mechanical (density functional theory, DFT) endpoint of recorded relaxation trajectories. Each training pair contains a displacement from the current geometry to the true minimum, and that displacement carries curvature information: to first order, it is the inverse of the true energy Hessian applied to the true force. Learning these steps therefore does two things at once. It amortizes the loop, replacing hundreds of optimizer iterations with four to eight network passes. It also supplies the curvature correction that equilibrium-biased MLIPs lack, without the third-order automatic differentiation that direct Hessian training requires.

Core Claim

A recurrent, force-conditioned refiner trained on endpoint displacements from DFT relaxation trajectories should reach geometries closer to the DFT minimum than "MLIP plus BFGS/FIRE," using roughly an order of magnitude fewer MLIP evaluations. Its advantage should be largest in the near-minimum regime, where small, noisy force signals make MLIP-driven optimizers least reliable.

The mechanism follows from a simple observation. Near a minimum, the true force is $F \approx -H\,\Delta R$, where $H$ is the true Hessian and $\Delta R$ the displacement to the minimum. An MLIP with softened curvature $\hat H$ (smaller eigenvalues than $H$) and force error $\epsilon$ places its minimum off by about $\hat H^{-1}\epsilon$. Softening shrinks $\hat H$, so this offset is amplified exactly where the force signal is weakest. A refiner trained to output the true $\Delta R$ from $(R, \hat F)$ must learn an effective mapping close to $H^{-1}$ that corrects $\hat F$. We will test that implication directly by examining the Jacobian of the refiner with respect to its force input.

Relation to Prior Work

Two strands motivate the proposal. On the chemistry side, Fu et al. built PubChemQCR and Force2Geo, which relaxes RDKit guesses by pairing a PaiNN MLIP with BFGS. They report that this approach struggles to reach chemical accuracy because near-equilibrium data gives weak force signals. Deng et al. show that universal MLIPs systematically soften, with over 90% of 229 materials showing phonon frequencies below DFT. The relaxation benchmark shows how badly iterating on these potentials goes at strict thresholds: FIRE2 for up to 500 steps converges 68.4% of Materials Project structures with MACE but 0.05% with CHGNet at $10^{-6}$ eV/Å. All three treat the optimizer as fixed, and our proposal replaces it. On the vision side, ReSplat supplies the method template. It feeds rendering error back into a network for four recurrent updates, without test-time backpropagation, and surpasses 4,000 iterations of per-scene 3D Gaussian splatting. We carry this idea over, swapping the 2D image residual for the MLIP's force field, which is the natural physical residual.

Two strands constrain the design. MoreRed already relaxes molecules fast by reverse diffusion on a learned pseudo-energy surface. It reaches 0.05 Å median RMSD on QM7-X against 0.109 Å for a force-field baseline. However, it uses no physical forces and is trained only on equilibria, so it has no restoring signal outside its training distribution. DMCG refines coordinates through six blocks directly from the molecular graph and is about 200 times faster than diffusion samplers, but it also ignores energy. Both show that force-free refinement is a serious competitor, so our ablations must show that force feedback earns its cost.

Finally, two curvature-oriented methods are the competing fixes for equilibrium bias. PFT supervises the Hessian against DFT force constants using Hessian-vector products. It cuts phonon errors by 55%, but it needs force-constant labels and triple-backward autodiff. DeNS makes denoising well-posed off equilibrium by conditioning on forces, improving OC22 forces by 12%. We borrow its force-conditioning idea to inject MLIP forces into node features. Our claim differs from both: trajectory endpoints supply curvature cheaply, and that curvature is most useful inside the relaxer rather than baked into the potential.

Research Program

The refiner is an equivariant graph network of modest size. At each of $T$ steps, a frozen MLIP (PaiNN trained on PubChemQCR for molecules, MACE for crystals) is evaluated once at the current geometry. Its per-atom forces are embedded with spherical harmonics as in DeNS, together with the MLIP's last-layer atom features. The refiner then predicts a displacement $\Delta R_t$. Training unrolls $T$ steps on frames sampled from DFT relaxation trajectories and minimizes

$$\mathcal{L} = \sum_{t=1}^{T} w_t \,\mathrm{RMSD}\big(R_t, R^{\mathrm{DFT}}_{\mathrm{eq}}\big),$$

where $R_t$ is the refiner's geometry after step $t$, $R^{\mathrm{DFT}}_{\mathrm{eq}}$ is the trajectory's DFT endpoint, and $w_t$ increases with $t$. Atoms are matched under rigid alignment. The training data are PubChemQCR trajectories and the more than 60,000 trajectories in the $\nabla^2$DFT optimization subset (Khrabrov et al.). Start frames are sampled across each trajectory, so the model sees both far-from-equilibrium and near-minimum inputs. As an option, a short FIRE polish on the MLIP follows the refiner, and we will report results with and without it.

The analysis component asks whether the refiner has learned curvature. On a subset of small molecules, we compute DFT Hessians by finite differences. We then compare three quantities: the eigenvalues of the inverse of the refiner's force Jacobian $\partial \Delta R / \partial \hat F$, the MLIP's own Hessian, and DFT. If the refiner's effective curvature is stiffer than the MLIP's and closer to DFT, the "implicit curvature correction" story holds. If it does not, any accuracy gains have another source, and we will report that.

Baselines

The naive reference is using the unrelaxed RDKit geometry. Fu et al. report a downstream Molecule3D property validation MAE of 0.1576 eV for unrelaxed RDKit structures. They report 0.0562 eV for true DFT geometries, which serves as the ceiling.

The strongest physics-based baseline is Force2Geo: the same frozen PaiNN MLIP coupled to BFGS, run to convergence. It reports 0.0794 eV on the same task. We will rerun it with the identical MLIP checkpoint and report the number of MLIP evaluations alongside accuracy. Beating it means a lower downstream MAE and a lower RMSD to the DFT endpoint at fewer than one-tenth the MLIP calls. For crystals, the corresponding baseline is MACE with FIRE2 under the benchmark protocol (68.4% converged at $10^{-6}$ eV/Å, 84.6% at $10^{-3}$ eV/Å). There we will compare energy and geometry error against the Materials Project relaxed structures, using the same structures and the same MLIP.

The strongest learned baseline is MoreRed-AS, with 0.05 Å median RMSD on QM7-X (Kahouli et al.). We will retrain it on the same trajectory endpoints with a matched parameter count and GPU-hour budget, and evaluate it on QM7-X with the original protocol. Beating it means a lower median RMSD and a lower failure rate under the paper's Gaussian-distortion test, where MoreRed fails 12% of cases.

Three ablations isolate the key ingredients. A force-free refiner, with identical architecture and training but MLIP forces zeroed out, tests whether force feedback matters beyond DMCG-style coordinate refinement. A refiner trained toward the MLIP's own minimum rather than the DFT endpoint tests whether the DFT-endpoint supervision, and not just amortization, drives accuracy. A one-shot variant ($T=1$, in the spirit of GS-LRM) tests whether recurrence is needed.

Why not just…?

Why not just use a better classical optimizer, such as preconditioned BFGS? This is a real threat to the speed claim. On molecules, a good quasi-Newton method may need only tens of steps, and our refiner also calls the MLIP once per step, so the savings could be modest. We will report evaluation counts and wall-clock time against tuned BFGS and FIRE, and we will not claim speed if BFGS matches. No optimizer can fix the accuracy problem, however. Any optimizer converges to the MLIP's minimum, and Fu et al. attribute their remaining gap to DFT to exactly that. The refiner-to-MLIP-minimum ablation separates the two effects.

Why not just use MoreRed, which is already fast and force-free? Its pseudo-energy surface only covers distortions resembling its training noise. The 0.05 Å result is for in-distribution QM7-X molecules. We will test both methods on start geometries from RDKit and from early, highly distorted trajectory frames, and on the larger drug-like molecules in $\nabla^2$DFT. In those settings, force feedback should give a restoring signal that MoreRed does not have. If MoreRed matches the refiner even there, the force-input ablation will show it, and the claim narrows to crystals.

Why not just fix the potential with PFT or DeNS fine-tuning and keep BFGS? This is the cleanest competitor to the curvature claim. PFT needs DFT force constants, which the molecular trajectory datasets lack. DeNS needs no new labels, so we will fine-tune the MLIP with DeNS on the same trajectory data and run BFGS on it. If DeNS plus BFGS reaches the same endpoint accuracy, then curvature is better learned inside the potential, and the refiner's remaining value is speed alone.

Proposed Experiments and Decisive Checks

The main experiment trains on PubChemQCR and $\nabla^2$DFT trajectories. It evaluates RMSD and DFT single-point energy error at the endpoint against the DFT minimum, Molecule3D downstream property MAE, and the QM7-X distortion protocol, each plotted against the number of MLIP evaluations.

The first decisive check is stratified by start frame. If the mechanism is right, the refiner's margin over MLIP plus BFGS should grow as start frames approach the minimum, where force bias dominates. If the margin shrinks there, the refiner is only a faster optimizer.

The second check is the Jacobian-curvature analysis against finite-difference DFT Hessians described above.

The third check is the fraction of endpoints within 1 kcal/mol of the DFT minimum energy. Fu et al. name this chemical-accuracy target as unreached.

The crystal transfer uses MACE forces on the Materials Project benchmark structures. It tests whether the approach still helps without crystal-specific trajectory training; no reported result was found on Lacuna for learned relaxers in that setting.