acceptodds
Published as a conference paper at NeurIPS 2026

How Diffusion Models Memorize

Juyeop Kim, Songkuk Kim, Jong-Seok Lee

Abstract

Despite their success in image generation, diffusion models can memorize training data, raising serious privacy and copyright concerns. Although prior work has identified empirical factors associated with memorization, such as text guidance, prompt specificity, and duplicated training examples, the mechanism by which memorization is triggered and propagated during denoising remains unclear. In this paper, we provide a theoretical explanation of how memorization occurs in text-to-image diffusion models. We show that conditional overfitting causes the conditional posterior mean to collapse to the memorized training latent, while the unconditional posterior remains close to the zero-centered data mean at the first denoising step. As a result, classifier-free guidance overestimates the clean prediction and injects an amplified memorized signal into the reverse trajectory. We further show that this signal propagates across timesteps because each guided latent is fed back into the denoising network, allowing the conditional branch to indirectly shift the unconditional branch. To characterize this process, we introduce the posterior lag, the discrepancy between conditional and unconditional posterior means. For normal prompts, this lag decreases as the two posteriors synchronize during denoising. For memorized prompts, the conditional posterior commits early to a specific training latent, while the unconditional posterior catches up only later, producing a distinctive rise-and-fall lag pattern. Our analysis provides a mechanism-level explanation of memorization and clarifies why text guidance and early denoising steps play a central role in memorized generation.

Keywords:
Sydney

Reviews

Among:
Shape:
123456this paper, Bottom 4%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 3.67 over 3 reviews, above 4% of the others.
Reviewer_ejkQOpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper gives a mechanistic account of why text-to-image diffusion models reproduce training images: conditional overfitting collapses the conditional posterior mean onto the memorized latent, while the unconditional posterior mean stays near the zero-centered data mean at t=Tt=T, so classifier-free guidance with scale gg extrapolates the clean prediction to ≈gx\approx g\mathbf{x} and injects an amplified memorized signal into the reverse trajectory. It defines the posterior lag, the gap between conditional and unconditional posterior means, and uses it to explain the rise-and-fall dynamics of memorization, with qualitative validation on SD v1.4, SD v2.1, and RealisticVision.

Strengths and weaknesses

Significance and originality: the work attacks the still-open "why and how" of memorization with a mechanistic rather than empirical account, and recovers Wen et al.'s noise-magnitude detection score as proportional to the posterior-lag magnitude, anchoring an existing heuristic to the theory. Quality: every core result rests on unmeasured idealizations — Bayes-optimal denoisers, zero-centered latents yielding \hat{x}{T,\emptyset}\approx0, the target-dominance approximation, and a hand-set prior dichotomy p_c+p\emptyset\gtrsim1 vs p_c+p_\emptyset<1 — with no sensitivity analysis quantifying degradation under finite capacity or non-centered latents. Clarity and reproducibility: empirical support is qualitative curves over 10 seeds without error bars, baselines, or significance tests, too weak for a mechanism-level claim, and no code or data is released.

Questions

Can you measure the data mean in SD's latent space to test the zero-centered assumption and quantify how closely x^T,∅≈0\hat{x}_{T,\emptyset}\approx0 holds, since Lemma 2 and Theorem 3 hinge on it? Theorem 3 predicts x^T≈gx\hat{x}_T\approx g\mathbf{x} at g=7.5g=7.5; how is this amplified clean prediction reconciled with the bounded posterior-mean assumption ∥⋅∥≤M\|\cdot\|\le M? Can you supply a quantitative, significance-tested comparison of posterior lag between normal and memorized prompts instead of color-coded single-seed curves?

Limitations

yes

Paper formatting concerns

n/a

Final justification

I read the response, and keep the score unchanged.

Reviewer_c3RrOpenReview ↗
Rating
3
Clarity
3
Confidence
4
Originality
2
Quality
3
Significance
3
Read review
Summary

The authors present a mechanistic Bayesian framework for why diffusion T2I models replicate training data at inference time. Assuming the conditional posterior has collapsed to a training latent x*, they show that the CFG overestimates the clean prediction at the first denoising step as \hat x_T ~ g x^\star - the amplified signal dominates the initial latent, making the output essentially invariant to the random seed during sampling. Latent feedback, due to the Jacobian term, then drags the unconditional branch along, and hence the same output for different seeds. To analyze this the authors formally propose using the posterior lag \Delta_t = \hat x_{t,c} - \hat x_{t,\emptyset}, i.e. the Wen et al. guidance signal in posterior-mean space, which shows a rise-and-fall pattern for memorized prompts vs monotonic decay otherwise. The resulting proofs unify several existing heuristic detection and mitigation methods, eg Wen/Jain/ Hintersdorf/Ren, under one g \eta_t \Delta_t mechanism (but do not yield a new practical detector or mitigator).

Strengths and weaknesses

Strenghts:

  1. The paper provides a neat Bayesian analysis of the memorization due to CFG that is nicely combined with the Jacobian feedback propagation (Lemma 4), giving a nice mechanistic explanation on the outputs being seed invariant..

  2. The trajectories plotted in the empirical section of the paper seem to follow the theory (the rise-and-fall behavior for memorized prompts), aligning with their theoretical model. I also like the interpretation which the authors give in Fig. 1.

Weaknesses:

There are two main issues from my point of view. Firstly, I think that the main contribution type is that of theoretical one, rather than empirical one. Secondly, I feel there to be limited novelty, specifically with insufficient credit to prior work. To be precise:

  1. The posterior lag \Delta_t seems to be proportional to the Wen et al. 2024 detection score \epsilon_c - \epsilon_\emptyset, including its behaviour (where the magnitude peaks early). The CFG–memorization link has already been established in Somepalli et al. 2023 and Chen et al. 2024. The abstract/introduction present these as new, as well as other concepts which comes off as misleading.

  2. I find the claims such as 'However, these studies largely rely on empirical observations and intuitive explanations, rather than a theoretical analysis of the denoising mechanism that produces memorization' quite dismissive (unnecessarily). The claim in L35 that prior studies 'rely on empirical observations and intuitive explanations, rather than a theoretical analysis' understates existing work, and the novelty claims should be revised to reflect that the contribution here is a unifying posterior-mean reparameterization, not the first theoretical treatment.

  3. There seems to be circularity in the core claim that the authors present; corollary 1.1 assumes conditional loss below the noise floor for all t, which via Lemma 1 is equivalent to \hat x_{t,c} \approx x^\star, i.e. memorization. " Isn't "conditional overfitting triggers memorization" is then true by assumption? (instead of being derived). Maybe this would be better if the authors could define what do they mean by memorization and argue why they think it is not evident that conditional overfitting implies/equals memorizaton?

  4. As mentioned, no formal theoretical definition of memorization - could the authors please include this?

  5. Finally, by the end of the paper I am unsure about whether there is an algorithmic advance. The analysis provided is explanatory (which is not in itself a bad thing), but no new detector or mitigator is shown to outperform Wen / AMG / Jain / Hintersdorf / Ren, and the resulting practical advice match the existing heuristics of various current adaptive guidance whose findings are, as mentioned, quite common and well-known.

Overall I find the paper to be OK written and it is nice to have the unifying theoretical result. However I am unsure whether, due to the empirical performance as well as not clear application neither in practice nor further theoretical analyses that could be developed, and as the results seem well established both by theoreticians and practicioners and and well examined (this work primarily formalizes them), I struggle to find enough reasons for acceptance.

Questions
  1. Can you give a formal definition of memorization for the theory sections that is distinct from conditional overfitting? Right now Corollary 1.1 assumes E[L_c \mid x,t,c] \le \varepsilon_t for all t, which via Lemma 1 is equivalent to \hat x_{t,c} \approx x^\star, i.e. memorization itself.
  2. Your posterior lag \Delta_t = \hat x_{t,c} - \hat x_{t,\emptyset} is proportional to the Wen et al. 2024 detection score \epsilon_c - \epsilon_\emptyset. In what setting, if any, does it detect memorization better than existing baselines?
  3. Do you claim the link between high CFG scale and increased memorization as a novel contribution, or is the contribution the posterior-mean propagation proof in Theorem 3 / Lemma 4? The guidance–memorization correlation is established in Somepalli et al. 2023 and Chen et al. 2024
  4. From a practical standpoint, does this theory lead to any new detection method or migitagion method that is not already covered by existing adaptive guidance methods like Wen / Jain / Hintersdorf / Ren?
Limitations

yes

Paper formatting concerns

No concerns

Final justification

After reviewing other reviews and the Meta review I believe that this paper falls short of the acceptance bar.

Reviewer_QGXNOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
2
Quality
3
Significance
3
Read review
Summary

This submission provides mathematical analyses on the mechanism behind text-to-image (t2i) generative diffusion models using classifier-free guidance (CFG), causing memorization of training text-image pairs. The analyses characterize t2i memorization as overfitting to a text-image pair. When an inverse-process network is well trained, it is found that 1) text-conditional factors are dominant in the early steps during denoising over the unconditional factors, 2) the initial-dominance influences from conditions propagate during the reverse process because the conditioned and unconditioned trajectories can only have limited discrepancies. Experiments using pretrained diffusion models, including Stable Diffusion v1.4 (and some more in Supplementary Material) and the discussed parameters in the mathematical analyses, showed correlation between memorization metrics.

Strengths and weaknesses

The manuscript presents an overall correct (but with some questions) formal explanation of how memorization happens, as far as I checked. However, as a submission to an AI/ML venue, I have concerns about the depth of technical insights, failing to point out some unknown behaviors of the models or knowledge to lead to new designs of methods.

Strong:

  • Scope and formal analyses: memorization is an important phenomenon to understand the generalizability of generative model. Formal analyses for this will be useful for future researches as a basis of method designs and more quantitative evaluation of generalization bounds.
  • Theoretically motivated experiments: theoretical results in Sec. 3 are supported one-by-one in the empirical results.
  • Empirical validation in Figure 1 shows promising results of memorization detection in a theory-connected manner.

Weak:

  • Lack of a strong conclusion or implication for method design: Sec. 3 provides multiple formulations to describe memorization, but insights that deepen the community's understanding of memorization or lead to a new countermeasure. The current form looks like a series of explanations about empirically known results, as discussed in Sec. 5.1. This concern became a bit more serious after I realized that this submission selected the General contribution type, not Theory.
  • Mathematical rigor: I found that some terms and symbols are used undefined (See Questions for details), and especially approximations ≈\approx are used multiple times without guaranteed approximation precisions, and it is not clear how much the errors can be amplified in the latter steps of the mathematical operations. I understand that this submission is to make a "general" contribution rather than a theory, but I think that the included theoretical analyses are more useful when they are more rigorous, so I still have a lightweight concern.
  • Although the Bayesian assumption is incorporated, the most part of the formulation is about the expected values. The stochastic behaviors of trajectories are not considered, and this might overestimate the risk of memorization that is mitigated by the random behavior of diffusion models. I could not understand why the analyses are said to be sampler-agnostic (footnote 2).
  • The effect of the initial noise is not discussed. This may be ignorable after the CFG-dominant assumption. However, empirical dependence of the generated images on the initial noises is empirically observed, and it may be oversimplifying the setting.
Questions
  • Term "overfitting": What is the definition of overfitting in the context of this work? In a general machine-learning convention, it may refer to a discrepancy between training and validation losses, but this work does not discuss validation loss. Recent generative-AI fields often use the term to pinpoint memorization, but this would make claiming "overfitting triggers memorization" a tautology. Eqn. 9 seems to include both overfit and good fit with generalization.
  • Lemma 2 and Theorem 3: the order of approximation errors is not discussed. Would they depend on ϵt\epsilon_t?
  • l123. gx is not defined in the text. Guidance scale?
Limitations

yes

Paper formatting concerns

no

Final justification

I appreciate the detailed author response. My concerns on the mathematical formulations are mostly solved and I updated the score to BA. At the same time, I found some additional concerns in the framing of the contributions during re-reading for checking the rebuttal: The contribution of this paper might be better summarized in "formalizing memorization indicators with theoretical grounding and empirical results", since the analyses do not directly point the conditions of memorization, so there seems to emain some gap to answering “Why -- and how -- does memorization occur?” I do not think this as invalidating the main results, but I would encourage the authors to calibrate their claims more carefully in a future revision.

Comments on the paper

1 comment
Meta-review

This submission presents a mechanistic Bayesian framework explaining how classifier-free guidance (CFG) and Jacobian feedback propagate training data memorization in text-to-image diffusion models. To analyze this trajectory dynamic, the paper formalizes the concept of posterior lag (the discrepancy between conditional and unconditional posterior means) and characterizes its rise-and-fall behavior during denoising.

During the initial review phase, the reviewers appreciated the unified Bayesian perspective but raised critical concerns regarding mathematical rigor (unbounded approximations, idealized zero-mean latent assumptions), potential circularity regarding the definition of memorization, and the reliance on qualitative, small-sample empirical curves.

The authors provided an exceptionally thorough rebuttal that directly resolved these concerns:

  • Mathematical Precision: Replaced loose approximations with exact expressions and explicit non-asymptotic error bounds that account for non-zero data means and finite model capacity.
  • Conceptual Clarity: Explicitly distinguished pair-specific internal conditional recovery from final generated output reproduction, clarifying the non-circular mechanism of terminal synchronization.
  • Empirical Rigor: Provided a quantitative, prompt-level statistical analysis, validating the distinct rise-and-fall peak timing for memorized prompts.

Following the author response and subsequent discussion, the reviewers agreed that the rebuttal successfully addressed the mathematical rigor and empirical validation issues. The discussion converged on recognizing that while the submission does not propose a new benchmark-beating algorithm, its theoretical progress provides a meaningful and well-grounded explanatory framework. The remaining reviewer reservations centered primarily on practical utility rather than technical correctness, with general alignment that the strengths now outweigh the weaknesses.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.