Diffusion models sometimes memorize and reproduce regions of their training images. Addressing this problem is critical because unintended memorization creates legal liabilities, such as copyright infringement, and poses major privacy risks by leaking sensitive data. We aim to localize these regions. Existing contrast-based methods use the diagonal of the denoiser Jacobian, which reflects the posterior variance of each pixel. However, a small diagonal entry is ambiguous: it arises both from memorization and from averaging over many neighboring pixels in smooth regions. To resolve this ambiguity, these methods subtract a reference map, which requires a second evaluation with a null prompt or an earlier checkpoint. Unconditional models have no null prompt, and earlier checkpoints are rarely released. We show that Jacobian \emph{row sums} (JaRS), unlike the diagonal, separate memorization from local averaging without a reference map. Pairing JaRS with an image-level detection score computed from the JaRS map at an earlier denoising step yields JaRS+. Across Stable Diffusion v1.4 and v2.1, Realistic Vision v5.1, and an unconditional diffusion Transformer (DiT), JaRS+ outperforms contrast-based localization methods in 8 of 10 settings.
翻译:暂无翻译