TL;DR
Standard diffusion samplers inject noise uniformly across an image during generation, ignoring the fact that flat backgrounds need far less correction than complex textures. This paper introduces Spatially Adaptive Noise Injection (SANI), a training-free framework that uses information geometry to dynamically adjust noise on a per-pixel basis. By injecting noise only where the model is uncertain, SANI significantly boosts image generation quality—especially in fast, low-step sampling regimes.
What Problem Does This Paper Address?
When diffusion models generate images, they reverse a gradual noising process using one of two main pathways: stochastic sampling (like DDPM), which injects noise at every step to correct errors, or deterministic sampling (like DDIM), which follows a smooth, noise-free trajectory.
The bottleneck is that both approaches apply noise uniformly across the entire image. This uniform treatment ignores natural image geometry. High-curvature regions (like edges, fine details, and complex textures) are inherently harder for the denoising network to predict and benefit greatly from stochastic noise correction. Conversely, smooth regions (like a clear sky or a flat wall) are easily predicted; injecting noise into them simply degrades the final image quality.
The authors tackle a fundamental question: How can we determine, at each individual pixel and timestep, whether stochastic noise injection is actually necessary?
Methods
The authors introduce Spatially Adaptive Noise Injection (SANI), a novel sampling framework that operates entirely at inference time without requiring any retraining or fine-tuning of the underlying diffusion model.
- The Theoretical Link: Using information geometry, the authors prove that the Fisher Information Matrix (FIM) of the denoising distribution is directly proportional to both the denoiser's Jacobian and the posterior covariance. This establishes a clean, computable relationship between a model’s local sensitivity and its reconstruction uncertainty.
- Probabilistic Gating: SANI introduces a closed-form gating function ($g_{t,i} \in [0, 1]$) that calculates the probability that the local denoising error at a specific pixel exceeds a user-defined tolerance threshold ($\tau$).
- Spatially Adaptive Updates: SANI splits the reverse variance into two components: a mean-error correction term (applied uniformly to keep the trajectory calibrated) and a gated exploration term (modulated by the pixel-wise gate). This allows the sampler to seamlessly interpolate between deterministic DDIM updates ($g_{t,i} \to 0$) in confident, smooth regions and stochastic DDPM updates ($g_{t,i} \to 1$) in uncertain, high-curvature regions.
Datasets
The framework was evaluated using several standard generative modeling benchmarks:
- CIFAR-10 ($32 \times 32$ resolution), evaluated under both Linear Schedules (LS) and Cosine Schedules (CS).
- CelebA ($64 \times 64$ resolution).
- LSUN Bedroom ($256 \times 256$ resolution), primarily utilized for qualitative visualizations of the gating maps.
No new datasets or benchmarks were introduced in this work.
Key Insights and Ideas
- Uncertainty from Geometry: The paper elegantly demonstrates that a diffusion model's internal uncertainty is intrinsically tied to image geometry. The score network is naturally more confident on flat manifolds and highly uncertain around complex edges.
- Emergent Edge Detection: Remarkably, without any explicit edge-detection or geometric supervision, SANI’s gating maps automatically learn to trace out the fine contours, textures, and boundaries of objects as the image denoises.
- The Asymmetric Variance Split: A key "aha moment" in the math is that you cannot simply gate all the noise. Part of the variance is strictly required to correct for the denoiser's mean estimation error. By only gating the exploratory SDE noise term, SANI preserves necessary corrections while eliminating destructive noise.
Key Results
- Consistent FID Improvements: SANI consistently outperforms vanilla DDPM and DDIM samplers across all tested datasets and step counts. For example, on CelebA at 10 sampling steps, SANI achieves a Fréchet Inception Distance (FID) of 17.09, significantly beating DDIM (20.54) and DDPM (36.69).
- Superb Low-Step Performance: The largest quantitative gains are observed in low-step regimes (10 to 25 steps), making SANI highly valuable for accelerating fast image generation.
- Competitive Likelihoods: SANI remains highly competitive in Negative Log-Likelihood (NLL) compared to complex, variance-learning baselines (such as OCM-DDPM), proving that spatial adaptivity enhances sample quality without sacrificing probabilistic fidelity.
Limitations and Future Work
- Sensitivity to Hessian Approximations: To compute the pixel gates efficiently, SANI relies on a diagonal Hessian approximation. As the number of sampling steps increases, the coupled update rule becomes increasingly sensitive to this approximation, which slightly tapers off performance gains at very high step counts.
- Scale Constraints: Quantitative evaluations were restricted to smaller, low-resolution benchmarks ($32 \times 32$ and $64 \times 64$ pixels).
- Lack of Marginal Preservation: The spatially adaptive transition currently carries no strict mathematical guarantee of preserving forward marginals.
- Future Directions: The authors suggest exploring dynamic tolerance scheduling (adjusting the threshold $\tau$ dynamically across timesteps) and validating SANI on high-resolution, latent-space diffusion models like Stable Diffusion.
Summary updated