Denoising Score Matching in Diffusion Models: The Effect of Rank Constraints on Generalization

Anand Jerry George, Nicolas MacrisarXiv 2026

TL;DR

This paper investigates how architectural bottlenecks, specifically rank constraints, prevent diffusion models from memorizing training data. By deriving exact learning curves, the authors demonstrate that a model's ability to generalize depends on a delicate balance between its rank, the number of training samples, and the intrinsic dimensionality of the data.

What Problem Does This Paper Address?

Diffusion models have revolutionized generative AI, but they face a significant "memorization" problem: in highly overparameterized regimes, they can simply reproduce training samples instead of learning the underlying distribution. Most practical architectures (like U-Nets) use encoder-decoder structures that force information through a bottleneck.

The authors ask: How exactly do these bottlenecks act as regularizers? They specifically investigate how rank constraints on the score function—the core component of a diffusion model—influence the transition from learning general data geometry to overfitting on specific training examples.

Methods

The authors tackle this using two complementary approaches:

  1. Numerical Study: They experiment with a trainable three-layer neural network featuring a bottleneck and a linear skip connection.
  2. Theoretical Analysis: They provide a rigorous analysis of a random-feature score model. Using tools from random matrix theory, they derive "asymptotically precise" learning curves—mathematical formulas that predict training and test error as the model size and dataset size grow.

A key part of their method is characterizing the optimal estimator through a truncated singular value decomposition (SVD), which allows them to see exactly which "directions" in the data the model is learning versus which it is ignoring.

Datasets

To maintain strict control over data geometry, the authors use synthetic datasets rather than standard benchmarks like CIFAR-10:

  • Embedded Spheres: Data points distributed uniformly on a sphere within a high-dimensional space (used in the numerical study).
  • Low-Dimensional Gaussian Subspaces: Gaussian data that only varies along a few dimensions ($D$) while being embedded in a much larger ambient space ($d$) (used in the theoretical study).

These setups allow them to precisely define the "data manifold" and observe how the model behaves when it tries to learn the "normal" directions (the empty space surrounding the data).

Key Insights and Ideas

  • The Critical Rank Threshold ($d-D$): The most important finding is that there's a "sweet spot" for model rank. If data lives in $D$ dimensions and the total space is $d$, the model needs a rank of exactly $d-D$ to perfectly capture the score component that "pushes" noisy points back toward the data manifold.
  • Four Regimes of Learning: The authors map out four distinct zones of behavior based on sample size ($n$) and rank ($r$):
  • Generalization: Sufficient samples ($n > D$) and restricted rank ($r < d-D$).
  • Mild Overfitting: Sufficient samples, but excessive rank ($r > d-D$).
  • Overfitting: Insufficient samples ($n < D$), where the model can't even span the data subspace.
  • Severe Overfitting: Few samples combined with high rank.
  • Spectral Selection: The training process naturally picks "eigenmodes" (directions) that best fit the training data. However, these aren't always the directions that help with generalization. The paper shows that "excess rank" allows the model to pick up sample-specific noise rather than collective data structure.
Figure 1: A qualitative illustration of our findings.

Key Results

  • Test Error "U-turns": In cases with sufficient data ($n > D$), the test error initially drops as rank increases (learning the manifold) but then sharply increases or plateaus once rank exceeds the $d-D$ threshold. This is clearly visible in the "spikes" seen in Figure 2.
  • Theoretical Validation: The derived analytical learning curves qualitatively match the behavior of trained neural networks, proving that the simplified random-feature model is a powerful proxy for understanding more complex architectures.
  • Sample Size Sensitivity: While increasing the number of training samples ($n$) can mitigate overfitting, it does not eliminate the detrimental effect of having a rank that is too high for the data's intrinsic geometry.
Figure 2: Simulation results for our numerical model, with tanh activation at t = 0.01, p/d = 2.

Limitations and Future Work

  • Static Analysis: The errors are evaluated at a fixed diffusion time $t$, whereas real generation involves a full reverse-time trajectory.
  • Simple Geometries: The theory assumes linear subspaces or spheres; real-world data manifolds (like natural images) are significantly more complex and non-linear.
  • Fixed Features: The main theorem applies to random features; extending this to "learned features" where all layers are updated during training is a key next step.

The authors suggest that future work should focus on connecting these spectral insights to the actual quality of generated samples and the phenomenon of "data replication" in large-scale production models.

Summary updated

BibTeX
@misc{george2026denoising,
  author = {Anand Jerry George and Nicolas Macris},
  title = {{Denoising Score Matching in Diffusion Models: The Effect of Rank Constraints on Generalization}},
  year = {2026},
  eprint = {2610.20850},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.20850},
}
Figure