A Good Score Does not Lead to A Good Generative Model

Sixu Li, Shi Chen, Qin Li

Abstract: Score-based Generative Models (SGMs) are a leading method in generative modeling, renowned for their ability to generate high-quality samples from complex, high-dimensional data distributions. The method enjoys empirical success and is supported by rigorous theoretical convergence properties. In particular, it has been shown that SGMs can generate samples from a distribution that is close to the ground-truth if the underlying score function is learned well, suggesting the success of SGM as a generative model. We provide a counter-example in this paper. Through the sample complexity argument, we provide one specific setting where the score function is learned well. Yet, SGMs in this setting can only output samples that are Gaussian blurring of training data points, mimicking the effects of kernel density estimation. The finding resonates with a series of recent findings that reveal that SGMs can demonstrate strong memorization effects and fail to generate.

Introduction

In the current landscape of generative AI, Score-based Generative Models (SGMs) are considered the gold standard for high-fidelity synthesis. Theoretical frameworks suggest that minimizing the "score-matching error"—the discrepancy between the model's predicted gradient of log-density and the true gradient—is sufficient to replicate a target distribution. However, this paper identifies a fundamental gap between imitation (matching a distribution) and generation (creating novel samples).

A model can mathematically approximate a distribution by placing small Gaussian "bumps" over training data points. While this results in low distribution error, the model fails to learn the underlying structure, instead acting as a Kernel Density Estimator (KDE). This study investigates why a "good score" does not necessarily guarantee a "good model."

Theoretical Analysis and Sample Complexity

The authors evaluate the relationship between score accuracy and generative performance through two primary theoretical lenses:

  1. The Empirical Optimal Score Function: The research derives a closed-form solution for the score function that minimizes empirical risk.
  2. Sample Complexity (Theorem 3.1): The authors prove that as the number of training samples ($N$) increases, the empirical score function converges to the true ground-truth score at a rate of $O(1/N)$. This demonstrates that an accurate score is theoretically learnable from finite data.
Convergence of the empirical score function error at a rate of O(1/N) on synthetic data.
  1. KDE Equivalence (Theorem 4.3): The core argument posits that an SGM utilizing this "perfect" empirical score function is mathematically equivalent to a Kernel Density Estimation (KDE). Without specific regularizations, the model naturally gravitates toward a memorizing solution rather than a creative one.

Empirical Results

The theoretical findings were validated using both synthetic 2D isotropic Gaussian environments and the CIFAR-10 dataset.

On synthetic data, experiments confirmed the $O(1/N)$ error rate, proving that the memorizing score is easily reachable. On CIFAR-10, the qualitative results were stark: images generated by the "perfect" empirical SGM were visually indistinguishable from simple Gaussian-blurred versions of the training data. These samples were mere replicas, lacking any novel features or structural generalization.

Qualitative evidence on CIFAR-10 showing that the empirical optimal score leads to blurred replicas of training data.

Key Insights

  • The Creativity Gap: Current error bounds measure imitation but fail to penalize memorization. A model can achieve a tiny Total Variation (TV) distance from the target while remaining a "bad" generator.
  • Memorization as the Global Minimum: The global minimum of the empirical score-matching objective is a memorizing solution. If a model is "too good" at minimizing this objective without proper inductive bias, it collapses into a KDE.
  • The Role of Inductive Bias: The success of real-world SGMs suggests that neural network architectures (like U-Nets) provide an implicit regularization that prevents models from reaching the mathematical global minimum of memorization.

Conclusion

This paper provides a sobering counter-example to current SGM theory, showing that low score error is an insufficient metric for generative success. Future work must focus on developing theoretical criteria that quantify "creativity" and "novelty," and investigating how specific network structures steer models away from the memorization trap.

Summary updated

BibTeX
@misc{li2024good,
  author = {Sixu Li and Shi Chen and Qin Li},
  title = {{A Good Score Does not Lead to A Good Generative Model}},
  year = {2024},
  eprint = {2401.04856},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.04856},
}
Figure