Deep learning has fundamentally changed how we predict molecular structures, moving from slow, sampling-heavy simulations to near-instantaneous coordinate generation. However, a recurring problem persists across protein folding, drug docking, and crystallography: AI models are excellent at capturing global topology but often "hallucinate" local physical impossibilities. They may predict a protein backbone with high confidence while placing atoms in positions that overlap or violate basic chemical bond lengths.
To bridge this "validity gap," researchers are increasingly adopting a hybrid strategy. By treating the output of a generative model as a "seed" and applying a secondary physics-based refinement step, the field is moving toward a paradigm that combines the search efficiency of neural networks with the rigorous constraints of classical physics.
The Validity Gap in Generative Design
The core tension in molecular AI is between statistical plausibility and physical reality. As Martin Buttenschoen and Charlotte Deane demonstrate in PoseBusters, even state-of-the-art docking models frequently fail basic chemical sanity checks, such as preventing steric clashes or maintaining correct chirality.
This happens because most generative models, including diffusion frameworks like Peptide2Mol, operate in a coordinate space where the loss function prioritizes spatial proximity to a training target rather than the underlying energy landscape. The result is a structure that "looks" right to a neural network but is energetically explosive. To fix this, researchers like Yize Jiang in the PoseX study have shown that a simple post-processing "relaxation" using classical force fields can resolve these hallucinations, significantly improving the physical validity of AI-generated poses without losing their positional accuracy.
Refinement as an Energy-Based Polish
The most common mechanism for this refinement is Local Energy Minimization. In this process, the AI-generated coordinates serve as the starting point for an optimization algorithm that "nudges" atoms toward their nearest local energy minimum.
In the ImmuneBuilder suite, Brennan Abanades and colleagues use molecular mechanics force fields to refine predicted antibody structures. This step is not just cosmetic; it ensures the models are free of steric clashes and have realistic bond geometries, making them immediately usable for downstream simulations like molecular docking. Similarly, Hao Qian and the team behind PepBFN argue that while Bayesian Flow Networks can design complex peptides, physics-aware refinement is the only way to guarantee the biological stability of the resulting conformations.
Bridging Generative Models and Experimental Data
Refinement isn't just about fixing errors; it’s about integrating different types of "truth." In crystallography, the challenge is finding a 3D atomic arrangement that fits 1D powder diffraction data.
Traditional methods, such as the Genetic Algorithms described by Eugene Cheung in Crystal structures from powder X-ray diffraction using genetic algorithms, have long used stereochemical restraints to keep searches within the realm of physical possibility. Modern approaches like PXRDGen by Qi Li automate this by coupling a flow-based generative model with Rietveld refinement. The generative model provides a high-quality initial guess, and the refinement engine polishes the atomic positions to minimize the difference between the simulated and observed diffraction patterns. This hybrid approach allows researchers to solve complex structures in seconds that previously took weeks of manual expert intervention.
Constrained Optimization and Structural Fidelity
A key intuition in refinement is the balance between flexibility and fidelity. If a refinement step is too aggressive, it might move the atoms so far from the AI's prediction that it destroys the model's learned insights.
To prevent this, many researchers use constrained refinement. For example, Matteo P. Ferla in the Fragmenstein project uses energy minimization that is spatially "tethered" to known fragment positions. This ensures that the final drug candidate is chemically plausible while strictly adhering to the experimental structural data of its parent fragments. Similarly, the HiQBind-WF workflow by Yingze Wang applies constrained minimization to clean up experimental datasets, resolving physical tensions like steric clashes while keeping the atoms close to their original coordinates.
From Post-Processing to Integrated Dynamics
The field is now moving beyond simple post-hoc "polishing" toward integrating physical dynamics directly into the generative process.
- Virtual Dynamics: Shuqi Lu and colleagues developed VD-Gen, which generates molecules by simulating "virtual particles" that move according to learned forces, effectively baking the refinement into the generation itself.
- Unbalanced Flows: In FLEXDOCK, Gabriele Corso uses flow matching combined with handcrafted energy-based loss functions. This allows the model to "transport" a protein from an unbound to a bound state while nudging it toward physically stable configurations at every step.
- Learned Potentials: Instead of using 30-year-old force fields, models like OmniMol by Bowen Wang use learned potentials to relax structures. This emulates molecular dynamics but operates at the speed of a neural network.
By combining the global pattern-matching capabilities of AI with the local precision of physics-based refinement, researchers are creating a new generation of tools that are not just fast, but physically trustworthy.