High-Fidelity Boltzmann Sampling via Physical Prior Lifted Continuous GFlowNets

Xizhi Tian, Wenhao Deng, Haojia Hui, Hang Chen, Long WeiNeurIPS 2026

TL;DR

Predicting how molecules and proteins fold at thermal equilibrium requires sampling from high-dimensional Boltzmann distributions—a notoriously rugged mathematical terrain where traditional simulations get stuck and modern AI struggles to use basic physics. This paper introduces Physical Prior Lifted continuous GFlowNets (PPL), a framework that uses rough physical approximations as "scaffolding" during training to stabilize learning, then discards the scaffolding at test time. The result is a fast, stable generative sampler that achieves up to a $36\times$ speedup over state-of-the-art diffusion samplers and scales cleanly to complex proteins.

What Problem Does This Paper Address?

In chemistry and statistical physics, nature favors low-energy states. The probability of finding a molecular system in a specific 3D arrangement is governed by the Boltzmann distribution: lower energy means exponentially higher probability.

We usually know the energy function $E(x)$ for any single atomic arrangement $x$, so we can evaluate how "good" a state is. However, actually generating a diverse, properly weighted set of stable configurations is brutal. High-dimensional molecular landscapes are filled with deep, isolated low-energy valleys (metastable states) separated by massive energy mountains. Moreover, the normalizing constant (the partition function $Z_\beta$, which sums over every possible atomic arrangement in the universe) is completely intractable.

  • Classical MCMC (Markov Chain Monte Carlo) walks step-by-step through this landscape. It is asymptotically exact, but crossing high energy barriers takes forever.
  • Diffusion models and Schrödinger bridges learn to transport simple Gaussian noise directly into target configurations. However, their rigid mathematical structure (like strict time-reversal symmetry) makes it nearly impossible to inject helpful physical priors—like the heuristic knowledge of where low-energy valleys roughly sit—leaving them blind to distant modes.
  • Generative Flow Networks (GFlowNets) decouple forward generation from backward trajectories, theoretically allowing physical priors. Yet, when extended from discrete graphs to continuous 3D space, training both trajectories simultaneously causes severe numerical instability.

Methods

The authors propose PPL, which stabilizes continuous GFlowNets by separating rough mode exploration from exact probability weighting.

Figure 1: Overview of our PPL training and sampling framework. The physical prior information is encoded by the tractable reference distribution, implemented by Gaussian Mixture Models or Flow matching, detailed in Section 3.4.

Instead of forcing a GFlowNet to blindly explore the configuration space using its own unfinished, unstable policy, PPL introduces an external reference space equipped with a tractable distribution ($\pi_{\text{ref}}$) and a differentiable mapping ($R_\theta$) to the molecular space:

  1. Building the Reference: If explicit physical priors exist (e.g., known local minima from structural databases), $\pi_{\text{ref}}$ is built analytically using a Gaussian Mixture Model (GMM). If priors are absent (the default for complex molecules), the authors run a brief, early-stopped Parallel Tempering simulation to get rough, biased coverage of the valleys, and train a Flow Matching (FM) network to map Gaussian noise to those proxy samples.
  2. Reference-Weighted Trajectory Balance (RWTB) Loss: This is the core mathematical novelty. Standard continuous GFlowNets minimize Trajectory Balance (TB) residuals using on-policy samples, which blows up numerically. PPL rewrites the ideal TB objective using importance sampling over the fixed reference distribution $\pi_{\text{ref}}$, neatly canceling out the intractable partition function $Z_\beta$ via self-normalized importance weights.
  3. Scaffolding-Free Inference: During training, reference samples guide and stabilize the GFlowNet's neural ODE velocity field ($u_\phi$). Once trained, the reference distribution and Flow Matching network are completely discarded. Sampling only requires integrating the lightweight GFlowNet ODE from standard Gaussian noise.

Datasets

The authors evaluate PPL across six existing benchmarks (no new datasets are introduced, scaling from toy potentials to a 10-residue protein):

  • Synthetic Energy Potentials: MW-5 ($d=5$, multi-well), DW-4 ($d=8$, four-well), and LJ-13 ($d=39$) / LJ-55 ($d=165$), which model tightly packed Lennard-Jones atomic clusters with numerous local minima.
  • Molecular & Protein Systems: Alanine dipeptide ($d=60$), a standard molecular benchmark with distinct rotameric basins, and Chignolin ($d=267$), a challenging 10-residue protein.

Key Insights and Ideas

  • Imperfect priors still yield exact samplers: Your reference guide doesn't need accurate thermodynamic weights, nor do its energy minima need to be exact. As long as $\pi_{\text{ref}}$ puts some non-zero probability over the relevant valleys (even retaining just 20% of proxy samples in a rare basin), the RWTB loss actively corrects the weights toward the true Boltzmann target.
  • Training scaffolding shouldn't slow down inference: By using the reference map strictly to evaluate the loss during training, PPL avoids stacking multiple generative models at test time.
  • Amortizing MCMC beats pure diffusion: Spending a small upfront compute budget on early-stopped Parallel Tempering to build a rough map saves massive amounts of compute later, avoiding the endless exploration bottlenecks that plague pure diffusion samplers.

Key Results

PPL achieves state-of-the-art accuracy while slashing training times (which fairly include proxy data collection, FM training, and RWTB optimization):

  • Synthetic Benchmarks: On LJ-55 ($d=165$), PPL cuts the energy Wasserstein-2 error ($E(\cdot)\mathcal{W}_2$, measuring exact Boltzmann weighting) by 82% compared to the strongest diffusion baseline, ASBS ($4.95$ vs. $28.10$). Crucially, ASBS takes $184.71$ hours to train on an A100 GPU, whereas PPL finishes in $5.07$ hours—an approximate $36\times$ speedup.
Figure 2: Probability density comparison on synthetic systems. Our samples (orange) match ground truth (blue) across both distance and energy histograms, including low-probability tails.
  • Alanine Dipeptide: PPL achieves $<0.02$ KL divergence across all five torsion angles and drops the joint Ramachandran $\mathcal{W}_2$ distance from $0.25$ (ASBS) down to $0.03$ ($\sim 8\times$ reduction), capturing rare side-chain states that diffusion models miss.
  • Chignolin Protein ($d=267$): Where diffusion samplers (PIS, ASBS) fail to converge entirely, PPL achieves near-ground-truth fidelity, reducing mean energy error by 85.4% over SNIS and 82.1% over SMC ($1.583$ vs. $10.811$ and $8.842$, approaching the ground-truth floor of $1.1715$).

Limitations and Future Work

  • Garbage-in (if completely blind), garbage-out: PPL's biggest catch is its reliance on reference coverage. Ablations show that if the proxy sampler misses a low-energy mode entirely (0% samples in a basin), RWTB cannot magically rediscover it.
  • Theoretical vs. Real-World Gaps: The mathematical guarantees rely on reference-coverage and sampling assumptions that may break down in massive, unruly biomolecular systems.
  • Future Directions: Finding a theoretically optimal way to construct the reference distribution—and figuring out how to best inject domain-specific physics into larger, more complex molecular systems without relying on brute-force proxy runs—remains wide open.

Summary updated

Abstract

Sampling high-dimensional Boltzmann distributions is fundamental yet challenging. Classical MCMC methods incur prohibitive computational costs, while modern generative approaches such as diffusion models and Schrödinger bridges struggle to incorporate informative physical priors. GFlowNets offer a promising alternative, yet existing continuous variants suffer from training instability. In this paper, we propose Physical Prior Lifted continuous GFlowNets (PPL), a framework that encodes physical prior information through a reference space equipped with a reference distribution and a mapping to the original configuration space. The sampling process is learned via a Reference-Weighted Trajectory Balance (RWTB) loss, yielding stable training dynamics, efficient learning, and rigorous theoretical guarantees. Empirically, PPL achieves state-of-the-art performance across five benchmarks spanning synthetic, molecular, and protein systems. On the synthetic LJ-55, we obtain significantly lower error than the state-of-the-art diffusion-based method with about $36\times$ speedup. Notably, on the 267-dimensional Chignolin protein, PPL attains near-ground-truth sampling fidelity. Our code is available at https://github.com/WeiLab-Fudan/PPL.
BibTeX
@inproceedings{tian2026high,
  author = {Xizhi Tian and Wenhao Deng and Haojia Hui and Hang Chen and Long Wei},
  title = {{High-Fidelity Boltzmann Sampling via Physical Prior Lifted Continuous GFlowNets}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=GmYzBqp2bI},
}
Figure