Detecting Memorization in Diffusion Models via Score Evolution
Abstract
Detecting training data memorization in diffusion models is important for copyright protection and privacy auditing. We view memorization as a highly localized concentration process: during reverse-time generation, a memorized instance acts as a point-like attractor whose probability basin is sharper and more sensitive to spatial perturbations than that of a generalized concept. Starting from the Fokker-Planck equation, we derive an exact score-evolution law linking temporal concentration dynamics to local curvature. We then show that standard sampling along a shared guided trajectory already exposes this curvature information through a complementary transport-curvature response, without requiring explicit Hessian computation. Motivated by this analysis, we propose the Dynamical Singularity Metric (DSM), an on-trajectory detector that measures changes in the conditional-unconditional score gap between consecutive sampling steps. DSM requires no additional backpropagation or network evaluations beyond sampling itself. Experiments on Stable Diffusion show that DSM is competitive with curvature-based baselines at substantially lower computational cost.