Identifying Memorization of Diffusion Models through p-Laplace Analysis
Jonathan Brokman, Amit Giloni, Omer Hofman, Roman Vainshtein, Hisashi Kojima, Guy Gilboa
TL;DR
Using a diffusion-model score, the paper develops a numerical scheme to approximate the $p$-Laplace operator $\Delta_p u$ of the log-density $u=\log p$ and leverages it to detect memorized samples in learned distributions. They propose two formulations, volume and boundary integrals, and show the boundary-based $1$-Laplace estimator is most robust for capturing memorized samples. Through experiments on a Gaussian mixture and a large-scale image-diffusion model (Stable Diffusion v1.4), they demonstrate that memorized prompts produce distinctive low $p$-Laplace values, enabling reliable memorization detection. The results provide a new geometric lens on memorization and a practical diagnostic for privacy-sensitive diffusion-based generation systems.
Abstract
Diffusion models, today's leading image generative models, estimate the score function, i.e. the gradient of the log probability of (perturbed) data samples, without direct access to the underlying probability distribution. This work investigates whether the estimated score function can be leveraged to compute higher-order differentials, namely p-Laplace operators. We show here these operators can be employed to identify memorized training data. We propose a numerical p-Laplace approximation based on the learned score functions, showing its effectiveness in identifying key features of the probability landscape. We analyze the structured case of Gaussian mixture models, and demonstrate the results carry-over to image generative models, where memorization identification based on the p-Laplace operator is performed for the first time.
