Abstract
Diffusion models have achieved remarkable success in Text-to-Image generation tasks, leading to the development of many commercial models. However, recent studies have reported that diffusion models often repeatedly generate memorized images in train data when triggered by specific prompts, potentially raising social issues ranging from copyright to privacy concerns. To sidestep the memorization, recent studies have been conducted to develop memorization mitigation methods for diffusion models. Nevertheless, the lack of benchmarks hinders the assessment of the true effectiveness of these methods. In this work, we present MemBench, the first benchmark for evaluating image memorization mitigation methods. Our benchmark includes a large number of memorized image trigger prompts in various Text-to-Image diffusion models. Furthermore, in contrast to the prior work evaluating mitigation performance only on trigger prompts, we present metrics evaluating on both trigger prompts and general prompts, so that we can see whether mitigation methods address the memorization issue while maintaining performance for general prompts. Through our MemBench evaluation, we revealed that existing memorization mitigation methods notably degrade the overall performance of diffusion models and need to be further developed.
Introduction: The Memorization Challenge
While diffusion models excel at generating novel imagery, they are prone to "memorization"—the exact or near-exact reproduction of training data when triggered by specific prompts. This phenomenon presents significant risks regarding copyright infringement (e.g., reproducing iconic photographs) and data privacy. Despite the development of various mitigation strategies, the field has lacked a standardized, large-scale benchmark to evaluate their effectiveness. Existing evaluations often rely on small, ad-hoc datasets that fail to measure whether a mitigation method degrades the model's general creative performance.
Methodology
To address this, we developed a robust pipeline for identifying and verifying memorized prompts:
- MCMC Trigger Prompt Search: We utilize a Markov Chain Monte Carlo (MCMC) algorithm with Gibbs sampling to explore the token space. By using a metric ($d_\theta$) that measures the influence of a text prompt on noise prediction as an energy function, we can efficiently identify prompts likely to trigger memorization without requiring access to private training data.
- Verification Pipeline: Candidate prompts are validated through image generation, DBSCAN clustering, and the SSCD copy-detection metric. Finally, Reverse Image Search APIs confirm the existence of these images in the real world.
- Balanced Evaluation: We assess models across two scenarios: the Trigger Prompt Scenario (mitigation effectiveness) and the General Prompt Scenario (maintenance of standard performance using the COCO validation set).
The MemBench Dataset
MemBench is the first comprehensive benchmark of its kind, featuring over 6,000 trigger prompts across multiple models, including Stable Diffusion 1.4, 2.1, DeepFloydIF, and Realistic Vision.
As shown in the visualization, MemBench covers a wide array of categories, including commercial products, human subjects, and artwork. The SSCD histograms highlight that MemBench provides a much denser and more varied distribution of memorized instances compared to previous efforts like Webster, offering a more rigorous testing ground for mitigation algorithms.
Key Insights and Results
Our evaluation of existing mitigation methods revealed several critical findings:
- The Aesthetic Sacrifice: Current mitigation techniques, such as adding noise to text embeddings, often act as "blunt instruments." While they reduce memorization, they significantly degrade the model's Aesthetic Score, resulting in distorted or low-quality outputs that are impractical for real-world use.
- Deceptive Metrics: We found that FID (Fréchet Inception Distance) can be misleading in this context. A mitigation method might improve FID by increasing diversity, even if the resulting images are nonsensical. We argue that Aesthetic Score and CLIP Score (text alignment) are more reliable indicators of model utility.
- Layout Duplication: Memorization persists even in models where exact duplicates were removed from training. This suggests that models memorize structural "templates" or layouts shared across many different training images, leading to structural plagiarism.
- Commercial Leakage: Our search discovered that models have memorized specific commercial products currently for sale, such as branded apparel and home goods, confirming that T2I models can inadvertently act as a search engine for copyrighted product catalogs.
Conclusion
MemBench provides a necessary foundation for the rigorous evaluation of memorization mitigation in diffusion models. Our results indicate that current methods are insufficient, as they often compromise the model's core generative capabilities to achieve safety. Future research must focus on "surgical" mitigation techniques that can neutralize specific memorized triggers without collateral damage to general performance. We intend for MemBench to remain a living dataset, updated as new models are released to the public.
Summary updated