Error-Corrected Inference-Time Scaling for Imperfect Diffusion Models

Zuokai Wen, Louis Grenioux, Weinan E, Jiequn HanarXiv 2026

TL;DR

Most methods for scaling diffusion models at inference time assume the pretrained model is perfect, meaning they inherit and amplify any training errors. This paper introduces the Energy-based Feynman–Kac Corrector (EBFKC), a framework that uses a reference energy to correct both path-tracking and endpoint errors on the fly, allowing imperfect models to reach exact targets in scientific and generative tasks.

What Problem Does This Paper Address?

Diffusion models have revolutionized generative AI by learning to transport a simple noise distribution into a complex data distribution. However, training these models is expensive, and in practice, they are almost always "imperfect" due to finite data, limited model capacity, or optimization gaps.

When researchers try to adapt these pretrained models to new tasks at inference time (a process called inference-time scaling), they usually rely on Sequential Monte Carlo (SMC) or guidance. The "dirty secret" of these methods is that they assume the underlying model is exact. If the model is biased, adding more particles just gives you a more precise version of the wrong answer. The authors identify two specific failure modes:

  1. Endpoint Mismatch: The model's final destination doesn't match the true target energy.
  2. Path-Tracking Error: The mathematical formulas used to "steer" the particles assume the model follows a specific probability path that it doesn't actually follow in reality.

Methods

The authors propose the Energy-based Feynman–Kac Corrector (EBFKC) to decouple the sampling path from the model’s own flawed marginals. Key components include:

  • A New Fokker-Planck Equation: They derive a Feynman–Kac-type equation that can track any prescribed probability path exactly at the population level, even if the underlying score function is wrong.
  • Energy-Aligned Target (EAT): Instead of following the model's biased path, they construct a path that progressively incorporates the discrepancy between the learned energy and the true reference energy. This "pins" the terminal distribution to the correct target.
  • Variance-Controlling Guidance (VCG): To prevent the particle weights from collapsing (degeneracy), they use a control drift that minimizes the variance of the reweighting potential.
  • Look-Ahead Map: For complex physical systems (like molecular dynamics), they introduce a map that evaluates energies at a "denoised" future state, which significantly improves numerical stability.

Unlike standard score-based diffusion, this method leans heavily on Energy-Based Models (EBMs), as explicit energy functions make it much easier to evaluate densities and perform the necessary reweighting.

Datasets

The authors evaluated EBFKC across a range of synthetic and high-dimensional scientific benchmarks:

  • Gaussian Mixture Models (GMM): A 30-dimensional GMM where model error was analytically injected to test robustness.
  • Particle Systems: 2D Double-Well (4 particles) and 3D Lennard-Jones (13 particles) systems, which are classic benchmarks in statistical mechanics.
  • Molecular Systems: Alanine dipeptide (ALDP) and the 42-atom Alanine tetrapeptide (Ala-4). These represent real-world challenges in molecular conformation and free-energy estimation.

Key Insights and Ideas

  • Precision vs. Accuracy: The paper highlights that in inference-time scaling, Monte Carlo error (variance) is often less of a problem than model approximation error (bias). Simply "throwing more compute" at a biased model doesn't work without a correction mechanism.
  • Decoupling is Key: By treating the pretrained model as a "surrogate proposal" rather than the absolute truth, EBFKC can leverage the model's learned transport (which is good at finding modes) while using the reference energy to ensure the final samples are correct.
  • Energy > Score for Correction: While scores (gradients) are enough for sampling, energies (densities) are essential for reweighting. This makes Energy-Based Diffusion a more natural fit for error-corrected scaling than traditional score-matching models.

Key Results

  • Robustness to Error: In GMM experiments, EBFKC maintained a low Sliced-Wasserstein Distance (SWD) even as the pretrained model's error level increased, whereas standard baselines (like FKC) saw their performance degrade rapidly.
  • Scientific Accuracy: On the Lennard-Jones system, EBFKC closely matched reference radial distribution functions (RDFs) and energy profiles, while other methods failed to capture the correct physical structure.
  • Molecular Free Energy: For Alanine tetrapeptide, EBFKC successfully reconstructed the free-energy barriers between metastable basins. Standard umbrella sampling and non-corrected diffusion methods either got trapped in local modes or severely distorted the barrier heights.
  • Computational Overhead: The accuracy gains come at a cost; EBFKC on EAT typically takes 1.1x to 3.6x the runtime of non-corrected methods due to the extra energy and derivative evaluations required for the correction.

Limitations and Future Work

  • Computational Cost: The requirement for second-order derivatives (Hessians) and multiple energy evaluations per step increases the computational burden, especially for complex molecular force fields.
  • Parallelization: Currently, using external simulators like OpenMM for finite-difference approximations is slow because it cannot be easily parallelized across particles. The authors suggest using Machine-Learned Interatomic Potentials (MLIPs) to solve this in the future.
  • Discrete Models: The current framework is designed for continuous diffusion; extending this to discrete state spaces (like text or graphs) remains an open challenge.
  • Schedule Tuning: The "correction schedules" (how fast to phase in the true energy) are currently designed by hand; the authors aim to automate this in future iterations.

Summary updated

BibTeX
@misc{wen2026error,
  author = {Zuokai Wen and Louis Grenioux and Weinan E and Jiequn Han},
  title = {{Error-Corrected Inference-Time Scaling for Imperfect Diffusion Models}},
  year = {2026},
  eprint = {2610.01933},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.01933},
}
Figure