Abstract
The denoising process of diffusion models can be interpreted as an approximate projection of noisy samples onto the data manifold. Moreover, the noise level in these samples approximates their distance to the underlying manifold. Building on this insight, we propose a novel method to enhance sample generation by aligning the estimated noise level with the true distance of noisy samples to the manifold. Specifically, we introduce a noise level correction network, leveraging a pre-trained denoising network, to refine noise level estimates during the denoising process. Additionally, we extend this approach to various image restoration tasks by integrating task-specific constraints, including inpainting, deblurring, super-resolution, colorization, and compressed sensing. Experimental results demonstrate that our method significantly improves sample quality in both unconstrained and constrained generation scenarios. Notably, the proposed noise level correction framework is compatible with existing denoising schedulers (e.g., DDIM), offering additional performance improvements.
Introduction
At its heart, the denoising process in a diffusion model can be viewed as an optimization problem: projecting a noisy point back onto the "data manifold"—the theoretical surface where all real, clean images reside. Mathematically, the noise level ($\sigma_t$) in the model's schedule is intended to represent the distance from the noisy sample to this manifold.
However, a fundamental gap exists: standard diffusion models use a fixed, predefined noise schedule. In practice, especially during the final steps of generation or when external constraints are applied (such as an inpainting mask), the actual distance to the manifold deviates from what the schedule predicts. This "distance mismatch" leads to sampling biases, where the model takes steps that are either too large or too small, resulting in blurry details or artifacts. This mismatch is most pronounced in the final steps of denoising, which explains why many diffusion models struggle with fine-grained textures or "crispness" without high-guidance scales.
Methodology
To align the model's expectations with reality, we propose a two-pronged approach centered on Noise Level Correction (NLC).
Noise Level Correction (NLC) Network
We introduce a small neural network ($r_\theta$) designed to predict a "residual" correction for the noise level. To maintain efficiency, this network "piggybacks" on the existing pre-trained denoiser by utilizing its encoder features. It is trained to ensure that the corrected noise level $\hat{\sigma}_t$ matches the true Euclidean distance to the clean image. The NLC network is roughly 10x smaller than the main denoiser, adding less than 6% to total inference time.
Constrained Generation and IterProj-NLC
For constrained tasks like image restoration, we developed an iterative projection algorithm, IterProj-NLC. It alternates between projecting the sample toward the data manifold (using the corrected noise level) and projecting it onto the task-specific constraint (e.g., ensuring unmasked pixels in an inpainting task remain unchanged).
Additionally, for unconstrained generation, we observed that the required correction follows a consistent statistical trend. This allowed for the development of a parameter-free Lookup Table (LT-NLC) that approximates the NLC network, providing a "zero-cost" performance boost for standard image generation.
Experimental Evaluation
We evaluated our method across several benchmarks, including CIFAR-10, ImageNet (256x256), and CelebA-HQ (256x256). The proposed NLC is universal; it acts as a correction layer compatible with various samplers like DDPM, DDIM, EDM, and DPM-Solver.
Key Results
The quantitative and qualitative improvements are substantial:
- Unconstrained Generation: On CIFAR-10, NLC improved the FID score of a 10-step DDIM sampler by 32%.
- Image Restoration: In ImageNet inpainting tasks,
IterProj-NLCachieved an FID of 4.90, compared to 9.79 for the baseline DDNM—a nearly 50% reduction in error. - High-Performance Samplers: When applied to EDM (Heun), NLC provided a 10% improvement in quality with only 13 sampling steps.
Conclusion and Future Work
Noise Level Correction offers a practical, lightweight solution to the distance mismatch problem in diffusion models. While the Lookup Table approach works well for general generation, constrained tasks still require the full NLC network due to the high variance in degradation patterns. Future work will explore extending this manifold projection theory to non-linear constraints and other generative architectures beyond diffusion.
Summary updated