Manuscript Offprint
arXiv:2610.19042Loss Curvature as a Sampling-Free Proxy for Memorization in Diffusion Models
ABSTRACT
Understanding the mechanism behind why diffusion models memorize their training data remains an open question in generative modeling. In this paper, we examine this question from two perspectives: (a) the model-level perspective concerning the onset of memorization in a model during training, and (b) the sample-level perspective concerning the proclivity of an individual sample to be memorized by a given model. We show that the so-called input loss curvature, or the Frobenius norm of the Hessian of the diffusion model's training loss, is an effective metric for quantifying both perspectives on memorization. In particular, we empirically demonstrate that input curvatures averaged across training and validation samples can identify when a model is likely to start regurgitating its training data when tracked over training time. However, this metric is not sufficient for measuring an individual sample's likelihood of being memorized. To address this perspective, we introduce a counterfactual definition of memorization in diffusion models, extending the analogous notion from supervised learning proposed by [Feldman, 2019]. We prove that this counterfactual memorization is controlled by the input curvature of the leave-one-out model, thus establishing a direct theoretical link between a sample's local loss landscape and its generation likelihood. We validate our derived bounds through several empirical experiments and show that input-dependent curvature provides a proxy for memorization.
1 Introduction
Diffusion and score-based models are state-of-the-art generative models across domains from vision to drug discovery [SDWMG15, HJA20, SE19, SSDK 21, RBL 22, ND21, AAD 24, RPG 21]. Their appeal lies in generating novel yet realistic data, suggesting they estimate the data distribution from finitely many samples. Yet diffusion models sometimes regurgitate training samples, a failure mode called memorization, which poses privacy and copyright risks [CHN 23, SSG 23a, SSG 23b, GDP 23]. Existing work studies memorization at two levels:
-
Model-level memorization asks how closely the trained score matches the minimizer of the empirical denoising score matching loss [Vin11, BDK 25], namely the score of the Gaussian KDE of the training set, whose sampling reproduces the training data exactly. Tracking training time , models first generalize (at ) and later memorize (at ) [BM23, BBdBM24, YCKR23, AVS 24], but these time-scales are known only asymptotically, and measuring the memorized fraction requires costly sampling.
-
Sample-level memorization asks which training points are copied. Previous work attributes sample-level memorization to the presence of duplicates [CHN 23, SSG 23b, ZIL 23, CTW 21]. More generally, sample-level memorization refers to the influence of an individual sample on a model. This connects to the long-tail theory of [Fel20], which motivates the counterfactual memorization measure of [FZ20] (see also [ZBH 17]). Extending this measure to diffusion models is nontrivial because the training objective (denoising loss) differs from the test objective (likelihood), and generalization in diffusion models has its own geometric structure [KGSM24].
Equal contribution.
Department of Mathematics, University of California, Los Angeles, CA 90095, USA.
Elmore Family School of Electrical and Computer Engineering, Purdue University, West Lafayette, IN 47907, USA.
These perspectives motivate sampling-free proxies of memorization which can ideally be measured during training. We propose using input loss curvature from [RSR24] given by
as such a proxy. We use it for two reasons: (i) it is the leading order term that bounds Feldman's memorization score, is among the strongest membership-inference signals, and estimates differential privacy [RSHR24, RSR24, GRR24, SSSS17, CCN 22, DMNS06]; (ii) the Hessian of the potential governs the local geometry of sampling, with higher curvature confining Langevin trajectories near a minimizer for longer [BdH15, Ber13]. However, during training it is prohibitively expensive to compute these negative log likelihoods—instead, we investigate whether the second order information on the loss can help predict the properties implied by the second order information of the negative log likelihood.
(b) Held-out curvature separates from training curvature during memorization. While curvature over training images rises, the curvature over the validation set starts separating from the training curvature at the onset of memorization. Surprisingly, validation curvature hits a minimum during training and starts rising as memorization proceeds, while validation loss continues to decrease. The local minimum of validation curvature provides an early-stopping measure for diffusion models that indicates the prevalence of model-level memorization.
(c) A counterfactual notion of memorization. We illustrate that while curvature indicates model-level memorization, it cannot signal the copy frequency of individual samples. To quantify such individual sample influence, we introduce a new notion of memorization, termed counterfactual memorization given by the log-odds of sampling with and without its inclusion in the training data.
(d) Counterfactual memorization is bounded by curvature. By lifting the differences in log-likelihoods to model losses via a decomposition given in [HLC21], we quantify the influence of training dynamics on counterfactual memorization. In particular, we demonstrate that when the model starts overfitting, the log-likelihood difference is captured at the leading order by the curvature of the leave-one-out model and the nearest neighbour distance.
2 Background
2.1 Diffusion Models
A diffusion model is a generative algorithm for sampling from an unknown density p by transforming noise into clean data. To learn such a model we first establish the following forward process:
When , the transition kernel is Gaussian: . The schedules and the coefficients thus determine each other:
Anderson’s theorem [And82] gives the backward SDE, whose law at time t is that of :
where and . Thus, given and , sampling from reduces to knowing the score and running the backward SDE from to . Via the Tweedie-Miyasawa formula
we can instead parameterize the denoiser and recover the score by rearranging (6). We therefore train a model by MMSE denoising:
Here is a choice of weighting function. Substituting the learned score gives the plug-in SDE:
The plug-in SDE has density . At generation time we integrate (8) forward, obtaining the terminal distribution as an approximation to the true distribution .
2.2 DDPMs
In this paper, we use Denoising Diffusion Probabilistic Models (DDPMs) [HJA20] corresponding to taking and for some non-negative rate function . Writing , one finds and, using ,
To sample from DDPMs, we use an accelerated non-Markovian sampler given in [SME21]. More generally, note that the sampling process via (8) is implemented by discretizing the SDE via Euler-Maruyama, leading to a stochastic sampling trajectory. A deterministic sampling, using the probability flow ODE or flow-matching may also be used [SSDK 21, LCBH 23]. In Appendix B, we provide experimental details and additional details on flow matching.
2.3 Log-Likelihoods via the Denoising Loss
Diffusion models are trained by using the loss (7). However, at test time, their performance is measured by the fidelity of to the true distribution . Therefore, their training and test tasks are rather different. However, an evidence lower bound (ELBO) shows that the denoising loss bounds the negative log-likelihood of the distribution . In fact, [HLC21] described the gap between the ELBO and exactly under the likelihood weighting :
Proposition 2.1 (Theorem 4 in [HLC21]). Let be the denoising loss (7), the distribution of the plug-in SDE (8) at time T and the learned score function in (8). Then
where C is a constant independent of x or but dependent on the data dimension d, and the noise schedules f, g.
The RHS in (10) is purely a self-consistency gap, i.e it measures how close the score of the reversed plug-in SDE is to the original forward SDE.
2.4 Memorization
Here we summarize the framework of [Fel20, FZ20]. Let be a training algorithm, possibly randomized, and write for the model with parameters . Let be its loss on an example , and let . The memorization of is the change in expected loss at caused by its inclusion in the training set,
A large value means the model only fits because it was trained on .
3 Empirical Results
We begin with an empirical investigation of curvature as a proxy for memorization in diffusion models. To do so, we train DDPMs to sample two datasets: (1) RGB ImageNet-1K [DDS 09, RDS 15], and (2) greyscale CelebA images, also used in [BM23]). To further isolate the memorization phenomenon, we train six distinct DDPMs on datasets of size for for ImageNet-1k and two distinct DDPMs on datasets of size , 10240 for CelebA, noting that for CelebA, corresponds to a memorizing model while corresponds to a generalizing model. Across the training time , we track the mean curvature over the training samples and validation samples:
We also generate 10,000 samples to compute the score. Following [GDP 23, YCKR23, BUBM25], a generated sample x is considered memorized if
where and are the nearest and second nearest neighbors in the training set to . We say that a training sample is copied if it appears in the generated set. Its copy count refers to the frequency of occurrences of in the generations. In Appendix C we visualize the samples generated from our various models. Here we assess the input loss curvature of our models during training.
Evolution of input curvature during training. In Figure 1, we report our experiments on CelebA. We find that:
-
Mean training curvature rises over training together with (panel (C)). The rise alone does not mark the onset: training curvature is already increasing while is still flat.
-
The onset shows up in the validation curvature. It stays with the training curvature and then diverges, in both panels (A) and (B), at the step where starts to accelerate. The same split appears for the generalizing model (panel (D)), where memorization is delayed until . This motivates defining the relative change in avg. train and validation curvatures as a stopping criterion:
we may consider stopping training when , where modulates the threshold required to limit memorization. Notably this estimator does not need to generate any samples during training, saving significant computational cost.
- Once memorization is heavy, every training image is reproduced but at different frequencies. However, the curvature of an individual image does not predict its copy count (Panel (F)).
In Figure 2, we repeat these experiments for ImageNet, observing patterns consistent with CelebA. In Panel (F), we confirm that rises and reaches 100% by for every model except . The validation loss, a zeroth-order quantity, falls throughout training for every (Panel (E)), so the held-out loss alone does not detect memorization. However, in panel (A), we find that input curvature for training samples rises with , but the average validation curvature reaches a local minimum and then rises once the model begins to memorize heavily. In Panel (D), we show that reaches a local maximum at around , where most models are memorizing.
Appendices D and E provide additional numerical experiments.
4 Sample-Level Memorization
Our results in Section 3 show that while curvature, aggregated over either training or held-out sets, is a good indicator of model-level memorization, it is not a good signal for whether a given sample will be memorized more than another one. To address this gap, we introduce a counterfactual memorization, analogous to what was defined in [ZIL 23]. Before we begin, we establish the relevant notation.
4.1 Notation
The notation will be borrowed from [RSHR24]. Let be the space of inputs, the space of outputs, and a model . The joint distribution in the input-output pair will be denoted and its and marginals will be the input and output distributions. The model will be drawn from some parametric function class parameterized by where represents the total number of parameters. To mark its dependence on parameters, the model will therefore be denoted as . In practice, we draw a finite number of samples from and train to fit a loss on the data. We assume the -data points are sampled i.i.d; therefore induces a distribution (via independence) on , termed . Given , the training process is quantified by
(A) CelebA (n=128) DDPM Noise Prediction

(B) DDPM: Relative Train/Val Curvature Gap
(D) CelebA (n=10240) DDPM Noise Prediction
(C) CelebA DDPM Noise Prediction
(E) DDPM: Relative Train/Val Curvature Gap
(F) Copy count vs curvature n = 128, fmem = 100%
Figure 1: (A) Train vs. validation input curvature for CelebA, n=128, (B) Val. curvature starts to diverge from train curvature when starts accelerating, (C) values for n = 128, 10240 on CelebA, (D) and (E) Same experiment for CelebA, n=10240. Note that this model undergoes generalization, and memorization sets in much later at , (F) Curvature of an individual sample is not a good predictor of its copy count.
some algorithm , where and is the class of square integrable random m on . A model trained with data with parameters is thus denoted . We may define the loss over the model and as
Wherever necessary we will abuse notation and identify the function with . Given a dataset we will also define the losses on as follows:
We also set .
4.2 The Counterfactual Log-Odds of Sampling
We may simplify the notation above in the specific case of diffusion models. In particular, the training objective (7) is unsupervised, and thus . Moreover, we assume is produced via score matching/denoising and that it is then used to drive the SDE (8). We now define the counterfactual memorization:
Definition 4.1. Let be a training example and , be parameter distributions after optimization on the datasets , . Let , be the time marginals of the distributions produced by driving the plug-in SDE (8). Then the sampling time memorization of is given by:
Note that represents the log-odds of sampling with and without its presence in the training data. Large implies that the model would be much less likely to sample if it wasn’t included in the dataset. We also introduce a difference in the counterfactual losses, borrowed from [RSR24, RSHR24, Fel20, FZ20]:
We now use the decomposition (10) to write m in terms of M:
(A) Input curvature: train vs val.

(B) Input gradient norm: val.
(D) Relative errors between train and val. curvature
(C) Copy count vs Curvature, n = 512, fmem = 100%
(E) Validation loss
(F) Memorization
(A) Training data
(A) Val. data
(D) w.r.t train
(D) w.r.t val
maximum
Figure 2: (A) Input (11) curvatures consistently rise but validation (12) curvatures reach a local minimum at approximately peak memorization for DDPMs on different data sizes, (B) Sizes of gradients of validation loss also display local minima, (C) Input curvature on training data tracks the largest frequency of memorized samples, (D) Relative error between train and validation curvatures exhibits a local maximum, leading to an early stopping criterion, (E) Memorization cannot be detected just based on validation loss, (F) Memorization rises as models train further.
Proposition 4.2. Let be parameter distributions as defined in 4.1 and m, M be defined as in (17) and (19). Fix . Then:
We now bound M purely in terms of the properties of the leave-one-out model . We establish a number of mathematical preliminaries.
4.3 Mathematical Preliminaries
For a pair , we use four scalar quantities throughout:
Assumption 1. ( has -Lipschitz hessians) The Hessian of the loss is Lipschitz in the z-variable, i.e for every , there exists (possibly dependent on ) such that:
for every .
Assumption 2. (Loss behaves like MSE) We assume that the cost function satisfies
Note that any that is -Lipschitz in the -variable satisfies (26) [SST10]. For instance, the MSE , or where is itself Lipschitz satisfy (26).
Assumption 3. (The underlying function is neural network-like) We assume that all where . Most neural network architectures satisfy this assumption.
Note that the term in (28) is not quite because the second term in the absolute value involves (which is part of ) and not .
Assumption 4. We assume that A is a first order optimizer in the parameters, i.e there exist and such that
for every . Note that condition (27) is typically met by most deterministic and stochastic optimizers like SGD, Adam, or even full batch gradient descent.
Assumption 5. We assume that under , the weights are almost surely bounded by B.
Assumption 6. There exists a constant independent of , in the leading order (i.e in , ) such that with high probability in , for any , the following difference is uniformly bounded by :
Assumption 4 models as a first order optimizer that leads to bounded weights upon optimization. In the context of neural networks the weight-boundedness under standard optimization algorithms has been observed in several contexts, from deep linear models [SMG19], feedforward ReLU (or leaky ReLU) networks [DHL18] to transformers [AMSP24].
4.4 Training-Time Memorization is Controlled by Leave-One-Out Curvature
Theorem 4.3. Under Assumption 1, for every and every ,
If Assumptions 2–5 hold, then
and if Assumption 6 holds as well, then with ,
(31)
Corollary 4.4. Let Assumptions 1–6 hold and additionally suppose . Set . Then:
The proofs are provided in Appendix A. We make the following comments regarding Theorem 4.3:
-
Under Assumption 1 alone, (29) is a cubic expansion about an arbitrary second training point . Each coefficient can be large and can depend on the query point : the training-loss gap , the leave-one-out input gradient , the leave-one-out curvature , and the Hessian Lipschitz constant .
-
Assumptions 2–5 put a neural network and a first-order method into the bound. When the algorithm overfits, and can be considered to be comparably small against , the curvature of the leave-one-out loss . Curvature thus bounds counterfactual memorization at the leading order, during overfitting.
-
Assumption 6 asks for a uniform that is in . We can undertake a splitting argument to show that this -this is comparable to an analogous bound obtained in [RSR24] (Theorem 5.1) which is also .
-
[RSHR24] obtain using -uniform stability and remove the first order terms by comparing with on -adjacent datasets, where any two points lie at most a distance of apart, for small . [RSR24] remark that a training set must be augmented post-hoc to make it -adjacent. Here Assumption 6 replaces the uniform stability assumption. Moreover, we do not require such a condition on the data—instead we restrict the model class to be structured like a neural network in order to use its inductive biases to make the first order terms negligible. Overall, our bound does not require uniform stability, -adjacency, or bounded loss as is required by Theorem 5.1 in [RSR24]—however, we make more structural but nonetheless realistic assumptions on the model class and the algorithms at hand.
4.5 Application to Diffusion Models
We can make further specifications with additional assumptions for the denoising loss (7) and the fact that typically, the hypothesis class contains linear functions.
Assumption 7. We assume that for any and there exists some such that .
In objective (7) we train a denoiser . Thus we require that the underlying function class contain at least all linear denoisers. This assumption is satisfied by ReLU networks or ReLU U-Nets. Next we state the PL-inequality assumption used for simplifying the analysis of first-order methods in non-convex optimization. Note that neural network loss landscapes have been known to satisfy the local-PL inequality below for the parameter regions of most commonly used neural networks [LZB22].
Assumption 8. Let be the parameters and the parameter gradient of the empirical loss. We assume that there exists such that almost surely under ,
Proposition 4.5. Under assumptions 1–8, if is given by (7), there exists depending on such that the constant in assumption 6 is of the form:
We provide a proof in Appendix A. Note that in this setting the constant C is comparable to the constant given in Eq. 8 in [RSR24].
4.6 Held-Out Curvature During Training
Finally, we validate our bound on the DDPMs on Imagenet, to check whether held-out curvature can stand as a proxy for counterfactual memorization. In order to track it during training, we assume bounded ELBO gaps in (10) and track the counterfactual loss difference (19) instead of the log odds (17). Since training a diffusion model on for every is prohibitively expensive, we remove the top 10 most memorized examples for the DDPMs corresponding to and . We then estimate for these ten points, with the loss on the with parameters evaluated on as an estimator for \ell(h_{S^{\backslash i}}^{\phi'}', x_i). We present our results in Figures 3 and 4 where we track:
Note that is the signed version of (19). We observe the following phenomenon with : as training progresses, drops sharply at the initial phase of training, showing that the full model attempts to fit at the seen example . Then the loss stabilizes as both models enter their respective memorization phases. As the approaches 100% starts dropping quickly again. Throughout this whole process, however, the curvature of the held out models at the held out samples roughly corresponds to the drops and stability of , thus suggesting that our bound (29) is a meaningful proxy for the counterfactual loss. At the very tail of training, the curvature for the held-out models rises, reflecting the local minimum phenomenon seen in Figures 1 and 2. However, keeps falling, suggested that the held out point's influence on via curvature breaks down in the highly overfitted regime.
5 Conclusion
In this paper, we introduced the input-loss curvature as a sampling-free proxy for . Averaged over the training set, it tracks on ImageNet and on CelebA as training proceeds, albeit it is not sufficient to detect the onset or prevalence of memorization. Instead, we find that the step at which the validation curvature separates from the training curvature marks the transition into a memorizing model. However, over individual points, the input loss curvature cannot reflect the copy count of individual samples. For that question, we use a counterfactual definition, the change in loss and in log-likelihood at x when x is removed from the training set, and we prove that this quantity is influenced, to leading order in the displacement of x, by the input-loss curvature of the leave-one-out model.
We enumerate the limitations of our findings below:
DDPM n=128

Figure 3: Loss difference and curvature for Imagenet (n=128) DDPM noise prediction - leave-10-out training: (left) difference between per sample loss of full model and leave-10-out model vs. training step for each of the 10 left-out training samples, (right) per sample curvature of the leave-10-out model vs. training step for each of the 10 left-out training samples.
DDPM n=1024

Figure 4: Loss difference and curvature for Imagenet (n=1024) DDPM noise prediction - leave-10-out-training: (left) difference between per sample loss of full model and leave-10-out model vs. training step for each of the 10 left-out training samples, (right) per sample curvature of the leave-10-out model vs. training step for each of the 10 left-out training samples.
-
We provide narrow evidence ranging over only two datasets, ImageNet and CelebA. Moreover, a comparison between the various training losses used to train diffusion models merits further investigation that is not performed at length here.
-
We propose using the local maximum of the relative train–validation curvature error as a stopping criterion. However, our experiments show that this local maximum indicates a period of already high memorization. An improved statistic would be needed to locate the onset of memorization. For small datasets, Figure 2 shows that the norm of the loss gradient averaged over the validation data might prove useful, but its role and behaviour for larger datasets is not well-understood.
-
The bound is a plausibility argument and depends on a list of assumptions on the loss, the model, and the optimizer. It is also unsettled whether the curvature term dominates the ELBO gap at x, which is the comparison that decides whether curvature is the leading contribution to (17).
Acknowledgment
This work was supported in part by NSF DMS 2502561.
References
[AAD 24] Josh Abramson, Jonas Adler, Jack Dunger, Richard Evans, Tim Green, Alexander Pritzel, Olaf Ronneberger, Lindsay Willmore, Andrew J Ballard, Joshua Bambrick, et al. Accurate structure prediction of biomolecular interactions with alphafold 3. Nature, 630(8016):493–500, 2024.
[AMSP24] Murdock Aubry, Haoming Meng, Anton Sugolov, and Vardan Papyan. Transformer block coupling and its correlation with generalization in LLMs. arXiv preprint arXiv:2407.07810, 2024.
[And82] Brian D. O. Anderson. Reverse-time diffusion equation models. Stochastic Processes and their Applications, 12(3):313–326, 1982.
[AVS 24] Beatrice Achilli, Enrico Ventura, Gianluigi Silvestri, Bao Pham, Gabriel Raya, Dmitry Krotov, Carlo Lucibello, and Luca Ambrogioni. Losing dimensions: Geometric memorization in generative diffusion. arXiv preprint arXiv:2410.08727, 2024.
[BBdBM24] Giulio Biroli, Tony Bonnaire, Valentin de Bortoli, and Marc Mézard. Dynamical regimes of diffusion models. Nature Communications, 15:9957, 2024.
[BdH15] Anton Bovier and Frank den Hollander. Metastability: A Potential-Theoretic Approach, volume 351 of Grundlehren der mathematischen Wissenschaften. Springer, 2015.
[BDK 25] Ricardo Baptista, Agnimitra Dasgupta, Nikola B Kovachki, Assad Oberai, and Andrew M Stuart. Memorization and regularization in generative diffusion models. arXiv preprint arXiv:2501.15785, 2025.
[Ber13] Nils Berglund. Kramers' law: Validity, derivations and generalisations. Markov Processes and Related Fields, 19(3):459–490, 2013.
[BM23] Giulio Biroli and Marc Mézard. Generative diffusion in very large dimensions. Journal of Statistical Mechanics: Theory and Experiment, 2023(9):093402, 2023.
[BUBM25] Théo Bonnaire, Raphaël Urfin, Giulio Biroli, and Marc Mézard. Why diffusion models don’t memorize: The role of implicit dynamical regularization in training. In Advances in Neural Information Processing Systems (NeurIPS), 2025.
[CCN 22] Nicholas Carlini, Steve Chien, Milad Nasr, Shuang Song, Andreas Terzis, and Florian Tramèr. Membership inference attacks from first principles. In 2022 IEEE Symposium on Security and Privacy, pages 1897–1914, 2022.
[CHN 23] Nicholas Carlini, Jamie Hayes, Milad Nasr, Matthew Jagielski, Vikash Sehwag, Florian Tramèr, Borja Balle, Daphne Ippolito, and Eric Wallace. Extracting training data from diffusion models. In 32nd USENIX Security Symposium, pages 5253–5270, 2023.
[CTW 21] Nicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Úlfar Erlingsson, et al. Extracting training data from large language models. In 30th USENIX Security Symposium, pages 2633–2650, 2021.
[DDS 09] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255, 2009.
[DHL18] Simon S. Du, Wei Hu, and Jason D. Lee. Algorithmic regularization in learning deep homogeneous models: Layers are automatically balanced. Advances in Neural Information Processing Systems, 31, 2018.
[DMNS06] Cynthia Dwork, Frank McSherry, Kobbi Nissim, and Adam Smith. Calibrating noise to sensitivity in private data analysis. In Theory of Cryptography Conference, pages 265–284. Springer, 2006.
[Fel20] Vitaly Feldman. Does learning require memorization? A short tale about a long tail. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, pages 954–959, 2020.
[FZ20] Vitaly Feldman and Chiyuan Zhang. What neural networks memorize and why: Discovering the long tail via influence estimation. Advances in Neural Information Processing Systems, 33:2881–2891, 2020.
[GDP 23] Xiangming Gu, Chao Du, Tianyu Pang, Chongxuan Li, Min Lin, and Ye Wang. On memorization in diffusion models. arXiv preprint arXiv:2310.02664, 2023.
[GRR24] Isha Garg, Deepak Ravikumar, and Kaushik Roy. Memorization through the lens of curvature of loss function around samples. In Proceedings of the 41st International Conference on Machine Learning, 2024.
[HJA20] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840–6851, 2020.
[HLC21] Chin-Wei Huang, Jae Hyun Lim, and Aaron C. Courville. A variational perspective on diffusion-based generative models and score matching. Advances in Neural Information Processing Systems, 34:22863–22876, 2021.
[KGSM24] Zahra Kadkhodaie, Florentin Guth, Eero P. Simoncelli, and Stéphane Mallat. Generalization in diffusion models arises from geometry-adaptive harmonic representations. In International Conference on Learning Representations, 2024.
[Kin14] Diederik P Kingma. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
[LCBH 23] Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le. Flow matching for generative modeling. In International Conference on Learning Representations, 2023.
[LGL23] Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. In International Conference on Learning Representations, 2023.
[LLWT15] Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE International Conference on Computer Vision, pages 3730–3738, 2015.
[LZB22] Chaoyue Liu, Libin Zhu, and Mikhail Belkin. Loss landscapes and optimization in over-parameterized non-linear systems and neural networks. Applied and Computational Harmonic Analysis, 59:85–116, 2022.
[MY21] Chao Ma and Lexing Ying. On linear stability of SGD and input-smoothness of neural networks. Advances in Neural Information Processing Systems, 34:16805–16817, 2021.
[ND21] Alexander Quinn Nichol and Prafulla Dhariwal. Improved denoising diffusion probabilistic models. In Proceedings of the 38th International Conference on Machine Learning, pages 8162–8171, 2021.
[NP06] Yurii Nesterov and Boris T. Polyak. Cubic regularization of Newton method and its global performance. Mathematical Programming, 108(1):177–205, 2006.
[RBL 22] Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10684–10695, 2022.
[RDS 15] Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C. Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision, 115(3):211–252, 2015.
[RFB15] Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-Net: Convolutional networks for biomedical image segmentation. In Nassir Navab, Joachim Hornegger, William M. Wells, and Alejandro F. Frangi, editors, Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015, volume 9351 of Lecture Notes in Computer Science, pages 234–241. Springer International Publishing, 2015.
[RPG 21] Aditya Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. In International conference on machine learning, pages 8821–8831. Pmlr, 2021.
[RSHR24] Deepak Ravikumar, Efstathia Soufleri, Abolfazl Hashemi, and Kaushik Roy. Unveiling privacy, memorization, and input curvature links. In Proceedings of the 41st International Conference on Machine Learning, pages 42192–42212, 2024.
[RSR24] Deepak Ravikumar, Efstathia Soufleri, and Kaushik Roy. Curvature clues: Decoding deep learning privacy with input loss curvature. Advances in Neural Information Processing Systems, 37, 2024.
[SDWMG15] Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In Proceedings of the 32nd International Conference on Machine Learning, pages 2256–2265, 2015.
[SE19] Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. In Advances in Neural Information Processing Systems, volume 32, 2019.
[SME21] Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. In International Conference on Learning Representations, 2021.
[SMG19] Andrew M. Saxe, James L. McClelland, and Surya Ganguli. A mathematical theory of semantic development in deep neural networks. Proceedings of the National Academy of Sciences, 116(23):11537–11546, 2019.
[SSDK 21] Yang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021.
[SSG 23a] Gowthami Somepalli, Vasu Singla, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Diffusion art or digital forgery? Investigating data replication in diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6048–6058, 2023.
[SSG 23b] Gowthami Somepalli, Vasu Singla, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Understanding and mitigating copying in diffusion models. Advances in Neural Information Processing Systems, 36:47783–47803, 2023.
[SSSS17] Reza Shokri, Marco Stronati, Congzheng Song, and Vitaly Shmatikov. Membership inference attacks against machine learning models. In 2017 IEEE Symposium on Security and Privacy, pages 3–18, 2017.
[SST10] Nathan Srebro, Karthik Sridharan, and Ambuj Tewari. Optimistic rates for learning with a smooth loss. arXiv preprint arXiv:1009.3896, 2010.
[Vin11] Pascal Vincent. A connection between score matching and denoising autoencoders. Neural Computation, 23(7):1661–1674, 2011.
[VSP 17] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In I. Guyon, U. Von Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc., 2017.
[WDMG25] Dana Weitzner, Mauricio Delbracio, Peyman Milanfar, and Raja Giryes. The diffusion process as a correlation machine: Linear denoising insights. Transactions on Machine Learning Research, 2025.
[YCKR23] TaeHo Yoon, Joo Young Choi, Sehyun Kwon, and Ernest K. Ryu. Diffusion probabilistic models generalize when they fail to memorize. In ICML 2023 Workshop on Structured Probabilistic Inference and Generative Modeling, 2023.
[ZBH 17] Chiyuan Zhang, Samy Bengio, Moritz Hardt, Benjamin Recht, and Oriol Vinyals. Understanding deep learning requires rethinking generalization. In International Conference on Learning Representations, 2017.
[ZIL 23] Chiyuan Zhang, Daphne Ippolito, Katherine Lee, Matthew Jagielski, Florian Tramèr, and Nicholas Carlini. Counterfactual memorization in neural language models. Advances in Neural Information Processing Systems, 36:39321–39362, 2023.
A Proofs for Section 4
Lemma A.1 (Lemma 1 from [NP06]). Suppose satisfies Assumption 1 of -Lipschitz Hessians. Then for any
Using Assumption (1) we can also obtain the following bound on the gradients of :
Lemma A.2. Suppose satisfies Assumption 1 of -Lipschitz Hessians. Then for any
Here is the operator norm of the Hessian.
Following an argument of Ma & Ying [MY21] we use the multiplicative nature of neural networks to prove a bound on the input gradients in terms of the parameter gradients.
Lemma A.3. Suppose and there exists a constant such that . Then we have
Proof. We compute the gradient with respect to the inputs:
Multiplying the first equation on the right by we get
Now, taking norms and using our assumption we have:
Before going further, we remark on the significance of Lemma A.3. In machine learning, we optimize the loss with respect to the parameters in the model . However, since we are interested in the effect of the inclusion of a single training sample, we are more interested in the behaviour of the loss with respect to its inputs z. Lemma A.3 gives us a way to relate these two, specifically relating the sizes of the input and parameter gradients of the loss. In particular, it says that the input gradients can be (roughly) controlled by the parameter gradients, which we explicitly control via optimization.
Using the cubic envelope from Lemma (A.1) we may bound the memorization term from (46).
Lemma A.4. Let be a finite dataset and let and let . Then under assumptions (1) and (6), for any we have:
(46)
Proof. Let . For , we have, using Lemma A.1 that:
Using the monotonicity of expectation we therefore get:
Plugging these into the two-sided bound implied by Assumption 6 we get:
By rearranging, we have
Using the same tactic, we may prove a lower bound for using the negative of the term above. This yields a bound for the absolute value, and recalling the definition of yields the bound (46).
We can now and prove our main result 4.3.
Proof. First, we construct the high probability event under which the bound should hold. Set the threshold in assumption 4 to be where is the size of the dataset. Then fix a threshold such that both events under which assumptions 6 and 5 hold. In this high probability event we apply Lemma A.4 to the set to obtain (46):
(46)
To bound (A), we use Cauchy-Schwarz and Jensen's inequality:
We now apply Lemma A.2 on \nabla_z \ell(h_{S \setminus i}^{\phi'}', z_i)\|_2 and take expectations to obtain:
We now apply Lemma A.3 to (59) and thus get:
The last equality follows due to assumption 4 and 5 which results in both the loss and the gradients of the loss of a trained model at a training sample to be small (compared to the parameters and the nearest neighbor distance ). Putting (62) with (59) we get:
(63)
(64)
To bound (B) we use an operator norm upper bound along with Jensen's inequality to bound the quadratic term in (46) also by the operator norm of the hessian appearing in (64):
Plugging (64) and (68) yields (29).
□
A.1 Proof of Proposition 4.5
For brevity we set , and . First, since the function class contains linear denoisers, the performance of under is better than any linear denoiser. However, the best linear denoiser attains an MSE dependent on , , [WDMG25] that we term . Thus . We may now decompose the difference in assumption 6 as follows by introducing the rest of the dataset , :
Here the inequality on the third line follows because of the following calculation:
Using the PL-inequality in assumption 8, the bound and the fact that we get:
B Experimental Details
Here we describe our experimental details. Note that we also conducted analogous versions of our experiments for flow-matching which we describe below.
Flow matching [LCBH 23, LGL23] learns a time-dependent velocity field whose flow transports a noise distribution to the data distribution . Given and , one forms the linear interpolant for , whose conditional velocity is . The field is trained by regressing onto this target,
(70) and the minimizer is the marginal velocity . Samples are then generated by integrating the ODE from to .
We conduct numerical experiments on the Imagenet and CelebA datasets. We use ImageNet-1k [DDS 09, RDS 15] and convert to RGB downscaled images of size . For Imagenet, we train on . We convert the CelebA [LLWT15] face images to grayscale and downsample them to size . We use a training set size of for CelebA, yielding a memorizing vs. generalizing model. All our score models have a U-Net architecture [RFB15] with four resolution levels, base channel width , and channel multipliers 1, 2, 4, and 4 respectively. Self-attention is applied at the two lowest-resolution levels, and each level has two residual blocks in the encoder and three in the decoder. The models are conditioned on diffusion time through the sinusoidal embedding [VSP 17] in every residual block, so a single network serves all noise levels. We train the network in one of three ways: DDPM [HJA20] with either noise prediction ( -prediction) or clean-sample prediction ( -prediction), or flow matching [LCBH 23]. The DDPM noise prediction predicts the injected Gaussian noise at diffusion time using the Adam optimizer [Kin14] with a fixed batch size of 128. DDPM sample prediction takes the noisy images and time and predicts the clean image directly using loss MSE( ). DDPM models are sampled using DDIM with 100 steps and stochasticity parameter , starting from . For the noise prediction models, the predicted noise is converted to a clean image estimate before stepping to the next time. The sample prediction models use the same DDIM sampler with the network output taken as the clean image estimate directly. The flow matching networks predict the velocity along the linear path , where is the noise, is the training image, and is the normalized time. Training minimizes MSE( ), and sampling integrates from (noise) to (data) with 100 Euler steps.
C Generated Samples
Figures 5-12 shows generated samples at the pre-memorization, beginning of memorization, and full memorization stages with their nearest training neighbor for DDPM noise prediction and flow matching on CelebA with as well as the leave-10-out models for Imagenet with .
DDPM n=128: generated vs. nearest training image

Figure 5: Generated samples vs. nearest training image for CelebA (n=128) DDPM: generated samples at the pre-memorization, start of memorization, and full memorization stages alongside their nearest neighbor in the training set.
Figures 13–20 show generated samples and their nearest training images for models trained on all n images: DDPM noise prediction with and flow matching with . Each row contains five generated–training image pairs. All memorization fractions are measured over 10,000 generations.
For models with sustained memorization, pre_mem denotes the last evaluated checkpoint with before onset, and start_mem denotes the first checkpoint after which stays above zero. Full memorization (full_mem) denotes the first evaluated checkpoint with . For DDPM with and , which never reach this threshold, peak_mem denotes the highest observed memorization fraction. For DDPM with , the two rows instead show a zero-copy checkpoint followed by an isolated copy event.
FM n=128: generated vs. nearest training image

Figure 6: Generated samples vs. nearest training image for CelebA (n=128) flow matching: generated samples at the pre-memorization, start of memorization, and full memorization stages alongside their nearest neighbor in the training set.
DDPM n=10240: generated vs. nearest training image

Figure 7: Generated samples vs. nearest training image for CelebA (n=10240) DDPM: generated samples at the pre-memorization, start of memorization, and full memorization stages alongside their nearest neighbor in the training set.
FM n=10240: generated vs. nearest training image

Figure 8: Generated samples vs. nearest training image for CelebA (n=10240) flow matching: generated samples at the pre-memorization, start of memorization, and full memorization stages alongside their nearest neighbor in the training set.
DDPM n=128: generated vs. nearest training image

Figure 9: Generated samples vs. nearest training image for Imagenet (n=128) DDPM leave-10-out model: generated samples at the pre-memorization, start of memorization, and full memorization stages alongside their nearest neighbor in the training set.
DDPM n=1024: generated vs. nearest training image

Figure 10: Generated samples vs. nearest training image for Imagenet (n=1024) DDPM leave-10-out model: generated samples at the pre-memorization, start of memorization, and full memorization stages alongside their nearest neighbor in the training set.
FM n=128: generated vs. nearest training image

Figure 11: Generated samples vs. nearest training image for Imagenet (n=128) flow matching leave-10-out model: generated samples at the pre-memorization, start of memorization, and full memorization stages alongside their nearest neighbor in the training set.
FM n=1024: generated vs. nearest training image

Figure 12: Generated samples vs. nearest training image for Imagenet (n=1024) flow matching leave-10-out model: generated samples at the pre-memorization, start of memorization, and full memorization stages alongside their nearest neighbor in the training set.
DDPM n=128: generated vs. nearest training image

Figure 13: Generated samples vs. nearest training image for ImageNet (n = 128) DDPM. pre_mem: step 2,000, , five random samples. start_mem: step 3,000, (10 copies of ), five randomly selected copies. full_mem: step 150,000, , five randomly selected copies.
DDPM n=256: generated vs. nearest training image

Figure 14: Generated samples vs. nearest training image for ImageNet (n = 256) DDPM. pre_mem: step 3,000, , five random samples. start_mem: step 5,000, (4 copies of ); the four copies, followed in the rightmost pair by the non-copy with the smallest gap ratio. full_mem: step 200,000, , five randomly selected copies.
DDPM n=512: generated vs. nearest training image

Figure 15: Generated samples vs. nearest training image for ImageNet (n = 512) DDPM. pre_mem: step 5,000, , five random samples. start_mem: step 7,000, (3 copies of ); the three copies, followed in the two rightmost pairs by the non-copies with the smallest gap ratios. peak_mem: step 2,000,000, , five randomly selected copies. This model never reaches the full-memorization threshold.
DDPM n=1024: generated vs. nearest training image

Figure 16: Generated samples vs. nearest training image for ImageNet (n = 1024) DDPM. pre_mem: step 15,000, , five random samples. start_mem: step 20,000, (10 copies of ), five randomly selected copies. peak_mem: step 2,000,000, , five randomly selected copies. This model never reaches the full-memorization threshold.
DDPM n=2048: generated vs. nearest training image

Figure 17: Generated samples vs. nearest training image for ImageNet (n = 2048) DDPM. pre_mem: step 70,000, , five random samples. start_mem: step 100,000, (2 copies of ); the two copies, followed in the three rightmost pairs by the non-copies with the smallest gap ratios. There is no full_mem row: peaks at 0.57%.
DDPM n=4096: generated vs. nearest training image

Figure 18: Generated samples vs. nearest training image for ImageNet (n = 4096) DDPM. pre_mem: step 300,000, , five random samples. start_mem: step 500,000, an isolated checkpoint with (3 copies of ); the three copies, followed in the two rightmost pairs by the non-copies with the smallest gap ratios. Here start_mem labels the isolated copy event. No sustained memorization is observed, and there is no full_mem row.
FM n=128: generated vs. nearest training image

Figure 19: Generated samples vs. nearest training image for ImageNet (n = 128) flow matching. pre_mem: step 1,000, , five random samples. start_mem: step 2,000, (10 copies of ), five randomly selected copies. full_mem: step 10,000, , five randomly selected copies.
FM n=1024: generated vs. nearest training image

Figure 20: Generated samples vs. nearest training image for ImageNet (n = 1024) flow matching. pre_mem: step 10,000, , five random samples. start_mem: step 15,000, (46 copies of ), five randomly selected copies. full_mem: step 500,000, , five randomly selected copies.
D Additional Experiments
We provide additional experiments on Imagenet and CelebA. Figures 21-25 plot the average training input loss curvature over diffusion time and fraction of generated samples that are considered memorized with memorization threshold vs. training step for DDPM noise prediction and flow matching for the datasets CelebA with training set size and Imagenet with training set size , respectively. DDPM and flow matching on CelebA with is a memorizing model, since fraction memorization starts increasing rapidly to 100% around training step , whereas DDPM and flow matching on CelebA with is a generalizing model with fraction memorization increasing much later around training step and never reaching full memorization of 100% before training ends. We observe that the average input loss curvature increases more drastically for the memorizing model as compared to the generalizing model. A similar trend can be seen for the DDPM and flow matching models for Imagenet as training size increases.
For the flow matching model on CelebA with training size , Figure 26 shows the average training and validation input loss curvatures over diffusion time vs. training step, as well as the relative training and validation curvature gaps, which is calculated as and , vs. training step. We observe that the training curvature separates from the validation curvature right before training step , which is around where memorization begins, as shown in Figure 21.
Figure 27 shows the fraction memorization score for DDPM noise prediction and flow matching on Imagenet ( ) with different values for the memorization threshold . There is no trend in the nearest-neighbor gap ratios for DDPM even when is increased. However, for flow matching, when is large, the nearest-neighbor gap ratios increase as training continues. Nonetheless, this pattern in the gap ratios does not indicate that this model is a memorizing model, since for , the fraction memorized is approximately 0% for all training steps.
Figure 28 shows the average training curvature over diffusion time and fraction memorized with vs. training step for DDPM sample prediction on Imagenet ( ) as well as the fraction memorization with . This model is a generalizing model, since for , approximately 0% of the generated samples are considered memorized for all training steps, even though for large values of , the nearest-neighbor gap ratios increase as training steps increase. We also observe that the average input loss curvature barely changes across training steps, validating the connection between memorization and curvature.
In Figure 29, the average training input loss curvature over diffusion time vs. training step is plotted for DDPM noise prediction and flow matching on the CelebA and Imagenet datasets with training set size . CelebA has larger curvature values than Imagenet for both models, which correspond to higher memorization scores as seen in Figures 22 and 25. In particular, DDPM and flow matching for CelebA ( ) have fraction memorization scores of around 23% and 40%, respectively, at the end of training, whereas DDPM and flow matching for Imagenet ( ) have fraction memorization scores of around 0% and 0.1%, respectively, at the end of training.
Figure 30 compares two DDPM noise prediction models on Imagenet, one that is trained on a training set of size and another that is trained on the same training set with the top 10 memorized samples from the full model removed. The figure plots fraction memorization and average training curvature over diffusion time vs. training step for both the full and leave-10-out models. The leave-10-out model has a lower memorization score at the end of training and lower input loss curvature for all training steps, indicating that it is worthwhile to remove the top memorized samples from a model to improve generalization. Figure 31 shows similar results for flow matching. We repeat these experiments for Imagenet in Figures 32 and 33. Figures 34 and 35 plot the difference between the per sample losses of the full flow matching models and the leave-10-out models vs. training step, as well as the per sample curvatures of the leave-10-out models, for each of the top 10 left-out samples.
E Additional ImageNet DDPM experiments
E.1 Experimental Details
We use RGB ImageNet images and nested training sets of size , taking the first images in a fixed dataset ordering. We evaluate all models on the same disjoint set of 1,024 held-out images. Each training size corresponds to one DDPM trained with the noise-prediction objective. The U-Net has base width 64 and channel multipliers . We use Adam with learning rate and a linear noise schedule with 1,000 diffusion steps. We train all models for updates and continue training those with for another updates to examine their behavior over longer training.

(a)

(b)
Figure 21: Curvature and memorization for CelebA (n=128): average input loss curvature over diffusion time and training set and fraction memorized (%) with memorization threshold vs. training step for (a) DDPM noise prediction and (b) flow matching.

(a)

(b)
Figure 22: Curvature and memorization for CelebA (n=10240): average input loss curvature over diffusion time and training set and fraction memorized (%) with memorization threshold vs. training step for (a) DDPM noise prediction and (b) flow matching.
For the curvature, gradient, and loss measurements, we convert the predicted noise to a clean-image estimate and evaluate the mean squared reconstruction error
where is the number of scalar image values across the three RGB channels, so averages the squared error over all channels and pixels. Here is the clean image after the input normalization used for training, and is its noisy version at diffusion step , obtained using Gaussian noise . The training checkpoint is indexed by , and denotes the model parameters at that checkpoint. Derivatives are taken with respect to , including its contribution through . We estimate the input-Hessian trace using 32 Monte Carlo draws per image. Each draw samples uniformly from , Gaussian forward noise , and a Rademacher vector , and evaluates . The gradient curves average over 32 draws, and the loss curves average over 64 draws. Training means use all images; validation means use the fixed held-out set. These measurements do not require generating samples from the model.
At each checkpoint used to evaluate memorization, we generate 10,000 images using 100 deterministic DDIM steps ( ). A generated image is classified as a copy when the ratio of its nearest to second-nearest training-image distances is below 1/3. We use Euclidean distances in the normalized image space used for training. The copy count is the number of generated copies assigned to training image at checkpoint , and is the fraction of generations classified as copies.

(a)

(b)
Figure 23: Curvature and memorization for Imagenet (n=128): average input loss curvature over diffusion time and training set and fraction memorized (%) with memorization threshold vs. training step for (a) DDPM noise prediction and (b) flow matching.

(a)

(b)
Figure 24: Curvature and memorization for Imagenet (n=1024): average input loss curvature over diffusion time and training set and fraction memorized (%) with memorization threshold vs. training step for (a) DDPM noise prediction and (b) flow matching.
E.2 Supporting Figures
Figure 37 compares the mean curvature of training images copied at a checkpoint with that of the remaining training images. The copied group generally has higher curvature, although the separation varies with training size and checkpoint. Figure 38 compares the maximum copy count with the relative train–validation curvature gap. Smaller training sets tend to exhibit both larger maximum copy counts and larger curvature gaps.

(a)

(b)
Figure 25: Curvature and memorization for Imagenet (n=10240): average input loss curvature over diffusion time and training set and fraction memorized (%) with memorization threshold vs. training step for (a) DDPM noise prediction and (b) flow matching.

Figure 26: Training vs. validation curvature for CelebA (n=128) flow matching: (left) average input loss curvature over diffusion time and training (blue) / validation (orange) set, (right) relative training/validation curvature gap calculated as (blue) and (orange).

(a)

(b)
Figure 27: Memorization for Imagenet (n=10240): fraction memorized (%) with memorization threshold vs. training step for (a) DDPM noise prediction and (b) flow matching.

(a)

(b)
Figure 28: Curvature and memorization for Imagenet (n=10240) DDPM Sample Prediction: (a) average input loss curvature over diffusion time and training set and fraction memorized (%) with memorization threshold vs. training step, and (b) fraction memorized (%) with memorization threshold vs. training step.

(a)
(b)
Figure 29: CelebA vs. Imagenet (n=10240) Curvature: average input loss curvature over diffusion time and training set vs. training step for (a) DDPM noise prediction and (b) flow matching.

(a)

(b)
Figure 30: Memorization and curvature for Imagenet (n=1024) DDPM noise prediction - full vs. leave-10-out training: (a) fraction memorized (%) with memorization threshold vs. training step and (b) average input loss curvature over diffusion time and training set vs. training step for full training set and leave-10-out training set with the top 10 memorized training samples removed.

(a)

(b)
Figure 31: Memorization and curvature for Imagenet (n=1024) flow matching - full vs. leave-10-out training: (a) fraction memorized (%) with memorization threshold vs. training step and (b) average input loss curvature over diffusion time and training set vs. training step for full training set and leave-10-out training set with the top 10 memorized training samples removed.

(a)

(b)
Figure 32: Memorization and curvature for Imagenet (n=128) DDPM noise prediction - full vs. leave-10-out training: (a) fraction memorized (%) with memorization threshold vs. training step and (b) average input loss curvature over diffusion time and training set vs. training step for full training set and leave-10-out training set with the top 10 memorized training samples removed.

(a)

(b)
Figure 33: Memorization and curvature for Imagenet (n=128) flow matching - full vs. leave-10-out training: (a) fraction memorized (%) with memorization threshold vs. training step and (b) average input loss curvature over diffusion time and training set vs. training step for full training set and leave-10-out training set with the top 10 memorized training samples removed.
FM n=128

Figure 34: Loss difference and curvature for Imagenet (n=128) flow matching - leave-10-out-training: (left) difference between per sample loss of full model and leave-10-out model vs. training step for each of the 10 left-out training samples, (right) per sample curvature of the leave-10-out model vs. training step for each of the 10 left-out training samples.
FM n=1024

Figure 35: Loss difference and curvature for Imagenet (n=1024) flow matching - leave-10-out-training: (left) difference between per sample loss of full model and leave-10-out model vs. training step for each of the 10 left-out training samples, (right) per sample curvature of the leave-10-out model vs. training step for each of the 10 left-out training samples.

(a)

(b)
Figure 36: Memorization and curvature for Imagenet (n=128) flow matching - full vs. leave-10-out training: (a) fraction memorized (%) with memorization threshold vs. training step and (b) average input loss curvature over diffusion time and training set vs. training step for full training set and leave-10-out training set with the top 10 memorized training samples removed.





Copied at least once
Never copied
---- Start of memorization ( first above 1%)

Figure 37: Curvature of copied and non-copied training images. Each panel shows one ImageNet DDPM training size. Orange and blue curves average the input-Hessian trace over images with and , respectively. Group membership is determined separately at each checkpoint; “never copied” in the legend refers only to that checkpoint’s generations. Shading shows one standard error across images in the group, and orange numbers give the copied-group size. A group is plotted only when it contains at least ten images. Dashed vertical lines mark the first evaluated checkpoint with , used as a reference threshold.

Figure 38: Maximum copy count and relative curvature gap. Each point represents one evaluated checkpoint of an ImageNet DDPM; colors indicate training-set size. The horizontal coordinate is among 10,000 generations. The vertical coordinate is , where the two means use all training images and the same 1,024 held-out images, respectively. Curvature is the input-Hessian trace estimated as described above. The horizontal scale is logarithmic above one and linear near zero to retain checkpoints with no observed copies.