arXiv:2611.02170cs.LGNov 2026

Manuscript Offprint

arXiv:2611.02170

Restrained Diffusion Bridges: Targeted Denoiser Training and Refinement

Xuanxi Zhang, Kevin S. Cheng, Weizhou Wang, Jonathan Weare

Abstract

Diffusion models are often inaccurate in critical, data-sparse regions of the target distribution. Sampling from restrained distributions, biased distributions used in classical enhanced sampling to concentrate data near chosen configurations, can control where training data are collected but biases the learned distribution. We establish that this bias cancels exactly when forward noising from restrained data is conditioned on the restrained configuration at an appropriately chosen intermediate time. This allows a pretrained model fine-tuned on restrained data to achieve high accuracy in any chosen region of the target distribution, regardless of its probability, using standard denoising or flow matching objectives without importance weights. When no target data are available, Gibbs sampling enables inference from a model trained exclusively on restrained data.

1 Introduction

A fundamental challenge in diffusion-based generative modeling is poor accuracy in regions of state space that have low probability under the (possibly unnormalized) target measure π\pi and are poorly represented in training data. These regions, such as transition states in molecular simulations, rare posterior configurations, or low-frequency image modes, are often of critical importance in downstream analysis. A potential remedy is to reweight the training distribution toward rare regions or collect more data there. However, simple reweighting or oversampling causes the model to learn the wrong target measure. Correcting with importance weights, when they are available, does not resolve the problem because those weights are small in low probability regions by design.

Classical umbrella sampling uses harmonic biases to restrain simulations near selected configurations (Torrie and Valleau, 1977; Kästner, 2011). The resulting densities π(x)exp⁡(−∥x−z∥2/2s2)\pi(x) \exp(-\|x-z\|^2/2s^2) suppress distant configurations and keep a chain near zz, facilitating sampling even when zz is highly atypical under π\pi. As for reweighting and oversampling, a diffusion model trained directly on restrained data learns the restrained density rather than π\pi.

Here, we show that conditioning the forward noising process on restrained data exactly cancels the biasing effect of those data. A model trained on restrained data with standard denoising or flow matching objectives, and no other modifications, therefore recovers the unconditional score of π\pi with no importance weights or

∗^{*}dinner@uchicago.edu

†^{\dagger}weare@nyu.edu

Figure

Figure 1: Conceptual overview of Restrained Diffusion Bridges (RDBs). (a) Standard training provides many trajectories to the dominant mode of π\pi but few to the rare mode. (b) Multiplying π\pi (blue dashed) by the Gaussian restraint (red dashed) gives the restrained target p(⋅∣z)p(\cdot \mid z) (orange). Restrained endpoints and bridges pinned at xt∗=αt∗zx_{t^{*}} = \alpha_{t^{*}}z focus fine-tuning on the rare region while recovering the score of π\pi. (c) Algorithm 1 uses the pretrained model from TT to t∗t^{*} and the fine-tuned model from t∗t^{*} to 0. Algorithm 2 alternates the reverse bridge with z∼N(x0,s2I)z \sim \mathcal{N}(x_0, s^2 I) using only the fine-tuned model

correction terms (Theorem 1). This cancellation exploits the observation that the restrained density at scale ss coincides exactly with the posterior distribution π0∣t∗(x0∣xt∗)\pi_{0|t^{*}}(x_0 \mid x_{t^{*}}) inside a diffusion model when the noise level t∗t^{*} is matched to ss (Lemma 1).

These results motivate a targeted training algorithm that requires no additional samples from π\pi and allows precise control over where training data are concentrated without introducing any bias (Figure 1). It can also be used to fine-tune a pretrained diffusion model whose accuracy degrades near a rare configuration: the model is refined only for times in [0,t∗][0, t^{*}] and only in a neighborhood of that configuration, using restrained samples drawn near it. When ∇log⁡π\nabla \log \pi is available, we sample the restrained distributions using Langevin sampling. We also propose an alternative dataset resampling strategy when only samples from π\pi are available (Appendix C). The fine-tuned model produces independent samples via standard inference at no extra cost.

When no reasonable pretrained model is available, our algorithm can be used to train a model valid on [0,t∗][0, t^{*}] only. The model on [0,t∗][0, t^{*}] can then be used to generate samples from π\pi using a learned Gibbs sampler (Section 5.2). We validate our approach on the Müller-Brown potential, where analytic ground truth is available, and on two molecular benchmarks, alanine dipeptide in explicit solvent and chignolin in implicit solvent, which test the approach in realistic simulation settings (Section 6).

References (89)