Unifying Force Prediction and Molecular Conformation Generation Through Representation Alignment

Lucas Pinede, Soojung Yang, Juno Nam, Rafael Gomez-BombarelliGenBio @ ICML 2025

TL;DR

This paper introduces a novel training strategy for molecular conformation generators (Boltzmann emulators) by aligning their internal representations with those of pre-trained machine learning interatomic potentials (MLIPs). This "representation alignment" significantly speeds up training and improves the quality of generated molecular ensembles, bridging the gap between force prediction and generative modeling.

What Problem Does This Paper Address?

Understanding biomolecular functions hinges on accurately sampling their equilibrium conformational ensembles. While deep generative models like Boltzmann emulators show promise for i.i.d. sampling, their training is data-hungry, requiring near-equilibrium data which is often scarce. In contrast, MLIPs can be trained on abundant, readily available non-equilibrium data, learning rich geometric and energetic information. The challenge is to leverage this pre-trained knowledge from MLIPs to accelerate and improve the training of Boltzmann emulators, effectively transferring force prediction capabilities to conformation generation.

Methods

The core innovation is the Representation Alignment (REPA) technique. This method introduces an auxiliary loss function during the training of a Boltzmann emulator (specifically, a score-based diffusion model). This loss encourages the hidden states of the emulator to be similar to the hidden states of a pre-trained MLIP (in this case, MACE).

Here's a breakdown:

  • Boltzmann Emulators (Score-based Diffusion Models): These models learn to reverse a process of gradually adding noise to molecular structures, ultimately generating equilibrium conformations. They are trained using a denoising score matching objective.
  • Machine Learning Interatomic Potentials (MLIPs): These models predict atomic energies and forces from molecular structures. The paper uses MACE, an SE(3)-equivariant graph neural network, which is known for its strong performance and ability to generalize.
  • Representation Alignment Loss (LREPA): This loss function, inspired by prior work in computer vision, uses a contrastive loss (specifically, a variant of NT-Xent) to minimize the distance between representations from the emulator and the MLIP. This alignment is performed on intermediate hidden states.
  • Equivariant Feed-Forward Layer: To maintain the SE(3) equivariance of the models during alignment, a specialized feed-forward layer is used for projection.
  • Time-Conditioned Gating: To further improve robustness and flexibility, the authors introduce a mechanism that learns to selectively align specific channels of the representations based on the noise level (timestep) of the diffusion process.

Datasets

  • Training Data: The experiments were conducted on alanine dipeptide. A 250 ns molecular dynamics (MD) trajectory was used, from which 5,000 frames were randomly selected for training.
  • Reference Data: For evaluating sampling quality, a larger reference MD simulation of alanine dipeptide was used.
  • MLIP Training Data (for MACE): The MACE models used were pre-trained on datasets like SPICE (drug-like molecules, peptides) and MPTrj (bulk crystal structures), indicating their broad chemical knowledge.

Key Insights and Ideas

  • Shared Representation Space: The success of REPA strongly suggests that force prediction and conformation generation tasks inherently rely on overlapping, or at least highly correlated, internal representations of molecular geometry and energy.
  • MLIPs as Priors: Pre-trained MLIPs act as powerful "priors" for generative models, providing a strong starting point that significantly accelerates learning and improves final performance.
  • Leveraging Non-Equilibrium Data: The ability to use MLIPs trained on abundant non-equilibrium data to improve models trained on scarce equilibrium data is a key advantage, addressing a major bottleneck in generative modeling for biomolecules.
  • Alignment as a Search Strategy: The paper frames generative model training as a search for optimal representations, and REPA effectively guides this search towards representations already learned by the MLIP.

Key Results

  • Accelerated Training: The REPA method shortened training time by 1.5x compared to training without alignment.
  • Improved Sampling Quality: The REPA-aligned emulators achieved better sampling performance, as measured by Jensen-Shannon Divergence (JSD) of dihedral angle distributions, resulting in a lower final JSD.
  • Increased Representation Alignment: Centered Kernel Alignment (CKA) showed that REPA significantly increased the similarity between the emulator's and MLIP's representations, especially at lower noise levels.
  • Robustness: The introduction of time-conditioned gating made the REPA method more robust to hyperparameter choices, particularly the regularization strength ($\lambda$).
  • Cross-Domain Transferability: Aligning with a MACE model trained on crystal structures (MACE-MP0) still yielded performance gains, suggesting that even domain-specific MLIPs encode transferable chemical knowledge.

Limitations and Future Work

  • System Size: The current study focused on alanine dipeptide, a small molecule. The authors plan to test their method on larger peptides (e.g., chignolin) and diverse multi-molecule benchmarks to assess its impact on more complex systems.
  • Data Efficiency: While REPA accelerates training, its impact on data efficiency (i.e., requiring less training data for comparable performance) is a key question for future investigation.
  • MLIP Fine-tuning: A natural next step is to explore fine-tuning the MLIP itself as a Boltzmann emulator, potentially leveraging its weights directly, rather than just its representations.
  • Force Field Discrepancy: The paper notes a potential limitation: the training data was generated using a classical force field (AmberFF99SB), while the MLIP (MACE) was trained on QM data. This mismatch might affect performance, especially in high-energy regions. Future work will investigate how such discrepancies impact alignment quality and model performance.

Summary updated

BibTeX
@inproceedings{pinede2025unifying,
  author = {Lucas Pinede and Soojung Yang and Juno Nam and Rafael Gomez-Bombarelli},
  title = {{Unifying Force Prediction and Molecular Conformation Generation Through Representation Alignment}},
  booktitle = {GenBio @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=yzkHGHvC74},
}
Figure