Diffusion Models Observe Only Gradients: A Geometric Perspective on Score Matching Errors

Naïl B. Khelifa, Richard E. Turner, Ramji Venkataramanan
6/4/2026
stat.MLcs.LG

No confident code implementation found for this paper.

Abstract

Score-based diffusion models are typically trained by minimizing the $L^2$ score matching error, and standard theoretical analyses rely on this quantity to bound the sampling discrepancy between the learned and target distributions. We show the $L^2$ score error is not the right intrinsic measure of marginal distributional quality: a learned diffusion model can incur arbitrarily large $L^2$ score error while perfectly matching the target distribution. By decomposing score errors into a gradient and a solenoidal component (a Helmholtz-Hodge decomposition), we identify the geometric reason behind this: only the gradient component enters the marginal Fokker-Planck dynamics, while the solenoidal component is structurally invisible. We make this precise in three results. First, building on the corrected geometry, we prove an impossibility result: no monotone function of the $L^2$ score error can uniformly lower bound any divergence between the learned and target distributions. Second, we derive an upper bound on the Kullback-Leibler divergence that depends only on the observable gradient component of the error, tightening the standard Girsanov bound and identifying its looseness as the cost of operating on path-space rather than marginal-space dynamics. Third, we give a tractable estimator of the gradient component via a dual Sobolev identity, which is shown to empirically correlate substantially better with sample quality than the full $L^2$ error.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{khelifa2026diffusion,
  title  = {Diffusion Models Observe Only Gradients: A Geometric Perspective on Score Matching Errors},
  author = {Naïl B. Khelifa and Richard E. Turner and Ramji Venkataramanan},
  year   = {2026},
  eprint = {2606.06179},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.06179v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.06179.svg)](https://codeofpaper.com/paper/2606.06179)

Discussion