Generalization error bound for denoising score matching under relaxed manifold assumption

Konstantin Yakovlev, Nikita Puchkin · DOI

TL;DR

This paper provides the first robust theoretical guarantee for Denoising Score Matching (DSM) that works when data is "near" a manifold rather than perfectly on it. By proving that error rates depend on the data's low-dimensional structure rather than its high-dimensional representation, the authors show why diffusion models can escape the "curse of dimensionality" even in noisy, real-world settings.

What Problem Does This Paper Address?

Diffusion models (like Stable Diffusion or Midjourney) are incredibly successful, but our theoretical understanding of why they work so well in high dimensions has been lagging. The core of these models is score estimation: learning the gradient of the data's log-density.

Standard statistical theory suggests a "curse of dimensionality"—as the number of dimensions (like pixels in an image) increases, the amount of data needed to learn the distribution should explode exponentially. To explain why this doesn't happen, researchers often invoke the manifold hypothesis: the idea that high-dimensional data actually lies on a low-dimensional "surface" (manifold).

However, previous mathematical proofs had major "fine print" issues:

  1. They required data to lie exactly on a perfectly smooth manifold with no edges.
  2. They often had hidden constants that still grew exponentially with the ambient dimension.
  3. Some recent high-profile proofs actually contained technical flaws regarding how "loss" is calculated.

This paper tackles these gaps by relaxing the manifold assumption to better match the "messy" reality of data.

Methods

The authors model the data using a nonparametric Gaussian mixture. Specifically, they assume data is generated as $Y = g^*(U) + \sigma_{data}\xi$, where $g^*$ is a smooth mapping from a low-dimensional space ($d$) to a high-dimensional one ($D$), and $\xi$ is Gaussian noise. This allows the data to "step away" from the manifold.

To estimate the score, they use a class of feed-forward neural networks with ReLU activations. The technical heavy lifting involves:

  • Approximation Theory: Showing that ReLU networks can efficiently mimic the complex score functions arising from this noisy manifold model.
  • Statistical Learning Theory: Using an "$\epsilon$-net" argument and a "Bernstein-type" condition to bound the generalization error—the difference between how the model performs on training data versus new, unseen data.

Datasets

As a theoretical paper, this work does not use empirical datasets like ImageNet or CIFAR-10. Instead, it uses a synthetic statistical model defined by the "relaxed manifold assumption." This allows the authors to mathematically prove bounds that are guaranteed to hold for any dataset that fits this general structure.

Key Insights and Ideas

  • Escaping the Curse of Dimensionality: The paper proves that the error rate is determined by the intrinsic dimension ($d$), not the ambient dimension ($D$). If you are modeling 1024x1024 images ($D \approx 10^6$) but the actual content only has a few hundred degrees of freedom, the model only "pays" for those few hundred.
  • Polynomial, Not Exponential: Unlike previous work where constants grew exponentially ($e^D$), this paper’s bounds scale polynomially with $D$. This means the theory remains valid even if the number of pixels grows significantly relative to the number of samples.
  • Robustness to Noise: By allowing $\sigma_{data} > 0$, the authors account for the "dequantization" tricks and moderate noise often added to training data to improve image generation quality and prevent "mode collapse."
  • Correcting the Record: The authors identify and fix a critical flaw in a widely cited 2023 paper (Oko et al.), which had incorrectly applied a specific inequality to the denoising score matching loss.

Key Results

The main result is a non-asymptotic bound on the generalization error. They show the error converges at a rate of: $$\mathcal{O}\left(n^{-\frac{2\beta}{2\beta + d}} \cdot \text{polylog}(n)\right)$$ where $n$ is the number of samples, $d$ is the intrinsic dimension, and $\beta$ is the smoothness of the manifold mapping.

Crucially, this rate is faster than previous attempts (like Chen et al., 2023b) and demonstrates that score matching is nearly as efficient as the best possible nonparametric regression, despite the complexity of the diffusion process.

Limitations and Future Work

While the paper is a significant step forward, the authors note a few areas for further exploration:

  • Minimax Optimality: While the rates are fast, it is not yet proven if these are the absolute fastest possible rates for this specific "relaxed manifold" setup.
  • Gaussian Assumption: The current proof relies heavily on the noise being Gaussian. Real-world "noise" or deviations from a manifold might be more structured or heavy-tailed.
  • Time Dependence: The bounds depend on the "stopping time" ($t_0$) of the diffusion process. Finding the optimal balance between this stopping time and the sample size remains a delicate task for practitioners.

Summary updated

BibTeX
@inproceedings{yakovlev2025generalization,
  author = {Konstantin Yakovlev and Nikita Puchkin},
  title = {{Generalization error bound for denoising score matching under relaxed manifold assumption}},
  booktitle = {Conference on Learning Theory},
  year = {2025},
  url = {https://openreview.net/forum?id=IedPC0yYox},
}
Figure