Introduction
Diffusion models have become the standard for high-fidelity image generation, yet the mathematical dynamics governing their sampling processes remain largely opaque. A critical question in the field is understanding when these models generalize to create novel data and when they simply memorize training samples. This paper investigates these dynamics by analyzing the probability flow of shallow, minimum-norm ReLU networks trained to interpolate noisy data.
Theoretical Framework
To provide rigorous guarantees, the authors study a simplified but mathematically tractable setup. They model the denoiser as a single-hidden-layer ReLU neural network trained with a minimal $\ell^2$ norm penalty on the weights. The analysis primarily focuses on "orthogonal datasets," where training points are mutually orthogonal in a high-dimensional space. This geometric configuration allows for the derivation of convergence points for two deterministic sampling processes: the standard probability flow ODE and a simplified score flow ODE (which follows the score of noisy data at a fixed noise level).
The Emergence of "Virtual Points"
A key discovery of this work is the existence of "virtual points"—stationary points in the flow that correspond to sums of training samples (e.g., Point A + Point B). These points represent a rudimentary form of generalization, as the model generates novel combinations not explicitly present in the training set.
Theoretical analysis and numerical simulations confirm that these virtual points are highly stable. For instance, approximately 98.6% of predicted virtual points formed by pairs of training samples were found to be stable stationary points in the network's flow. As the complexity of the combination increases (triplets or quadruplets), the stability decreases, as shown in the empirical results.
Comparing Score Flow and Probability Flow
The research highlights a significant difference between the simplified score flow and the full probability flow ODE used in practice.
- Score Flow: In simulations with 500 random noise samples, score flow almost never converged to exact training points. Instead, samples landed on virtual points or the broader boundaries of the data manifold (the "hyperbox" formed by the data).
- Probability Flow: Conversely, the full probability flow ODE exhibited a stronger bias toward memorization. Because the process begins at a very high noise level, the initial trajectory is pulled toward the mean of the training data, which ultimately increases the likelihood of the sample converging to an exact training vertex.
Furthermore, the diffusion time scheduler in probability flow acts as an implicit "early stopping" mechanism. This allows trajectories to halt on the boundaries of the hyperbox, effectively sampling from a continuous manifold rather than just discrete vertices.
Impact of Dataset Size
The degree of memorization is heavily influenced by the ratio of training samples ($N$) to the input dimension ($d$). In a 30-dimensional space, increasing $N$ from 10 to 30 caused the frequency of exact memorization to drop dramatically. At $N=30$, the vast majority of generated samples converged to manifold boundaries or virtual points, suggesting that larger datasets naturally push diffusion models toward generalization.
Conclusion and Limitations
While this study provides a rigorous look at the inductive biases of diffusion models, it is limited by its focus on shallow architectures and variance-exploding (VE) processes. Practical models use deep U-Nets and often employ variance-preserving (VP) processes. Future work aims to extend these theoretical insights to more complex, state-of-the-art architectures to better understand the transition from memorization to creative synthesis.
Summary updated