Abstract
Sampling from complex, high-dimensional probability distributions where only an unnormalized energy function is known—such as the Boltzmann distribution in physics and chemistry—remains a fundamental challenge. Traditional Markov Chain Monte Carlo (MCMC) methods scale poorly, while recent diffusion-based samplers often require expensive on-policy simulations during training. This paper introduces Adjoint Sampling, a highly scalable algorithm that decouples expensive physics evaluations from model training. By utilizing Reciprocal Adjoint Matching (RAM) and a replay buffer, the method achieves massive computational speedups, enabling amortized molecular conformer generation at scale.
Introduction
In computational chemistry and molecular biology, researchers frequently encounter the problem of sampling from a target distribution defined by an energy function $E(x)$, where the normalizing constant is unknown. While diffusion models have revolutionized generative modeling, their application to energy-based sampling typically falls into two categories: data-driven training (which requires pre-existing ground-truth samples) or simulation-based training (which requires evaluating the energy function at every step of the diffusion process).
For complex physical systems, evaluating the energy function—often involving heavy physics simulations or deep neural networks—is the primary computational bottleneck. This makes scaling diffusion samplers to large systems like proteins or complex molecules computationally ruinous. Adjoint Sampling addresses this by framing the sampling problem as a Stochastic Optimal Control (SOC) task and introducing a novel matching objective that significantly reduces the number of required energy evaluations.
Methods: Reciprocal Adjoint Matching
The core innovation of Adjoint Sampling is Reciprocal Adjoint Matching (RAM). To find the optimal "drift" that steers a base diffusion process toward the target energy distribution, the authors move away from full trajectory simulations during every training step.
1. Decoupling Evaluations
Instead of simulating a forward trajectory and evaluating energy at every time step, RAM uses a "Reciprocal projection." The algorithm samples a final state $X_1$, evaluates its energy exactly once, and then analytically samples intermediate states $X_t$ conditioned on $X_1$. This is possible because the backward transitions of the base diffusion process are known and computationally cheap.
2. Replay Buffer for Efficiency
Because RAM allows intermediate states to be generated analytically from a terminal state, the authors can decouple the expensive energy evaluations from the gradient updates. By storing evaluated samples $(X_1, E(X_1))$ in a replay buffer, the model can perform many cheap gradient updates on buffered samples before needing to generate new ones. On complex tasks like the LJ-55 potential, this approach requires $O(100,000)$ fewer energy evaluations per gradient update compared to previous state-of-the-art methods like iDEM.
3. Geometric Inductive Biases
To apply this framework to molecular systems, the authors incorporate physical symmetries directly into the architecture. They utilize Equivariant Graph Neural Networks (EGNNs) to ensure that 3D Cartesian coordinates maintain SE(3) invariance (translation and rotation). For modeling torsional angles, they employ e3nn architectures to handle periodic boundary conditions effectively.
Experimental Evaluation
Synthetic Potentials
The authors first validated Adjoint Sampling on synthetic energy functions, including the DW-4 (a 2D 4-particle Double-Well potential) and 3D Lennard-Jones potentials (LJ-13 and LJ-55). In these settings, the method matched the performance of existing particle Wasserstein distance benchmarks while providing a massive leap in training efficiency.
Molecular Conformer Generation
A major contribution of this work is the introduction of a challenging new benchmark for amortized molecular conformer generation. The model was trained on the SPICE dataset using a pretrained neural network force field (eSEN) as the energy model.
Two approaches were compared:
- Cartesian Sampling: Moving atoms freely in 3D space.
- Torsional Sampling: Constraining movement to bond rotations.
While Torsional sampling is more naturally constrained, the Cartesian approach proved more flexible. When combined with pretraining and a post-generation "relaxation" step (a short gradient descent on the energy function), Cartesian Adjoint Sampling achieved a 96.65% coverage recall on the SPICE dataset, significantly outperforming the industry-standard rules-based method, RDKit ETKDG (81.61%).
Generalization and Limitations
Zero-Shot Generalization
To test if the model truly learned the underlying physics rather than memorizing the training set, it was evaluated on the GEOM-DRUGS dataset without further training. Adjoint Sampling maintained a high recall of 87.01%, compared to RDKit’s 71.72%, demonstrating robust generalization to unseen molecular topologies.
Current Limitations
Despite the high recall (the ability to find a wide variety of valid conformers), the model's precision—the frequency with which a raw generated sample lands exactly in a low-energy local minimum—lags behind rules-based systems on the GEOM-DRUGS dataset. Currently, the best results still rely on post-generation relaxation to "snap" samples into their final, most stable configurations.
Conclusion
Adjoint Sampling represents a significant step forward in making diffusion-based sampling practical for the physical sciences. By mathematically proving that an alternating training scheme with a replay buffer implicitly projects the model onto optimal controls, the authors provide both a theoretical foundation and a highly efficient practical tool. The open-sourcing of the SPICE/GEOM-DRUGS benchmark aims to facilitate further development in amortized sampling for drug discovery and materials science.
Summary updated