MDForge: Agentic Molecular Dynamics Pipeline Design under Sparse Simulator Feedback

Zehong Wang, Yijun Ma, Connor R. Schmidt, Tianyi Ma, Weixiang Sun, Ziming Li, Xiaoguang Guo, Chuxu Zhang, Matthew J. Webber, Yanfang YearXiv 2026

TL;DR

MDForge is an LLM-driven agent that automates the complex process of designing Molecular Dynamics (MD) simulation pipelines by treating the task as open-ended code generation. Guided by a novel multi-expert debate framework called PRISM, it successfully transforms sparse simulation rewards into dense, actionable feedback, culminating in the real-world wet-lab discovery of a novel picomolar molecular binder.

What Problem Does This Paper Address?

Setting up a Molecular Dynamics (MD) simulation pipeline—such as calculating the binding free energy between a drug candidate and a target protein—is a highly specialized task. It requires human experts to make a sequence of interconnected choices: selecting force fields, designing equilibration schedules, setting up sampling protocols, and configuring statistical estimators.

Because running these simulations is computationally expensive (often consuming hours or days of GPU time), traditional trial-and-error optimization is out of the question. While recent attempts have been made to build LLM agents for chemistry, they typically operate by calling a fixed, pre-registered toolbox of scripts and completely lack the ability to learn from runtime feedback. MDForge addresses this gap by framing pipeline design as open-ended code generation guided by verbal reinforcement learning under extremely sparse feedback conditions.

Methods

MDForge models pipeline design as a program-synthesis problem optimized via an in-context verbal update loop. To overcome the challenge of learning from a single, expensive terminal reward (the final prediction error), the authors introduce PRISM (Process-Reward Interpretation via Subsystem Mediation):

  1. Per-Stage Diagnostics: Instead of waiting for the entire simulation to finish, PRISM extracts structured physical diagnostics (e.g., force-field self-consistency, ergodicity, and free-energy convergence) at the boundaries of four canonical stages: Preparation, Equilibration, Production Sampling, and Analysis.
  2. Multi-Agent Expert Debate: A panel of three specialized LLM agents—each representing a distinct physics jurisdiction (Force Field, Sampling, and Analysis)—deliberates over these diagnostics across two rounds of cross-visibility debate to generate a highly specific, localized critique.
  3. Reputation Loop: To prevent the system from being misled by confidently incorrect LLMs, PRISM maintains a dynamic reputation score ($\rho$) for each expert using a Beta-Bernoulli update rule. Experts whose pre-execution critiques consistently align with post-execution performance gain more weight over time.
Figure 1: Three paradigms for MD pipeline design. (a) A human expert hand-picks each stage and iteratively revises. (b) Existing LLM agents for MD design call a fixed MD toolbox with no run-time feedback. (c) MDForge emits the pipeline as code and refines it via PRISM, a multi-expert debate over per-stage diagnostics that returns a typed critique.

Datasets

The framework was evaluated using three widely recognized host–guest binding free-energy benchmarks from the SAMPL challenges:

  • CB[7] (Cucurbit[7]uril — SAMPL4)
  • OAH (Octa-Acid Derivative — SAMPL4)
  • CBClip (SAMPL5)

For prospective wet-lab validation, the agent's finalized pipeline screened an unseen library of candidate guest molecules extracted from the ChEMBL and DrugBank databases.

Key Insights and Ideas

  • Open-Ended Code vs. Fixed Toolboxes: Human experts do not just select tools from a dropdown menu; they write custom code tailored to the unique physics of a molecular system. Allowing the LLM to generate raw Python code provides the flexibility necessary to handle diverse chemical spaces.
  • Densifying the Signal: Waiting hours for a simulation to crash or yield a bad number provides virtually zero guidance on what went wrong. Breaking the pipeline down into stage-level physical checkpoints allows the agent to pinpoint exactly which subsystem (e.g., an un-converged estimator vs. an unstable integrator) requires modification.
  • Jurisdictional Multi-Agent Systems: Rather than aiming for a generic consensus, dividing the LLM critics into strict, non-overlapping physics domains mimics real-world scientific collaboration and yields far more precise debugging instructions.

Key Results

  • Benchmark Performance: MDForge significantly outperformed standard trial-level and step-level LLM baselines. It achieved a held-out Kendall $\tau$ ranking correlation of 0.56 on CB[7] and 0.47 on CBClip, more than doubling the performance of baseline trial-level feedback methods.
  • Human-Level Design: The autonomous tool choices made by MDForge closely tracked the methodological families used in standard human-expert pipelines (such as the canonical pAPRika APR pipeline).
  • Prospective Wet-Lab Discovery: Deployed on an unseen library, the MDForge-designed pipeline identified Bromantane as its top-ranked candidate binder for CB[7]. Wet-lab competition $^1$H NMR spectroscopy confirmed that Bromantane is an ultra-high-affinity binder in the picomolar regime ($K_a \approx 8 \times 10^{12} \text{ M}^{-1}$), matching the affinity tiers of molecules engineered through years of human effort.

Limitations and Future Work

  • System Complexity: The evaluation was restricted to relatively rigid host-guest systems. Future work must validate the framework on highly flexible targets like protein-ligand complexes and membrane protein insertions.
  • Simulation Fidelity: To keep the evaluation budget tractable, the authors utilized a "cheap-MD" configuration (~2 GPU-hours per guest). Testing the framework under longer production sampling scales and higher-accuracy force fields remains an open direction.
  • Audit Burden: While generating raw Python code ensures transparency, the resulting scripts can be long and stylistically idiosyncratic, making it tedious for human scientists to audit before deployment.

Summary updated

BibTeX
@misc{wang2026mdforge,
  author = {Zehong Wang and Yijun Ma and Connor R. Schmidt and Tianyi Ma and Weixiang Sun and Ziming Li and Xiaoguang Guo and Chuxu Zhang and Matthew J. Webber and Yanfang Ye},
  title = {{MDForge: Agentic Molecular Dynamics Pipeline Design under Sparse Simulator Feedback}},
  year = {2026},
  eprint = {2606.12916},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.12916},
}
Figure