arXiv:2610.02538stat.MLOct 2026

Manuscript Offprint

arXiv:2610.02538

ENCORE: Exact Non-equilibrium COntrol with Replica Exchange for Diffusion Generation

Jiahao Yu, Saifuddin Syed, José Miguel Hernández-Lobato, Jiajun He

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Inference-time control steers a pretrained generative model towards a target distribution without retraining. We study tilted targets π0∝G0p0\pi_0 \propto G_0 p_0, where p0p_0 is the sampler output distribution and G0G_0 is an evaluable reweighting function. Existing approaches rely on sequential annealing with sequential Monte Carlo (SMC) or parallel annealing with replica exchange (RE). Sequential control is exact but needs large particle populations, whereas no exact parallel control method exists: existing RE corrections approximate an intractable time reversal and are biased. We propose Exact Non-equilibrium Control with Replica Exchange (ENCORE), the first exact parallel control method. Each replica stores its generation trajectory, so the upward move is a truncation and the intractable time reversal is never simulated. We prove target invariance and show that the resulting dynamics are those of non-equilibrium replica exchange with the exact time reversal as forward proposal. Under regularity conditions, our diffusion analysis shows that both sequential and parallel control become unstable under refinement of the time discretisation without guidance, whereas guided proposals remain stable and yield diagnostics for tuning the schedule and the computational budget. Across synthetic targets, Boltzmann sampling of biomolecules, and image generation, ENCORE achieves competitive accuracy and diversity, remains robust to sampler perturbations, and applies to distilled samplers where existing RE corrections are unavailable.

1 INTRODUCTION

Diffusion models (Ho et al., 2020; Song et al., 2021) have achieved strong performance in image (Dhariwal & Nichol, 2021), video (Ho et al., 2022), and molecular generation (Hoogeboom et al., 2022). However, downstream tasks often require samples to align with preferences, observations, or constraints. Inference-time control steers generation without retraining the model. Many such tasks, including reward tilting (Uehara et al., 2025) and posterior sampling (Wu et al., 2023a; Chung et al., 2023), can be formulated as endpoint reweighting,

π0(dx0)∝G0(x0)p0(dx0),(1.1)\pi_{0}(\mathrm{d}x_{0})\propto G_{0}(x_{0})p_{0}(\mathrm{d}x_{0}), \tag{1.1}

where p0p_{0} is the sampler's output distribution and G0G_{0} is a non-negative, evaluable reweighting function. For instance, it steers image generation towards human preferences (Xu et al., 2023; Singhal et al., 2025), while in biomolecular applications it supports sampling at different temperatures (Skreta et al., 2025; He et al., 2026b) and exploring rare conformations for free-energy estimation (Xie et al., 2026).

Guidance (Dhariwal & Nichol, 2021; Ho & Salimans, 2022) steers generation by modifying the reverse-time score or drift. The exact correction is the Doob transform (Del Moral, 2004), but it depends on an intractable expectation over the remaining generation. In practice, guidance methods rely on approximations and therefore need not preserve the intended endpoint distribution (Bradley & Nakkiran, 2024; Dandapanthula & Boffi, 2026).

Monte Carlo methods provide a complementary approach by targeting π0\pi_{0} directly. Sequential Monte Carlo (SMC). (Del Moral, 2004; Del Moral et al., 2006) propagates, reweights, and resamples a particle population through a sequence of intermediate distributions (sequential annealing) Nevertheless, SMC can suffer from weight and ancestral degeneracy, particularly with limited particle populations.

∗^{*}Work completed at the University of Cambridge.

†^{\dagger}Correspondence to jh2383@cam.ac.uk.

Figure

Figure 1: One-dimensional output distributions at nominal transition variance with 10,000 samples.

Replica exchange (RE), or parallel tempering (PT) (Swendsen & Wang, 1986; Geyer, 1991; Hukushima & Nemoto, 1996), instead maintains replicas across a ladder of intermediate distributions and exchanges neighbouring replicas through Metropolis–Hastings moves (parallel annealing). Whereas SMC propagates particles through the ladder once, RE evolves a persistent set of replicas over successive MCMC iterations (Syed et al., 2026). This gives an online advantage over SMC: sampling continues without restarting.

However, continued sampling recovers the intended target only if the chain preserves it. TDS (Wu et al., 2023a) and FKD (Singhal et al., 2025) compute exact SMC weights for their chosen potentials without evaluating sampler marginals. In contrast, CREPE (He et al., 2026b) approximates intermediate marginal-density ratios using denoising and noising transition densities. This substitution relies on an exact time-reversal relation that may be violated by model or discretisation error. Any resulting bias persists with longer runs. CREPE also requires a tractable paired noising kernel, which may be unavailable for, e.g., distilled few-step samplers. No exact parallel control method exists.

We address these limitations with Exact Non-equilibrium Control with Replica Exchange (ENCORE). The key idea is to lift each replica from its current state to a partial generation trajectory. An upward exchange then truncates the stored trajectory rather than simulating a noising transition, allowing common sampler-path terms to cancel exactly in the Metropolis–Hastings ratio. The resulting replica movement across levels and target-level chains are illustrated in Fig. 2. See Fig. 1 for an illustration of how different inference-time control methods affect the endpoint distribution.

We show that ENCORE preserves the endpoint target without evaluating intermediate marginals or requiring a paired noising kernel. We show that ENCORE has the rejection rate of non-equilibrium replica exchange with the exact time reversal as forward proposal, which vanishes precisely under the Doob relations. For diffusion samplers, we show under regularity conditions that refining the time discretisation can cause accumulated rejection to diverge without guidance, whereas guided proposals admit a finite global communication barrier Λ\Lambda, which measures the deviation of the guidance from the Doob transform and sets the number of levels needed. Experiments on synthetic reward tilting, molecular sampling, and few-step image generation demonstrate competitive accuracy and diversity, robustness to sampler perturbations, and applicability where existing RE corrections are unavailable.

References (91)