NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Finding DoRI: Discovery of Retained Images in Diffusion Models

Antoni Kowalczuk, Dominik Hintersdorf, Lukas Struppek, Kristian Kersting, Adam Dziedzic, Franziska Boenisch

TL;DR

This paper introduces DORI, a method that challenges the assumption that memorization in diffusion models is localized. They demonstrate that existing pruning-based defenses are fragile and can be bypassed, suggesting that memorization is more distributed than previously thought. This work paves the way for more robust methods to protect privacy and intellectual property in generative AI.

What Problem Does This Paper Address?

Text-to-image diffusion models (DMs) are incredibly powerful, but they have a concerning tendency to "memorize" and reproduce training data verbatim. This raises significant privacy and intellectual property concerns, especially for sensitive or copyrighted content. Current mitigation strategies often focus on identifying and pruning specific model weights believed to be responsible for this memorization. However, these methods often rely on the assumption that memorization is "local" – meaning it's confined to a small, identifiable set of weights. This paper questions that assumption, investigating whether these defenses are truly effective or just mask the problem.

Methods

The core of this paper is the DORI (Discovery of Retained Images) method. DORI works by crafting adversarial text embeddings. Instead of using natural language prompts, DORI uses continuous optimization in the text embedding space to find inputs that can trigger the generation of memorized images, even after existing mitigation techniques have been applied. This allows the authors to probe the model's internal state and reveal the limitations of current defenses.

They also propose an adversarial fine-tuning approach. This method leverages DORI to generate adversarial embeddings and then fine-tunes the entire DM. The goal is to teach the model to generate semantically similar images (using surrogate images) rather than exact replicas of memorized data, effectively removing the memorized content without sacrificing general utility.

Datasets

  • LAION-5B (specifically LAION2B-en and LAION aesthetics subset): Used for training and as a source for memorized prompts.
  • COCO2014: Used for generating non-memorized images to test the robustness of DORI and to preserve model utility during fine-tuning.

Key Insights and Ideas

  • Memorization is not local: The paper provides strong evidence that memorization in DMs is not confined to specific weights or layers. Triggers for memorized images are distributed across the text embedding space, and different triggers can lead to the same memorized image via divergent internal model activations.
  • Pruning-based defenses are fragile: Existing methods like NeMo and Wanda, which prune weights, are shown to be easily bypassed by adversarial embeddings. They merely "conceal" memorization rather than truly remove it.
  • Adversarial fine-tuning offers robust mitigation: By abandoning the locality assumption and using adversarial embeddings, the authors demonstrate a more effective way to permanently remove memorized content from DMs.
  • Evaluation needs to be adversarial: The paper highlights the importance of evaluating memorization mitigation strategies against diverse and adversarial triggers, not just original prompts.

Key Results

  • DORI can successfully trigger the replication of memorized images even after pruning-based mitigation (NeMo, Wanda), demonstrating the fragility of these methods.
  • Adversarial embeddings can be found across the entire text embedding space, not just near original prompts, indicating a lack of locality.
  • The proposed adversarial fine-tuning method significantly reduces memorization rates (e.g., MR drops to 0.02 for VM prompts) while preserving or even improving model utility (FID scores improve).
  • Existing concept unlearning methods (ESD, Concept Ablation) are shown to be ineffective against adversarial triggers for memorization mitigation.

Limitations and Future Work

  • Model Scope: The study primarily focuses on Stable Diffusion v1.4 due to the availability of known memorized prompts. Generalizing these findings to other DMs is an area for future work.
  • Computational Cost: While more robust, adversarial fine-tuning is computationally more expensive than pruning-based methods. The authors suggest exploring more efficient mitigation strategies.
  • Misuse Potential: The authors acknowledge that DORI, as an assessment tool, could theoretically be misused, but deem such scenarios unlikely due to strong access requirements.
  • Future Directions: The paper suggests exploring more efficient mitigation strategies and further investigating the fundamental nature of memorization in DMs. The findings also have implications for membership inference attacks.

Summary updated

BibTeX
@inproceedings{kowalczuk2026finding,
  author = {Antoni Kowalczuk and Dominik Hintersdorf and Lukas Struppek and Kristian Kersting and Adam Dziedzic and Franziska Boenisch},
  title = {{Finding DoRI: Discovery of Retained Images in Diffusion Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=F3uCTULtDZ},
}
Figure