Localizing Memorized Regions in Diffusion Models via Coordinate-Wise Curvature Differences

Gwangho Kim, Sungyoon Lee
5/26/2026
cs.LG

Official code: Gwangho99/mem-curv-diff (0 stars, last commit 2026-05-15).

Abstract

Diffusion models can unintentionally memorize training samples, raising concerns about privacy and copyright. While recent methods can detect memorization, they often rely on global or model-specific signals and provide limited insight into where memorization appears within a generated image. We provide a geometric characterization of local memorization as a coordinate-wise variance collapse. However, such collapse can also arise from intrinsic data constraints rather than overfitting. To isolate overfitting-driven memorization, we propose curvature-difference methods that subtract the curvature of an underfitted baseline, either the unconditional model or a less-trained version of itself. We further derive a score-difference proxy that provides a geometric explanation for the widely used score-difference-based detection metric. Experiments on Stable Diffusion, evaluated against ground-truth memorization masks, show that our method outperforms the prior attention-based localization method. Code is available at https://github.com/Gwangho99/mem-curv-diff.

View on arXivView PDF

Code Implementations(1)

Official repo for Localizing Memorized Regions in Diffusion Models via Coordinate-Wise Curvature Differences (ICML 2026)

00Shell, PythonMay 13, 20265 months ago

Cite this paper

@article{kim2026localizing,
  title  = {Localizing Memorized Regions in Diffusion Models via Coordinate-Wise Curvature Differences},
  author = {Gwangho Kim and Sungyoon Lee},
  year   = {2026},
  eprint = {2605.26756},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.26756v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.26756.svg)](https://codeofpaper.com/paper/2605.26756)

Discussion