Thermodynamically Informed Multimodal Learning of High-Dimensional Free Energy Models in Molecular Coarse Graining

Blake Duschatko, Xiang Fu, Cameron John Owen, Yu Xie, Albert Musaelian, Tommi Jaakkola, Boris Kozinsky

TL;DR

Researchers have developed a "thermodynamically informed" framework that significantly improves how machine learning models represent molecular systems at a coarse-grained level. By treating free energy as a differentiable function of temperature and physical parameters, they can train models using not just forces, but also "free" data like average potential energy, leading to much more accurate simulations with less training data.

What Problem Does This Paper Address?

Molecular dynamics (MD) simulations are essential for designing new materials and drugs, but simulating every single atom is often too slow for complex systems like polymers or proteins. Coarse-graining (CG) solves this by grouping atoms into "beads," effectively blurring the details to speed up the clock.

However, bottom-up coarse-graining faces a major hurdle: thermodynamic representability. Standard methods like "force matching" try to learn the potential of mean force (PMF)—the free energy landscape of the beads—by matching the average forces felt by atoms. The problem is that forces only tell you about the slope of the energy landscape. They don't easily capture the relative "depth" of different energy valleys (minima) or how the system responds to changes in temperature or pressure. This often results in CG models that fail to reproduce the correct structural distributions or phase behaviors of the original all-atom system.

Methods

The authors introduce a differentiable formalism that views the dimensionless free energy ($\beta W$) as a cumulant generating function.

In statistical mechanics, the derivatives of free energy correspond to physical observables. For example, the derivative with respect to inverse temperature ($\beta$) is the average potential energy. The second derivative is the variance of the energy (related to heat capacity).

The key innovations are:

  1. Explicit Parameterization: They endow their ML models (specifically the Allegro equivariant neural network and FLARE sparse Gaussian processes) with explicit inputs for temperature and other global parameters (like volume or external fields).
  2. Multimodal Loss Function: Instead of just matching forces, they use a "Sobolev-style" training approach. The loss function (see Figure 1) includes terms that match the model's derivatives to ensemble-averaged properties from all-atom simulations, such as mean potential energy.
  3. Consistency: Because these properties are derived from the same free energy function, the model is forced to be thermodynamically consistent by design.
The thermodynamically informed neural network framework. By adding temperature and parameters as inputs, the model can be trained on various physical observables derived as gradients of the free energy.

Datasets

The researchers validated their approach on two main systems:

  • A 2D Toy Model: A simple system with two energy basins separated by a barrier, used to demonstrate how energy labels help "fix" the relative depth of minima.
  • Hexane Molecule: A 4-site CG mapping of a hexane molecule. They used 200,000 frames of all-atom data generated via NVT simulations at 250K using the OPLS force field as a baseline.

Key Insights and Ideas

  • Energy is "Free" Data: All-atom simulations already calculate potential energy at every step. Traditional force-matching ignores this scalar value, but this framework shows that including it as a training target provides a massive boost in accuracy for almost zero extra simulation cost.
  • Solving the "Relative Depth" Problem: Force-matching often struggles to get the relative probability of two different molecular shapes right because it only sees local slopes. By matching the average energy of those shapes, the model learns the "height" of the landscape, not just the tilt.
  • Built-in Transferability: Because the model explicitly "knows" about temperature, it is naturally better suited for state-point transferability—the ability of a model trained at one temperature to work at another.

Key Results

The results show that "energy-labeled" models are far superior to "force-only" models, especially when data is scarce.

  • Data Efficiency: In the hexane system, a model trained on only 100,000 frames with energy labels outperformed a force-only model trained on 200,000 frames.
  • Structural Accuracy: For hexane, the energy-labeled models matched the all-atom baseline for bond angles and dihedral distributions with much higher fidelity. Specifically, the Mean Absolute Error (MAE) for the Free Energy Surface (FES) was reduced by nearly an order of magnitude (from 0.035 to 0.006) in the moderate-data regime.
  • Capturing Rare States: Force-only models tended to oversample high-energy transition states (near zero-degree dihedrals), whereas the thermodynamically informed models correctly identified them as rare, high-energy configurations.

Limitations and Future Work

While powerful, the authors note a few areas for growth:

  • Computational Overhead: Using higher-order derivatives (like the second derivative for heat capacity) requires multiple passes of backpropagation during training, which increases the computational cost of the training phase (though not the final simulation).
  • Entropic Limits: The benefit of potential energy labels is highest when the energy differences dominate the free energy. In systems where entropy is the primary driver and potential energy is nearly constant, these labels may provide less information.
  • Scaling Up: Future work will involve testing this on much larger, more complex systems like proteins in solution, where the "noise" in total potential energy might make it harder to extract local CG information.

Summary updated

BibTeX
@inproceedings{duschatko2024thermodynamically,
  author = {Blake Duschatko and Xiang Fu and Cameron John Owen and Yu Xie and Albert Musaelian and Tommi Jaakkola and Boris Kozinsky},
  title = {{Thermodynamically Informed Multimodal Learning of High-Dimensional Free Energy Models in Molecular Coarse Graining}},
  booktitle = {Research Square},
  year = {2024},
  doi = {10.21203/rs.3.rs-4927414/v1},
}
Figure