DEQuify your force field: More efficient simulations using deep equilibrium models

Andreas Burger, Luca Thiede, Alán Aspuru-Guzik, Nandita Vijaykumar

TL;DR

This paper introduces DEQuiformer, a novel machine learning force field that recasts the state-of-the-art EquiformerV2 architecture as a Deep Equilibrium Model (DEQ). By leveraging the temporal continuity of molecular dynamics simulations, DEQuiformer reuses intermediate neural network features across consecutive time steps, delivering a 10%–20% boost in both accuracy and speed while drastically reducing memory consumption and parameter count.

What Problem Does This Paper Address?

Molecular dynamics (MD) simulations rely on force fields to predict the forces acting on atoms at each discrete time step. While machine learning (ML) force fields have achieved near-quantum accuracy, modern state-of-the-art architectures (like EquiformerV2) achieve this by stacking deep layers of equivariant graph neural networks.

This approach has two major flaws: it is computationally expensive and highly memory-intensive, limiting its scalability to large molecular systems. Furthermore, these explicit models treat every simulation time step as completely independent, entirely ignoring a fundamental physical truth: molecular motion is continuous, meaning consecutive states in a simulation are highly correlated and extremely similar.

Methods

The authors "DEQuify" the EquiformerV2 architecture, transforming it from an explicit deep network into an implicit Deep Equilibrium Model (DEQ). Instead of passing data through a fixed stack of 8 to 14 layers, DEQuiformer uses just 1 or 2 shallow layers and iterates until the node features reach a self-consistent "fixed point" (equilibrium).

Key innovations include:

  • Fixed-Point Reuse (Warm Starting): Instead of initializing the solver from zero at each time step, the model initializes using the fixed-point features from the previous time step. This exploits temporal continuity to drastically reduce the number of solver iterations needed.
  • Input Injection & Rescaling: The input molecular embedding is injected at every solver iteration, rescaled by its 2-norm to prevent feature growth.
  • Memory-Efficient Gradients: Training utilizes the Implicit Function Theorem (IFT), which computes gradients analytically at the equilibrium point without storing intermediate activations. This makes memory consumption independent of the model's effective depth.
  • Inference Flexibility: The authors introduce a post-training trade-off where the solver's error tolerance is relaxed for subsequent steps, accelerating inference without sacrificing accuracy.
Figure 1: Comparison of the EquiformerV2 and DEQuiformer architectures. While the Equiformer model considers every input state independently, the DEQuiformer exploits the temporal continuity between input states to share compute. This works because neighbouring time steps in an MD simulation are highly similar by design. Therefore, we drastically reduce the required compute by reusing the fixed-point from the previous step.

Datasets

The model was evaluated on three standard benchmarks:

  • OC20 (Open Catalyst Project) 200k split: A massive dataset focused on catalyst simulations (surfaces and adsorbates).
  • MD17: A dataset containing continuous trajectories of molecular dynamics simulations for eight small molecules, ideal for testing fixed-point reuse.
  • MD22: An extension of MD17 featuring seven much larger molecular systems (42 to 370 atoms) to test scalability.

Key Insights and Ideas

  • Physics-Inspired Inductive Bias: Formulating ML force fields as DEQs naturally mirrors classical ab-initio Self-Consistent Field (SCF) methods, where quantum calculations are iteratively solved until convergence. This connection provides a powerful inductive bias, leading to better data efficiency and generalization.
  • Breaking the Depth-Parameter Link: Because implicit models iterate a single layer to convergence, they achieve the expressivity of infinitely deep networks while using up to 5x fewer parameters.
  • Preserving the Markov Property: A potential concern with reusing features across time steps is violating the Markov property (that forces should only depend on the current state). The authors demonstrate that the deviation in predicted forces is less than 1%, meaning the physical validity of the simulation remains intact.

Key Results

  • Speed and Accuracy Boost: On the MD17 benchmark, DEQuiformer achieved an average 19% reduction in inference time alongside a 15% improvement in accuracy compared to EquiformerV2.
  • Fewer Parameters, Better Performance: On the OC20 200k dataset, a 1- or 2-layer DEQuiformer outperformed a memory-maxed 14-layer EquiformerV2 while using significantly fewer parameters.
  • Exceptional Memory Efficiency: For large systems in MD22 (like the double-walled nanotube), the standard 8-layer EquiformerV2 ran out of memory (OOM), whereas DEQuiformer easily fit within the GPU memory limits due to IFT-based training.
Error vs Depth and Inference Time

Limitations and Future Work

  • Modest Practical Speedups: While a 10%–20% speedup is mathematically significant, it remains modest when considering the billions of time steps required for macro-scale biological or chemical simulations.
  • Slower Training Times: Solving for fixed points during both the forward and backward passes makes DEQs computationally heavier to train per epoch than explicit models, though this is partially mitigated by the ability to use larger batch sizes.
  • Future Directions: The authors suggest exploring advanced initialization and acceleration techniques borrowed from quantum chemistry, such as Pulay mixing, Anderson mixing, or density matrix extrapolation, to further optimize fixed-point convergence.

Summary updated

BibTeX
@inproceedings{burger2025dequify,
  author = {Andreas Burger and Luca Thiede and Alán Aspuru-Guzik and Nandita Vijaykumar},
  title = {{DEQuify your force field: More efficient simulations using deep equilibrium models}},
  booktitle = {AI4MAT @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=XACVRYePQQ},
}
Figure