Functional Adjoint Sampler: Scalable Sampling on Infinite Dimensional Spaces

Byoungwoo Park, Juho Lee, Guan-Horng Liu

Introduction

Sampling from a Gibbs distribution—where the probability of a state is proportional to $e^{-U(x)}$ for a given energy function $U$—is a foundational task in statistical physics and computational chemistry. While recent diffusion-based samplers have achieved remarkable success in finite-dimensional spaces (such as images or fixed-length vectors), extending these methods to infinite-dimensional function spaces remains a significant theoretical and algorithmic challenge.

A critical application of this is Transition Path Sampling (TPS), which seeks to identify the rare, high-energy trajectories a molecule takes when transitioning between stable states, such as an unfolded and folded protein. Traditional deep learning methods treat these paths as high-dimensional vectors, leading to two major bottlenecks:

  1. Boundary Constraints: Enforcing a simulated path to start exactly at state A and end exactly at state B typically requires messy penalty terms that destabilize training.
  2. Resolution Dependency: Models trained at a specific time-step resolution often fail to generalize if sampled at a finer resolution during inference.

To overcome these limitations, researchers introduce the Functional Adjoint Sampler (FAS), a novel diffusion-based framework that leverages the Stochastic Maximum Principle to provide a scalable, discretization-invariant training objective for infinite-dimensional spaces.

Methodology: Sampling as Stochastic Optimal Control

FAS reformulates the sampling problem as a Stochastic Optimal Control (SOC) problem within a Hilbert space (an infinite-dimensional space of functions). This shift in perspective yields several key technical innovations:

Adjoint Matching via the Stochastic Maximum Principle

Instead of optimizing an entire trajectory at once—which requires computationally expensive backpropagation through an SDE solver—FAS utilizes the Stochastic Maximum Principle (SMP). This derives a local "Adjoint Matching" objective, allowing the model to learn the optimal "steering" force (control) at any point in time and space using only local information. This makes the method highly scalable for large molecular systems.

Galerkin Truncation and the Sine Basis

To handle the infinite nature of the space, FAS represents paths using a set of basis functions via Galerkin truncation. By specifically employing a Dirichlet sine basis, the boundary conditions (starting at A and ending at B) are mathematically baked into the coordinate system. The path is physically incapable of ending anywhere else, transforming a hard constraint into a structural property and ensuring a 100% transition success rate by construction.

Feynman-Kac Reweighting

Standard path distributions based on Langevin dynamics can be unstable during training. To address this, the authors derived a new objective based on the Feynman-Kac formula. This approach avoids relying on noisy local potential gradients during the importance-sampling step, leading to significantly more stable training dynamics.

Discretization Invariance

Because FAS learns a continuous functional representation rather than a fixed-length vector, it exhibits "zero-shot" discretization invariance. A model can be trained on a coarse grid (e.g., 100 time-steps) and subsequently sampled at a much finer resolution (e.g., 10,000 time-steps) at inference time without any retraining.

Experiments and Key Results

The researchers evaluated FAS on three increasingly complex Transition Path Sampling benchmarks:

  1. Müller-Brown Potential: A standard synthetic 2D energy landscape with three local minima.
  2. Alanine Dipeptide: A 22-atom molecular system used to study transitions between two metastable conformational states.
  3. Chignolin: A complex 138-atom mini-protein featuring a rugged energy landscape and multiple intermediate states.

FAS demonstrated state-of-the-art performance across all tasks:

  • Perfect Hit Rates: FAS achieved a 100% Transition Hit Rate (THP) across all benchmarks. In stark contrast, existing deep learning baselines (like PIPS or TR-LV) struggled significantly, with hit rates dropping as low as 0% to 43% on the complex Chignolin protein.
  • Lower Energy Barriers: FAS consistently discovered paths with a lower Energy of Transition State (ETS). For Chignolin, FAS found paths with an ETS of -360.85 kJ/mol, substantially outperforming the nearest competitor (-303.98 kJ/mol).
  • Robust Stability: On the Müller-Brown potential, FAS maintained stable log-likelihood and energy metrics even when the discretization resolution was increased by 100x at test time, empirically validating its discretization invariance.

Limitations and Future Directions

While FAS represents a significant leap forward for 1D trajectories (paths indexed by time), the authors note several avenues for future research. Currently, the framework focuses on 1D time-grids, but it could theoretically be extended to 2D or 3D domains to generate solutions for Partial Differential Equations (PDEs) or complex fields.

Additionally, the method's performance is tied to the choice of basis functions. While the sine basis is perfect for fixed endpoints, different basis sets will be required for more exotic boundary conditions or non-rectangular domains. Finally, while the primary experiments utilized Cartesian coordinates, fully integrating graph-based neural operators (such as graph Laplacians for molecular graphs) remains a promising direction for scaling FAS to even larger biochemical systems.

Summary updated

BibTeX
@inproceedings{park2026functional,
  author = {Byoungwoo Park and Juho Lee and Guan-Horng Liu},
  title = {{Functional Adjoint Sampler: Scalable Sampling on Infinite Dimensional Spaces}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=XcJk9un0Tb},
}
Figure