arXiv:2610.01933stat.MLOct 2026

Manuscript Offprint

arXiv:2610.01933

Error-Corrected Inference-Time Scaling for Imperfect Diffusion Models

Zuokai Wen, Louis Grenioux, Weinan E, Jiequn Han

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

ABSTRACT

Inference-time scaling adapts pretrained diffusion models to new sampling tasks without additional training. Existing methods rely primarily on Monte Carlo sampling with more particles, yet are premised on the pretrained model being exact. In practice, data and training limitations make the model imperfect, and these methods inherit its error. More particles reduce Monte Carlo error but cannot remove the mismatch between the endpoint and the desired target or the error in tracking the prescribed probability path. We introduce the Energy-based Feynman–Kac Corrector (EBFKC), a framework for energy-based diffusion models that corrects these errors on the fly given a reference energy. We first derive Feynman–Kac dynamics that track a prescribed path exactly in the continuous-time population limit even when the model is imperfect, and approximate these dynamics using sequential Monte Carlo with variance-controlling guidance. To remove the endpoint mismatch, we use the pretrained energy as a surrogate along the diffusion path and progressively incorporate the discrepancy between the learned and target terminal energies. Experiments on Gaussian mixture models, particle systems, alanine dipeptide, and alanine tetrapeptide show that our method closely matches target distributions and molecular free-energy profiles under annealing and reward tilting, whereas standard inference-time scaling baselines retain substantial sampling errors.

1 INTRODUCTION

Diffusion models (Sohl-Dickstein et al., 2015; Ho et al., 2020; Song et al., 2021) have become a leading paradigm in generative modeling, achieving remarkable performance across high-dimensional applications ranging from visual synthesis (Peebles & Xie, 2023; Rombach et al., 2022; Karras et al., 2022) to scientific discovery (Watson et al., 2023; Duan et al., 2023; Xu et al., 2022). By learning a time-dependent score function, a diffusion model defines a transport from a tractable prior distribution to a complex target distribution. However, training such models is expensive, particularly as modern datasets and architectures continue to grow. It is therefore often impractical to train a separate diffusion model for every new target distribution of interest.

One natural strategy is to perform additional training after pretraining, commonly referred to as fine-tuning (Domingo-Enrich et al., 2025; Han et al., 2025; Uehara et al., 2024; Liu et al., 2026). However, fine-tuning remains computationally expensive. This limitation has motivated inference-time scaling, which adapts a pretrained diffusion model to a new sampling task by allocating additional computation at inference time. One class of existing approaches consists of guidance-based methods, which modify the reverse dynamics using classifier guidance (Dhariwal & Nichol, 2021), classifier-free guidance (Ho & Salimans, 2021), or many variants (He et al., 2024; Guo et al., 2024; Li et al., 2026a). More recently, probabilistic inference methods have gained attention as a principled approach to inference-time scaling by casting the problem within Bayesian inference and Monte Carlo sampling frameworks (Chung et al., 2022; Bruna & Han, 2024), with particular emphasis on Sequential Monte Carlo (SMC) methods (Wu et al., 2023; Ren et al., 2026b; Wang et al., 2026). In parallel, energy-based diffusion models have been developed (Yu et al., 2026; OuYang et al., 2026;

∗^{*}Correspondence to jhan@flatironinstitute.org

Guth et al., 2026), whose energy representations also support compositional generation and control with Monte Carlo methods (Du et al., 2023; Thornton et al., 2025).

Despite their theoretical grounding, these methods commonly assume the pretrained diffusion model is perfect (Ren et al., 2026b; He et al., 2026; Wang et al., 2026). In practice, finite data, limited capacity, and imperfect optimization make the learned score only approximate, so the model's marginals deviate from the true ones. Because existing methods treat these approximate marginals as perfect, they inherit this error: adding particles reduces Monte Carlo error but cannot remove the pretrained model error itself. The error is especially pronounced in out-of-distribution regions, where the learned score is less reliable yet the model is often deployed (Lewis et al., 2025). Tellingly, Soiffer et al. (2026) show that in this regime it is score estimation error, not the vanilla inference-time approximation error, that dominates. Inference-time reweighting derived under an exact-model assumption can therefore leave substantial pretrained model error uncorrected, motivating our goal of correcting this error.

In this work, we introduce error-corrected inference-time scaling, realized by the Energy-based Feynman–Kac Corrector (EBFKC), a framework that corrects pretrained model error on the fly given a reference energy. The reference energy specifies which distribution to sample but not how to explore it: on high-dimensional, multimodal targets, Monte Carlo sampling from the energy alone mixes slowly across modes, whereas a pretrained diffusion model already encodes a learned transport that reaches them efficiently. We first derive the full Feynman–Kac reweighting potential for any prescribed measure transport path, without assuming that the underlying score satisfies the base diffusion equation. We approximate the resulting dynamics with SMC and use variance-controlling guidance to mitigate particle-weight degeneracy. Then we construct an energy-aligned path that uses a pretrained energy-based diffusion model as a surrogate along the diffusion path while progressively correcting the discrepancy between the learned and target energies to remove the endpoint mismatch. To our knowledge, EBFKC is the first inference-time scaling method that corrects the path-tracking error of an imperfect pretrained model and, treating the pretrained energy as an approximate surrogate, provably realigns the terminal distribution to the target energy, rather than composing or reweighting several assumed-exact models.

Our Contributions. Building on this insight, our work makes the following contributions:

• Energy-based Feynman–Kac Corrector (EBFKC). We derive the Feynman–Kac–type Fokker–Planck equation for a general prescribed probability path, freeing it from the model’s own marginals, and adapt the Variance-Controlling SMC (Ren et al., 2026b) to track it while controlling particle-weight variance. Unlike the Feynman–Kac Corrector (Skreta et al., 2025), EBFKC tracks the path exactly at the population level even when the pretrained model is imperfect.

• Progressive target-energy correction. Instantiating this freedom, we keep the imperfect pretrained energy as a surrogate proposal while using the reference energy to pin the terminal distribution to the desired energy-aligned target (EAT), removing the endpoint mismatch that increasing the number of particles alone cannot eliminate. We call the resulting method EBFKC on EAT.

• Error correction across benchmarks. Across Gaussian mixture models, particle systems, alanine dipeptide, and alanine tetrapeptide, we show that a moderately imperfect pretrained model can severely bias existing inference-time scaling methods, and that EBFKC on EAT corrects this bias at inference time, recovering target distributions and molecular free-energy profiles where these baselines fail.

References (100)

Couldn't load all references. Reload the page to try again.