physics.chem-phNov 24, 2026

Path-probability gradients for optimizing force fields against dynamical observables

Authors: Zhongyao Wang, Lun Song, Yakun Zeng, Xingao Gong, Rui Shi, Mao Su

Organizations: Shanghai Artificial Intelligence Laboratory, Shanghai 200232, China · College of Intelligent Robotics and Advanced Manufacturing, Fudan University, Shanghai 200433, China · Shanghai Innovation Institute, Shanghai 200231, China · Huazhong University of Science and Technology, Wuhan 430074, China · 

Abstract

Machine learning force fields inherit the errors of the electronic-structure methods used to generate their training data, and refining them against experimental measurements provides a direct route beyond this limit. However, such refinement remains difficult for dynamical observables because differentiating chaotic molecular trajectories yields unstable gradients. Here, we introduce PathGrad, which differentiates Langevin path probabilities instead of the trajectories themselves. The resulting gradient estimator is accumulated on the fly from thermal noise and force derivatives, and its variance remains stable as the trajectory length increases. We validated the gradient estimator against finite-difference calculations and used it to fine-tune molten-copper and water potentials against experimental diffusion coefficients together with structural constraints. For water, jointly optimizing diffusion and the oxygen-oxygen radial distribution function also improves the predictions of shear viscosity and rotational relaxation, neither of which is included in the optimization objective. Alignment at a single temperature also improves the apparent activation energies of multiple dynamical observables, bringing their temperature dependences closer to experiments. Moreover, the optimized potential exhibits smaller force errors relative to an independent, higher-level quantum-chemical reference, indicating that alignment with experiments improves the fidelity of the potential energy surface beyond the fitted targets. PathGrad thus establishes a general framework for incorporating experimental observables directly into force field optimizations.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Worse Forces Can Lead to Better Structures: Trajectory-Level Fine-Tuning of Machine Learning Interatomic Potentials

    Nov 30, 2025Evan Dramko, Yizhi Zhu, Aleksandar Krivokapic +4Machine Learning Interatomic PotentialsComputational Materials Science

  2. Learning consistent molecular mechanics force fields from first principles

    Oct 6, 2026Berkay Günes, Leif Seute, Jigyasa Nigam +1Parameter EstimationMolecular Dynamics Simulation