Detect AI model's memory leaks by measuring probability landscape sharpness
This paper introduces a geometric framework to detect memorization in diffusion models by analyzing Hessian eigenvalues of log probability density. Sharp peaks in probability landscapes, indicated by large negative eigenvalues, reveal memorized content.
-----
https://arxiv.org/abs/2412.04140
π Original Problem:
β Diffusion models can memorize training data instead of generalizing, risking privacy violations and model reliability.
β Existing detection methods are computationally intensive and lack theoretical foundations.
-----
π οΈ Solution in this Paper:
β The framework analyzes Hessian eigenvalues of log probability density to detect memorization.
β Large negative eigenvalues indicate sharp peaks in probability landscapes, signaling memorized content.
β The number of positive eigenvalues quantifies memorization degree and distinguishes between template and matching verbatim cases.
β For high-dimensional models like Stable Diffusion, Arnoldi iteration efficiently computes eigenvalues without explicit Hessian formation.
-----
π‘ Key Insights:
β Memorization creates isolated points in learned probability distributions
β Sharp probability landscapes correlate with memorized content
β Early detection possible through eigenvalue analysis
β Different verbatim types show distinct eigenvalue patterns
-----
π Results:
β Successfully detected memorization in 2D Gaussian, MNIST, and Stable Diffusion models
β Distinguished between matching verbatim (exact copies) and template verbatim (style copies)
β Identified memorization at early sampling stages with high precision










