Generative Gibbs for Physics-Aware Sampling
- The paper introduces GG-PA, a training-free Gibbs sampling framework that composes pretrained diffusion priors with explicit physical context to recover complex target distributions.
- It alternates between prior-conditioned denoising updates and context-aware physical updates, allowing modular handling of environmental and interaction variables.
- Replica exchange across diffusion times enhances mixing efficiency, with theoretical guarantees of asymptotic exactness and finite-time precision in quadratic settings.
Generative Gibbs for Physics-Aware Sampling (GG-PA) is a training-free framework for composing pretrained diffusion priors with explicit physical context at inference time by performing Gibbs sampling over an augmented state space that contains both the full physical system and auxiliary prior variables. Rather than requiring a single generative model to represent the entire target ensemble, GG-PA keeps the physical state explicit, couples it to one or more learned partial priors through projection operators, and alternates between prior-conditioned denoising updates and context-aware physical updates. The method is formulated for scientific sampling problems in which the target distribution depends on environmental or interaction variables not represented in the prior, and it is asymptotically exact as the diffusion time approaches zero; in quadratic settings with linear-Gaussian forward kernels, it can remain exact at finite diffusion time (Wang et al., 11 May 2026).
1. Problem setting and augmented-state formulation
GG-PA is motivated by settings in which a pretrained diffusion model encodes only part of the degrees of freedom relevant to the target ensemble. The examples given include a protein backbone, a molecular fragment, or an isolated monomer, whereas the actual target distribution may also depend on solvent, ions, neighboring molecules, fields, or other environmental interactions. In such cases, expressing all additional information as a likelihood or energy over exactly the same variables as the prior can become awkward or intractable, especially when the context already exists as an explicit force field or simulator rather than as a tractable marginal model (Wang et al., 11 May 2026).
The framework therefore introduces an augmented state space
where is the full-system state and are the variables associated with pretrained priors . Each prior is linked to the physical system through a projection , so the priors need only cover projected components of the full state rather than the entire system (Wang et al., 11 May 2026).
At diffusion time , the joint target is
Here is the explicit context factor, typically a Boltzmann weight from a physical energy, and is the forward diffusion kernel for prior 0. In the small-1 limit,
2
so that
3
This limiting marginal is the composed target distribution that GG-PA is designed to sample (Wang et al., 11 May 2026).
A central implication is that the method does not force the environmental degrees of freedom to be marginalized into an effective energy on the prior variables alone. This suggests a modular sampling architecture in which learned priors and explicit physical models remain separate objects coupled only through the augmented target.
2. Gibbs structure and alternating updates
GG-PA is implemented as alternating Gibbs updates on the augmented target. Conditioned on the physical state 4, the prior variables update independently according to
5
The interpretation given is Bayesian denoising: 6 is treated as a noisy observation at diffusion time 7, and the conditional is the denoising posterior induced by the clean-data prior and the forward corruption kernel. In practice, the pretrained reverse diffusion sampler for prior 8 is initialized at 9, started from time 0, and integrated backward to 1 to produce 2. These updates are parallel across 3 (Wang et al., 11 May 2026).
Conditioned on the prior variables, the physical state is then updated from
4
Equivalently, the update is governed by the effective potential
5
This context-aware aggregation step can be exact in tractable families, especially Gaussian or linear-Gaussian settings, and otherwise can be performed with Metropolis-Hastings or Langevin/MCMC (Wang et al., 11 May 2026).
The operational pattern is therefore a two-stage alternation: denoise under the learned priors, then update the full explicit system under the physical context plus soft coupling terms induced by the diffusion kernels. The paper presents this as distinct from ordinary diffusion guidance, because the state being updated in the context step is the full physical system 6, not merely the prior variable space (Wang et al., 11 May 2026).
3. Exactness results and finite-7 Gaussian theory
The principal theoretical claim is asymptotic exactness as 8. For decomposable systems in which the true energy separates into component energies 9, environment energy 0, and interaction terms 1, the paper assumes exact isolated-component priors
2
with 3, and a context factor
4
Under these assumptions, the 5 marginal recovers the true physical Boltzmann distribution exactly: 6 The derivation follows immediately from the delta-function limit of the forward diffusion kernels (Wang et al., 11 May 2026).
A stronger result is available at finite diffusion time for quadratic interactions with linear-Gaussian forward kernels. The assumptions are that, conditional on the environment, the interaction energy is Gaussian in the system variables,
7
that the stacked forward kernels are linear-Gaussian,
8
and that the finite-9 interaction context is chosen Gaussian,
0
Then exact finite-1 recovery occurs iff
2
The admissibility condition is
3
which defines a maximal diffusion time 4 beyond which the deconvolved covariance becomes invalid (Wang et al., 11 May 2026).
The paper also notes a split-Gibbs consequence for linear inverse problems: the corrected covariance should be
5
rather than the naive 6. This removes the finite-7 covariance inflation that standard split Gibbs incurs (Wang et al., 11 May 2026).
A common misconception is that GG-PA is exact at arbitrary finite diffusion time. The paper explicitly limits finite-8 exactness to quadratic or linear-Gaussian structure; outside that regime, exactness is only asymptotic as 9 (Wang et al., 11 May 2026).
4. Diffusion-time replica exchange and mixing considerations
Because small diffusion time yields faithful but stiff targets, whereas larger diffusion time weakens prior consistency while often improving exploration, GG-PA introduces replica exchange over diffusion time. The method runs 0 replicas at
1
with each replica carrying 2, and proposes swaps between neighboring times (Wang et al., 11 May 2026).
The Metropolis-Hastings acceptance ratio is derived directly from the joint target. In schematic form,
3
An important practical feature is that the unknown prior densities 4 cancel exactly. For a constant context schedule 5, the context terms cancel as well, so the swap test depends only on known diffusion kernels (Wang et al., 11 May 2026).
The intended interpretation is tempering along a diffusion-time axis: high-noise replicas cross barriers more easily, and successful swaps transfer those exploratory moves to low-noise replicas. The paper further describes MBAR reweighting using reduced potentials
6
with prior terms omitted because they are replica-independent (Wang et al., 11 May 2026).
This establishes a fidelity–mixing trade-off as a central organizing principle of the method. A plausible implication is that practical performance depends not only on the prior quality and the context model, but also on the diffusion-time ladder and the efficiency of exchanging information across replicas.
5. Relation to adjacent physics-aware generative samplers
GG-PA belongs to a broader family of physics-aware generative sampling methods, but its structure differs from both local learned Gibbs schemes and reversibility-based global samplers.
The most direct distinction from standard diffusion posterior sampling, classifier guidance, and score composition is structural: those methods typically assume that all additional information can be expressed as a likelihood or energy on the same variable space as the diffusion prior, whereas GG-PA keeps an explicit full-system state 7 and couples it to priors only through projections 8 (Wang et al., 11 May 2026). This avoids marginalizing unmodeled environmental variables into an effective energy over the prior coordinates alone.
The method is algorithmically close to plug-and-play and split Gibbs approaches because it alternates between a prior-driven update and a context-driven update. The paper emphasizes, however, that the augmented pair 9 is not merely a numerical splitting device but the actual composition space of inference (Wang et al., 11 May 2026).
In relation to learned Gibbs or heatbath samplers, PBMG provides a different form of physics-aware composition. PBMG learns local conditional proposal distributions 0 and inserts them into Metropolis-within-Gibbs updates over checkerboard blocks in lattice models. It does not model the full joint lattice distribution directly; instead, it learns one-site conditionals from the analytic local action, without requiring target samples, and uses Metropolis correction to preserve exactness. PBMG is demonstrated on the XY and 1 models, with average acceptance about 2 for the XY setup and about 3 for the 4 setup (Faraz et al., 2023). The conceptual overlap is that both PBMG and GG-PA are physics-aware Gibbs-type samplers, but PBMG learns local proposals inside a lattice update schedule, whereas GG-PA composes pretrained partial priors with an explicit full-system context in an augmented diffusion-coupled state space.
RevGen, by contrast, replaces score matching and variational objectives with a reversibility constraint on Markov trajectories. It trains a generator 5 by minimizing the MMD between forward and time-reversed trajectory-pair distributions under a fixed physical transition kernel such as Metropolis-Hastings. The objective is target-gradient-free and uses only energy evaluations through acceptance ratios, with support for continuous, discrete, and hybrid spaces (Li et al., 10 Mar 2026). A plausible interpretation is that RevGen and GG-PA address complementary aspects of physics-aware generative sampling: RevGen learns a generator whose outputs satisfy equilibrium reversibility constraints, whereas GG-PA performs training-free inference by coupling pretrained priors and explicit context through Gibbs updates.
6. Empirical demonstrations, scope, and limitations
The experiments reported for GG-PA cover a coupled double-well system, a 2D 6 lattice model, and atomistic alanine dipeptide systems (Wang et al., 11 May 2026).
For the coupled double-well system,
7
the prior is trained only on the isolated symmetric double well, and the environment is introduced only at sampling time. GG-PA recovers the environment-induced asymmetry in the marginal of 8 and the correct shifted ensemble despite the symmetric prior. The study reports JS divergence versus diffusion time, the integrated autocorrelation time of the basin indicator 9, and a finite theoretical bound 0. Below 1, fixed-2 GG-PA and GG-PA-RE match the target well; above 3, errors rise as predicted; replica exchange substantially reduces autocorrelation and can sometimes outperform MD in decorrelation (Wang et al., 11 May 2026).
For the 2D Ginzburg-Landau 4 lattice model,
5
the diffusion prior is trained only on the local on-site double-well factor, while the explicit quadratic coupling is added at inference time. GG-PA recovers the spontaneous symmetry breaking phase transition, the magnetization curve, the susceptibility peak near 6, critical scaling, and universal data collapse in finite field. The reported observables include the order parameter 7, susceptibility 8, and integrated autocorrelation time 9. GG-PA tracks checkerboard Metropolis MC across the phase diagram, and replica exchange sharply lowers autocorrelation near criticality, with order-of-magnitude gains (Wang et al., 11 May 2026).
For atomistic alanine dipeptide systems, the method is tested outside the quadratic regime. In the AD–Na0 example, a diffusion prior is trained only on isolated alanine dipeptide backbone torsions 1, while the full atomistic system and ion context are explicit. GG-PA captures the ion-coordination-induced distribution shift and reproduces the O–O distance distribution near quantitatively. A data-efficiency study reports that GG-PA reaches low JS divergence with far less target-coupled training data than a direct diffusion model (Wang et al., 11 May 2026).
In the alanine dipeptide dimer example, two monomer priors are composed to model dimerization and hydrogen-bond-mediated topology selection. GG-PA-RE qualitatively recovers symmetry-broken organization: anti-parallel dimers favor 2, whereas parallel dimers favor 3 and 4. The method also produces more off-basin or residual states than MD, indicating approximation error. The paper reports a residual unassigned category 5, interpreting it as a coarse-graining artifact plus some rare or off-basin motifs. For sampled observables, autocorrelation times are massively reduced relative to MD, often from thousands of ps down to order 6 ps or less (Wang et al., 11 May 2026).
The reported limitations are explicit. Finite-7 exactness is confined to quadratic or linear-Gaussian structure; outside that regime, finite-8 sampling is approximate. There is a fidelity–mixing trade-off between small and large diffusion times. The covariance admissibility bound
9
imposes a noise ceiling. Mixing can remain difficult in stiff systems, and replica exchange increases computational cost because it requires multiple replicas. Performance depends on prior fidelity, overlap between prior and context, projection design, and avoidance of double counting of interactions. The paper identifies annealed context schedules, more efficient tempering, multiscale decompositions, and explicit force-field contexts as future directions (Wang et al., 11 May 2026).
Taken together, these results define GG-PA as a probabilistic composition framework for partial pretrained priors and explicit physics, rather than as a monolithic conditional diffusion model. Its core contribution is the replacement of end-to-end retraining with augmented-space Gibbs inference, supported by asymptotic exactness, a finite-0 Gaussian exactness condition, and diffusion-time replica exchange for practical sampling in stiff systems (Wang et al., 11 May 2026).