arXiv:2610.19042cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19042

Loss Curvature as a Sampling-Free Proxy for Memorization in Diffusion Models

Shashank Sule, Xinyue Yu, Boonam Shin, Yuxuan Liu, Abolfazl Hashemi, Hayden Schaeffer

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:

  1. 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 τ\tau, models first generalize (at τgen\tau_{gen}) and later memorize (at τmem\tau_{mem}) [BM23, BBdBM24, YCKR23, AVS +^{+}24], but these time-scales are known only asymptotically, and measuring the memorized fraction fmem(τ)f_{mem}(\tau) requires costly sampling.

  2. 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.

1^{1}Department of Mathematics, University of California, Los Angeles, CA 90095, USA.

2^{2}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

Curvϕ(x)=Eϕ∼A(S)[∥∇x2ℓ(ϕ,x)∥F2],(1)\mathbf{C u r v}_{\phi}(x)=\mathbb{E}_{\phi\sim\mathcal{A}(S)}\left[\|\nabla_{x}^{2}\ell(\phi,x)\|_{F}^{2}\right], \tag{1}

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 −log⁡p(x)-\log p(x) 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.

References (70)