Introduction
Diffusion models have revolutionized generative AI by learning to estimate the "score"—the gradient of the log-density of a data distribution. Because calculating the exact score (Exact Score Matching, or ESM) is computationally intractable for complex high-dimensional data, researchers almost universally utilize Denoising Score Matching (DSM) as a proxy.
While the community has long operated under the assumption that DSM and ESM are equivalent objectives, this paper reveals a significant theoretical caveat. While the equivalence holds when training model weights, it breaks down when the optimization target is the model's input or conditioning. This finding has broad implications for popular generative frameworks, including text-to-3D synthesis and auto-regressive generation.
The Problem: A Broken Equivalence
The foundational proof for diffusion training (often cited as Theorem 1) demonstrates that minimizing the DSM loss is mathematically identical to minimizing the ESM loss when optimizing the neural network's parameters ($\theta$). However, a new wave of research—spanning text-to-3D, image compression, and inverse problems—has begun using the DSM loss to optimize variables other than weights, such as the conditional input ($c$) or the underlying data distribution ($p(x)$).
This paper demonstrates that the field has been operating under a false assumption: the equivalence between DSM and ESM does not hold when the variable being optimized affects the distribution itself. When the optimization target is the input or condition, the DSM objective introduces a systematic mathematical bias.
Mathematical Analysis
The author dissects the relationship between the DSM and ESM loss functions by expanding the square of the norm within the objectives. The loss is decomposed into three primary components: $C_1, C_2,$ and $C_3$.
- $C_1$: A constant related to the noise distribution.
- $C_2$: A term representing the expected squared norm of the score.
- $C_3$: A cross-term involving the model and the data.
In standard model training, where only weights ($\theta$) are optimized, $C_1$ and $C_2$ are constants and can be safely ignored. However, when optimizing the conditional input ($c$), $C_2$ is no longer a constant. The paper provides a formal mathematical proof showing that the DSM objective is actually the ESM objective minus the expected squared norm of the score.
Theorem 2: Defining the Bias
The paper’s central theoretical contribution is Theorem 2, which defines the bias formally. When optimizing both the model ($\theta$) and the condition ($c$):
$$\mathcal{L}_{DSM}(\theta, c) \sim \mathcal{L}_{ESM}(\theta, c) - \mathbb{E}_{q(x_t|x)p(x|c)} \left[ \frac{1}{2} ||\nabla_{x_t} \log q(x_t|c)||^2 \right]$$
This result reveals a "tug-of-war" in the optimization process. Because the goal is to minimize the DSM loss, the negative sign in front of the score norm term ($C_2$) means the optimizer will naturally attempt to maximize that norm. This creates a systematic bias toward "loud" scores—inputs that produce the largest predicted gradients—rather than simply finding the input that best matches the learned data distribution.
Impact on Generative AI
This bias is not merely a theoretical curiosity; it affects several high-profile areas of current research:
- Text-to-3D (Score Distillation Sampling): The SDS method used in frameworks like DreamFusion is shown to be susceptible to this bias, as it optimizes a 3D representation using a diffusion loss.
- Auto-regressive Generation: Models like MAR that optimize conditional inputs to generate images token-by-token are inadvertently pushing toward higher score norms.
- Inverse Problems: Solvers that use diffusion priors to reconstruct images from degraded versions (e.g., blurry or low-resolution) may be biased by this mathematical discrepancy.
- Image Compression: Methods like PerCo that refine latent representations using diffusion-based losses are similarly affected.
Conclusion and Future Directions
As a theoretical work, this paper serves as a vital warning to the generative modeling community. While DSM is a robust tool for parameter estimation, it is a biased objective for input optimization.
Currently, the work lacks empirical validation to quantify exactly how much this bias degrades quality in practice, and it does not yet propose a "de-biased" loss function. However, it identifies a critical area for future research: investigating whether correcting this bias leads to better convergence and higher-quality results in text-to-3D and auto-regressive modeling. For researchers in these fields, the paper suggests a necessary re-evaluation of whether DSM is the appropriate tool for input-level optimization.
Summary updated