Abstract
Computational studies of chemical reactions in complex environments such as proteins, nanostructures, or on surfaces require accurate and efficient atomistic models applicable to the nanometer scale. In general, an accurate parametrization of the atomistic entities will not be available for arbitrary system classes but demands a fast, automated, system-focused parametrization procedure to be quickly applicable, reliable, flexible, and reproducible. Here, we develop and combine an automatically parametrizable quantum chemically derived molecular mechanics model with machine-learned corrections under autonomous uncertainty quantification and refinement. Our approach first generates an accurate, physically motivated model from a minimum energy structure and its corresponding Hessian matrix by a partial Hessian fitting procedure of the force constants. This model is then the starting point to generate a large number of configurations for which additional off-minimum reference data can be evaluated on the fly. A Δ-machine learning model is trained on these data to provide a correction to energies and forces including uncertainty estimates. During the procedure, the flexibility of the machine learning model is tailored to the amount of available training data. The parametrization of large systems is enabled by a fragmentation approach. Due to their modular nature, all model construction steps allow for model improvement in a rolling fashion. Our approach may also be employed for the generation of system-focused electrostatic molecular mechanics embedding environments in a quantum-mechanical/molecular-mechanical hybrid model for arbitrary atomistic structures at the nanoscale.
Introduction
Simulating chemical processes at the nanoscale often forces researchers into a trade-off between accuracy and computational efficiency. Quantum Mechanics (QM) provides high accuracy but is restricted to small systems due to its immense computational cost. Conversely, Molecular Mechanics (MM) uses classical force fields that are fast enough for large systems but often lack the necessary parameters for non-standard molecules, such as those containing transition metals or unique surface environments.
To bridge this gap, researchers at ETH Zurich have introduced SFAM (Self-Parametrizing System-Focused Atomistic Models). SFAM is an automated workflow designed to generate custom-tailored force fields for any arbitrary system, ensuring high-fidelity simulations without the need for manual, expert-driven parameter tuning.
The SFAM Workflow
The core of SFAM is a two-stage hybrid approach that combines physics-based modeling with machine learning. The process begins with a single "snapshot" of the target system—typically a minimum energy structure.
As shown in the workflow, the system is first decomposed into fragments if it is too large for direct QM treatment. A base MM model is then constructed using quantum-chemical reference data. This model is subsequently enhanced by a $\Delta$-machine learning ($\Delta$-ML) layer, which corrects the MM predictions. The resulting hybrid model can then be used for structure optimization and further refinement.
Automated Parametrization and Fragmentation
SFAM avoids "off-the-shelf" parameters by deriving force constants directly from the system's electronic structure. By calculating the Hessian matrix (the second derivative of energy with respect to atomic positions) at a reference geometry, the method employs a partial Hessian fitting procedure. This allows for the automatic determination of parameters for bonds, angles, and dihedrals specific to the local chemical environment.
To scale this to nanoscale systems like proteins, SFAM utilizes a fragmentation strategy. The large structure is divided into overlapping spherical fragments. QM calculations are performed on these smaller units, and the resulting local data is stitched together to form a global model. This "divide and conquer" approach ensures that even complex biological systems, such as the 1,412-atom protein plastocyanin, can be accurately parametrized.
$\Delta$-Machine Learning and Rolling Refinement
A key innovation in SFAM is the use of $\Delta$-Machine Learning. Rather than training a model to predict the entire potential energy surface, the Kernel Ridge Regression (KRR) model is trained only to learn the difference ($\Delta$) between the simple harmonic MM model and the true QM data.
This approach is highly data-efficient because the base MM model already captures the primary physics of the system. The ML component only needs to learn the "errors" or anharmonicities. Furthermore, the model includes autonomous uncertainty quantification, allowing it to identify regions of the energy surface where more reference data is needed. This enables a "rolling refinement" process where the model improves on the fly during a simulation.
Key Results and Validation
The SFAM framework was validated across a diverse set of benchmarks:
- Vibrational Accuracy: The model reproduced vibrational frequencies with a Mean Absolute Error (MAE) of 66.5 cm⁻¹, outperforming many universal force fields.
- Energy Landscapes: In tests on butane and substituted ethanes, SFAM accurately captured rotational energy barriers that standard force fields like GAFF or UFF often miss.
- Scalability: The successful simulation of plastocyanin demonstrated SFAM's ability to handle metal-containing proteins, a notorious challenge for traditional MM methods.
- Efficiency: The hybrid MM/ML approach reached "chemical accuracy" (errors < 1 kcal/mol) with significantly fewer QM calculations than pure ML methods.
Conclusion and Future Directions
SFAM represents a significant step toward "black-box" atomistic modeling. By focusing on the specific system at hand rather than seeking a universal solution, it provides a reliable and efficient path for studying complex nanoscale chemistry.
Future work will focus on extending the framework to reactive force fields to describe bond breaking and formation. Additionally, the integration of SFAM into the open-source SCINE project will provide the community with a powerful tool for generating tailored embedding environments in QM/MM simulations.
Summary updated