Diffusion models like Stable Diffusion and Midjourney are celebrated for their generative capabilities, but they harbor a significant vulnerability: memorization. Instead of synthesizing novel outputs, these models sometimes reproduce exact replicas of their training data. This behavior stifles creativity and introduces severe privacy and copyright concerns.
In Provable Separations between Memorization and Generalization in Diffusion Models, researchers establish a rigorous theoretical framework explaining why this memorization occurs and introduce a targeted pruning strategy to mitigate it.
The Disentanglement Problem
Previous studies have empirically observed memorization, but theoretical explanations have often relied on asymptotic analyses that fail to capture real-world, finite-data scenarios. This paper addresses the "disentanglement" problem in Score-Based Diffusion Models—separating the model's capacity to learn the true underlying data distribution (generalization) from its tendency to overfit specific data points (memorization).
The authors propose a dual-separation result viewed through two distinct lenses: statistical estimation and network approximation.
1. Statistical Separation (The Loss Gap)
The authors demonstrate that the "ground-truth" score function—the ideal function that promotes generalization—is fundamentally not the global minimizer of the empirical denoising loss used during training. Instead, an inherent "Loss Gap" exists, driven by Fisher divergence, which actively incentivizes the optimizer to memorize specific training samples. This gap is particularly pronounced at low noise levels (small $t$) and when the sample size is limited.
2. Architectural Separation (Network Complexity)
From an approximation standpoint, there is a stark difference in the network complexity required for generalization versus memorization. Representing the ground-truth score function requires only a compact, fixed-size neural network. Conversely, representing the highly irregular, "spiky" empirical score function—which points directly back to exact training coordinates at low noise levels—demands a network whose size scales with the number of training samples ($n$).
Mitigation via One-Shot Pruning
Guided by these theoretical insights, the authors propose One-Shot Pruning for Diffusion Transformers (DiTs). Because memorization is most prevalent in the "small-$t$" regime (where noise is minimal and the model focuses on fine details), the researchers identify and prune attention heads that contribute the least during these low-noise steps. By constraining the network's capacity, the model is forced to rely on more compact representations that inherently favor generalization over rote memorization.
Key Results and Limitations
The theoretical claims are backed by non-asymptotic lower bounds for the loss gap and proofs regarding network scaling requirements. Empirically, the pruning method was tested on a 5,000-image subset of CIFAR-10—a regime specifically chosen to induce memorization.
- Reduced Memorization: The pruning strategy successfully reduced the memorization ratio from 73.82% to 68.58%.
- Enhanced Diversity: Stripping away "memorization heads" actually improved generation diversity, boosting Recall from 0.08 to 0.12 while maintaining competitive image quality (FID scores). This suggests that by removing the capacity to copy, the model is forced to explore the broader distribution it learned.
While the framework provides a robust foundation, it currently assumes sub-Gaussian mixture models, which may not fully capture the heavy-tailed distributions of complex, real-world datasets. Furthermore, validating these pruning techniques on massive-scale models trained on billions of images remains a critical next step for future research.
Summary updated