arXiv:2610.08020physics.chem-phOct 2026

Manuscript Offprint

arXiv:2610.08020

Learning consistent molecular mechanics force fields from first principles

Berkay Günes, Leif Seute, Jigyasa Nigam, Frauke Gräter

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Classical force fields (FFs) remain the workhorse for large-scale simulations even as machine-learned interatomic potentials (MLIPs) approach ab initio accuracy. They decompose total configuration energies into simple effective interactions whose parameters are traditionally assigned based on atom or bond types, enabling efficient simulations but also limiting their ability to adapt across configurations. Recent machine learning approaches have improved the accuracy and transferability of bonded parameters in these FFs by inferring them as functions of local atomic environments, but still rely on empirical nonbonded parameters for practical simulations. In this work, we introduce a unified approach, grappa-fullFF, which learns both bonded and nonbonded parameters consistently and simultaneously from ab initio reference data. By incorporating physically inspired regularization via supervision of the electrostatic potential and an architecture that facilitates charge equilibration, our model recovers accurate electric response properties, achieves state-of-the-art accuracy on geometry optimization benchmarks, and reproduces the conformational sampling of both classical and existing machine-learned FFs, without relying on externally assigned nonbonded parameters.

1 Introduction

Simulating molecular systems containing millions of atoms on nanosecond to millisecond timescales underlies numerous applications ranging from drug discovery and biomedical engineering to materials science [1–5]. Such simulations require force fields that are both computationally efficient and sufficiently accurate to describe the potential energy and forces throughout the dynamics. Recent advances in atomistic modeling and deep learning have enabled MLIPs that predict energies and forces directly from three-dimensional molecular configurations with near ab initio accuracy [6–11]. Although MLIPs are orders of magnitude faster than quantum mechanical (QM) calculations, their computational cost remains prohibitive for such large-scale systems and long timescales [12, 13], and classical molecular mechanics (MM) continues to be widely used to drive these simulations due to its exceptional efficiency [14–17]. In MM, the Born-Oppenheimer potential energy of an atomic configuration x is approximated as a sum of physical contributions,

EMM(x,ΦFF)=Ebonded(x,Φbonded)+Enonbonded(x,Φnonbonded)(1)E_{\mathrm{MM}}(\mathbf{x},\Phi_{\mathrm{FF}})=E_{\mathrm{bonded}}(\mathbf{x},\Phi_{\mathrm{bonded}})+E_{\mathrm{nonbonded}}(\mathbf{x},\Phi_{\mathrm{nonbonded}}) \tag{1}

where ΦFF={Φbonded,Φnonbonded}\Phi_{\mathrm{FF}} = \{\Phi_{\mathrm{bonded}}, \Phi_{\mathrm{nonbonded}}\} represents the set of force field parameters. Ebonded(x,Φbonded)=Ubonds+Uangles+UdihedralsE_{\mathrm{bonded}}(\mathbf{x}, \Phi_{\mathrm{bonded}}) = U_{\mathrm{bonds}} + U_{\mathrm{angles}} + U_{\mathrm{dihedrals}} constitute bonded interactions, while Enonbonded(x,Φnonbonded)=UvdW+UCoulombE_{\mathrm{nonbonded}}(\mathbf{x}, \Phi_{\mathrm{nonbonded}}) = U_{\mathrm{vdW}} + U_{\mathrm{Coulomb}} are the nonbonded interactions [18, 19] comprising van der Waals (vdW) (typically the 12-6 Lennard-Jones [20]) and long-range Coulomb interactions. Traditionally, the parameters of these

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: ML4Molecules.

Figure

Figure 1: Grappa architecture and training routine. The shared graph-attention encoder feeds the atom embeddings in the individual parameter prediction heads. All parameters are trained simultaneously on QM energies and forces. The nonbonded parameter heads are additionally regularized by the electrostatic potential (ESP) and the ratio of the effective and free atomic volume, viv_{i}.

effective potentials have been refined empirically and tabulated for different classes of molecules, which restricts their accuracy and transferability. Recently, graph-based machine-learning frameworks [21–26] have enabled hybrid ML/MM force fields that predict bonded parameters ( Φbonded\Phi_{bonded}) directly from reference energies and forces, or model environmental polarization [27]. However, these models still rely on external, empirical nonbonded parameters ( Φnonbonded\Phi_{nonbonded}) or separate machine-learned and classical descriptions of the simulated system, limiting their ability to generalize across configurations. For instance, partial charges are typically derived from computationally expensive semi-empirical methods such as AM1-BCC [28] or by partitioning the electron density using methods such as MBIS [29]. Lennard-Jones (vdW) parameters, on the other hand, are assigned using rigid, curated typing rules inherited from legacy force fields including GAFF [30] and OpenFF [31].

In the following, we introduce grappa-fullFF, a unified end-to-end approach that learns both bonded and nonbonded MM parameters from ab initio reference data. We extend Grappa [23] (hereafter referred to as grappa-bonded), which has shown state-of-the-art performance on bonded parameters, to jointly predict all parameters. Instead of targeting each parameter independently, we train the model directly against QM energies and forces, allowing all components of the force field to be learned consistently. We regularize the implicitly learned MM parameters using physically motivated constraints on the electrostatic potential and the Lennard-Jones (LJ) parameters through supervision of the effective per-atom volume. We demonstrate that, even without explicit supervision of individual MM parameters, grappa-fullFF recovers the QM electrostatic potential with an accuracy comparable to expensive electron density partitioning schemes, without any electron density calculation at inference, and retains the performance of grappa-bonded on a standard geometry optimization benchmark. In an explicit-solvent molecular dynamics (MD) simulation of alanine-dipeptide, our model reproduces the Ramachandran free-energy surface with accuracy comparable to grappa-bonded relative to AMBER99SB-ILDN [32], and about twice as accurately as espaloma-0.3.2, even without having been trained on condensed phase systems.

References (43)