TL;DR
Diffusion models often "hallucinate" implausible images (such as hands with extra fingers) because their learned score functions are overly smooth, causing probability mass to leak outside the true data distribution. This paper introduces Variance-Guided Score Modulation (VSM), a training-time regularization technique that controls score smoothness via a tractable Jacobian proxy. VSM significantly reduces hallucination rates by up to 26% across multiple benchmarks while preserving image quality and diversity.
What Problem Does This Paper Address?
Despite the massive success of diffusion models in generative AI, they frequently suffer from hallucinations—generating structurally or semantically implausible samples (e.g., malformed human hands, impossible chessboards) that lie completely outside the true data distribution.
Prior work hypothesized that this happens because neural networks learn an overly smoothed approximation of the sharp, ground-truth score field. This paper formalizes this intuition mathematically, proving that score smoothness forces the model's probability density to leak exponentially into off-manifold (low-density) regions. The core challenge addressed here is finding a way to penalize this excessive smoothness during training without incurring the intractable computational cost of calculating full, high-dimensional score Jacobians.
Methods
The authors propose Variance-Guided Score Modulation (VSM), an architecture-agnostic training objective designed to increase local score curvature and suppress off-manifold density leakage.
- Smoothness Penalty: VSM introduces a penalty on the score Jacobian, encouraging larger Jacobian magnitudes to counteract over-smoothing.
- Tractable Diagonal Proxy: Computing a full Jacobian for high-dimensional images is computationally prohibitive. To solve this, the authors leverage the variance-learning parameterization of Improved DDPM (I-DDPM). They derive a practical diagonal proxy for curvature using the learned reverse conditional covariance, showing that the Jacobian can be approximated as: $$J_\theta(x_{t-1}, t-1) \approx \text{diag}\left(-\frac{1}{\sigma_\theta^2(x_t, t)}\right)$$
- Time-Dependent Scaling: Since hallucinations typically emerge during the late stages of the denoising process (the low-noise regime), the authors apply a time-varying weight schedule that progressively increases the VSM penalty as the generation nears the final steps.
Datasets
The paper evaluates VSM on several standard datasets and introduces two new combinatorial benchmarks designed to easily surface and track hallucinations:
- Standard/Existing Datasets: 1D/2D Gaussian mixtures, MNIST, Shapes, Hands-11K (human hands with exactly five fingers), and ImageNet-1K.
- Cards (New): A dataset of synthetic playing card images arranged in a 2x2 grid (94,000 samples). Hallucinations are easily detected via automated template matching if symbol counts mismatch the card value or if colors conflict.
- ChessImages (New): A dataset of chessboard configurations rendered from FEN strings (190,000 samples) representing an extreme semantic space ($\sim 10^{44}$ valid states). Legality and structural validity are verified automatically using the
python-chesslibrary.
Key Insights and Ideas
- The Smoothness-Hallucination Link: The paper provides a rigorous mathematical proof (Proposition 4.1) showing that if a learned score function is too smooth, the model's implied density decays too slowly away from the data manifold, guaranteeing that probability mass leaks into implausible regions.
- Variance as a Curvature Proxy: The cleverest trick in the paper is showing that the intractable score Jacobian can be approximated almost for free by reusing the variance prediction head already present in models like I-DDPM.
- Late-Stage Importance: Hallucinations don't crystallize early in the diffusion process when the image is mostly noise; they emerge in the final denoising steps. Thus, regularizing the score field is primarily critical near the end of the generation trajectory.
Key Results
- Quantitative Improvements: VSM consistently reduces hallucination rates ($H\%$) across all tested datasets. For example, on the Hands-11K dataset, the hallucination rate dropped from 23.33% to 5.15% for pixel-space DDPM. On the newly proposed Cards dataset, it dropped from 22.41% to 2.33%.
- Fidelity and Diversity: Unlike other methods that cause mode collapse or degrade image quality to fix hallucinations, VSM maintains or improves standard quality metrics like FID and FLD.
- Fine-Tuning Capability: VSM can be applied as a lightweight fine-tuning step by simply adding a variance-learning head to a pre-trained checkpoint, making it highly practical for existing large-scale models.
Limitations and Future Work
- Mitigation, Not Elimination: VSM significantly reduces hallucinations but does not completely eliminate them from the model's generations.
- Natural Image Evaluation: While effective on ImageNet-1K (improving precision and recall), evaluating and quantifying hallucinations in unconstrained natural image datasets remains difficult due to the lack of explicit, rule-based hallucination detectors. Developing reliable metrics for open-domain natural images remains an important open problem.
Summary updated