mlsanityData to 14 Oct 2026

Finding NeMo: Localizing Neurons Responsible For Memorization in Diffusion Models

arXiv 2406.02366 ↗First posted 4 Jun 2024cs.LG cs.AIcited by 37

On the map: Diffusion models → Diffusion foundations and sampling

Abstract (arXiv)

Diffusion models (DMs) produce very detailed and high-quality images. Their power results from extensive training on large amounts of data, usually scraped from the internet without proper attribution or consent from content creators. Unfortunately, this practice raises privacy and intellectual property concerns, as DMs can memorize and later reproduce their potentially sensitive or copyrighted training images at inference time. Prior efforts prevent this issue by either changing the input to the diffusion process, thereby preventing the DM from generating memorized samples during inference, or removing the memorized data from training altogether. While those are viable solutions when the DM is developed and deployed in a secure and constantly monitored environment, they hold the risk of adversaries circumventing the safeguards and are not effective when the DM itself is publicly released. To solve the problem, we introduce NeMo, the first method to localize memorization of individual data samples down to the level of neurons in DMs' cross-attention layers. Through our experiments, we make the intriguing finding that in many cases, single neurons are responsible for memorizing particular training samples. By deactivating these memorization neurons, we can avoid the replication of training data at inference time, increase the diversity in the generated outputs, and mitigate the leakage of private and copyrighted data. In this way, our NeMo contributes to a more responsible deployment of DMs.

Key facts. Cited by 37 papers in the map (data through 14 Oct 2026). Placed in Diffusion foundations and sampling, one of 14 directions in Diffusion models. Builds on 40 of its 51 references that are in the map. First posted on arXiv 4 Jun 2024.

Builds on

40 of 51 references.

Closest ancestors · 8

Same direction, newest first

  1. 2024Unveiling and Mitigating Memorization in Text-to-image Diffusion Models through Cross Attention17 Mar
  2. 2023Intriguing Properties of Data Attribution on Diffusion Models1 Nov
  3. 2023On Memorization in Diffusion Models4 Oct
  4. 2023Understanding and Mitigating Copying in Diffusion Models31 May
  5. 2023Structural Pruning for Diffusion Models18 May
  6. 2021High-Resolution Image Synthesis with Latent Diffusion Models20 Dec
  7. 2020Denoising Diffusion Probabilistic Models19 Jun
  8. 2020Improved Techniques for Training Score-Based Generative Models16 Jun

Other references · 32

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  4. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
  5. 2014Microsoft COCO: Common Objects in Contextcited by 17,608
  6. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
  7. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,355
  8. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,152
  9. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,431
  10. 2020Extracting Training Data from Large Language Modelscited by 2,189
  11. 2016Understanding deep learning requires rethinking generalizationcited by 1,674
  12. 2018Demystifying MMD GANscited by 1,293
20 more
  1. 2017A Closer Look at Memorization in Deep Networkscited by 942
  2. 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 864
  3. 2022Quantifying Memorization Across Neural Language Modelscited by 763
  4. 2023Extracting Training Data from Diffusion Modelscited by 732
  5. 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 497
  6. 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 460
  7. 2023Unified Concept Editing in Diffusion Modelscited by 388
  8. 2023Training-Free Layout Control with Cross-Attention Guidancecited by 313
  9. 2022The Role of ImageNet Classes in Fr'echet Inception Distancecited by 213
  10. 2022A Self-Supervised Descriptor for Image Copy Detectioncited by 176
  11. 2023Cones: Concept Neurons in Diffusion Models for Customized Generationcited by 150
  12. 2021Deep Learning Through the Lens of Example Difficultycited by 141
  13. 2022The Privacy Onion Effect: Memorization is Relativecited by 136
  14. 2023Dynamic Prompt Learning: Addressing Cross-Attention Leakage for Text-Based Image Editingcited by 76
  15. 2021On the geometry of generalization and memorization in deep neural networkscited by 73
  16. 2023Can Neural Network Memorization Be Localized?cited by 69
  17. 2023A Reproducible Extraction of Training Images from Diffusion Modelscited by 61
  18. 2022Plug & Play Attacks: Towards Robust and Flexible Model Inversion Attackscited by 60
  19. 2023Do SSL Models Have D'ej`a Vu? A Case of Unintended Memorization in Self-supervised Learningcited by 19
  20. 2024Memorization in Self-Supervised Learning Improves Downstream Generalizationcited by 18

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 5; 2025: 20; 2026: 12.

37 papers.

Sort:

By area:

  1. 2024Explainable and Interpretable Multimodal Large Language Models: A Comprehensive Surveycited by 52
  2. 2024A Geometric Framework for Understanding Memorization in Generative Modelscited by 40
  3. 2025A Survey on Mechanistic Interpretability for Multi-Modal Foundation Modelscited by 34
  4. 2025Does Generation Require Memorization? Creative Diffusion Models using Ambient Diffusioncited by 17
  5. 2025Privacy Attacks on Image AutoRegressive Modelscited by 15
  6. 2025Generalization of Diffusion Models Arises with a Balanced Representation Spacecited by 11
  7. 2025Demystifying Diffusion Policies: Action Memorization and Simple Lookup Table Alternativescited by 9
  8. 2025Adjusting Initial Noise to Mitigate Memorization in Text-to-Image Diffusion Modelscited by 7
  9. 2025How Diffusion Models Memorizecited by 6
  10. 2025Precise Parameter Localization for Textual Generation in Diffusion Modelscited by 5
  11. 2024CollaFuse: Collaborative Diffusion Modelscited by 4
  12. 2025CopyJudge: Automated Copyright Infringement Identification and Mitigation in Text-to-Image Diffusion Modelscited by 4
25 more
  1. 2024Dual-Model Defense: Safeguarding Diffusion Models from Membership Inference Attacks through Disjoint Data Splittingcited by 3
  2. 2025Demystifying Foreground-Background Memorization in Diffusion Modelscited by 2
  3. 2024PSY: Posterior Sampling Based Privacy Enhancer in Large Language Modelscited by 1
  4. 2025A Closer Look on Memorization in Tabular Diffusion Model: A Data-Centric Perspectivecited by 1
  5. 2025Reconstructing Template-Memorized Images from Natural Promptscited by 1
  6. 2025Localizing and Mitigating Memorization in Image Autoregressive Modelscited by 1
  7. 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
  8. 2025Understanding Privacy Risks in Code Models Through Training Dynamics: A Causal Approachcited by 1
  9. 2025Dominant vs. Dominated: Concept-Level Generative Collapse in Diffusion Modelscited by 1
  10. 2026Steering Away from Memorization: Reachability-Constrained Reinforcement Learning for Text-to-Image Diffusioncited by 1
  11. 2026Batch Normalization Amplifies Memorization and Privacy Riskscited by 1
  12. 2025Redistribute Ensemble Training for Mitigating Memorization in Diffusion Modelscited by 0
  13. 2025FPAN: Mitigating Replication in Diffusion Models through the Fine-Grained Probabilistic Addition of Noise to Token Embeddingscited by 0
  14. 2025CAPTAIN: Semantic Feature Injection for Memorization Mitigation in Text-to-Image Diffusion Modelscited by 0
  15. 2025Beyond Memorization: Selective Learning for Copyright-Safe Diffusion Model Trainingcited by 0
  16. 2026Memorization In Stable Diffusion Is Unexpectedly Driven by CLIP Embeddingscited by 0
  17. 2026Filtering Memorization from Parameter-Space in Diffusion Modelscited by 0
  18. 2026Adynamical systems view of training generativemodels and the memorization phenomenoncited by 0
  19. 2026Localizing Memorized Regions in Diffusion Models via Coordinate-Wise Curvature Differencescited by 0
  20. 2026NAMESAKES: Probing Identity Memorization in Text-to-Image Modelscited by 0
  21. 2026Fingerprinting Text-to-Image Diffusion Models via Collapsed Generationcited by 0
  22. 2026IP Protection in the Era of Visual Generative AI: A Surveycited by 0
  23. 2026Background Gradients Shape Memorization in Flow Matchingcited by 0
  24. 2026From Modes to Memories: Characterizing the Scale-Space Dynamics of Diffusion Modelscited by 0
  25. 2026Rethinking Memorization Mitigation in Diffusion Models: Reinforcing Text Conditioningcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Memorized Images in Diffusion Models share a Subspace that can be Located and Deleted
  2. 2024Exploring Local Memorization in Diffusion Models via Bright Ending Attention
  3. 2025Finding DoRI: Discovery of Retained Images in Diffusion Models
  4. 2025On the Edge of Memorization in Diffusion Models
  5. 2026Local Coverage Governs Memorization in Diffusion Models
  6. 2024An Inversion-based Measure of Memorization for Diffusion Models
  7. 2024Classifier-Free Guidance inside the Attraction Basin May Cause Memorization
  8. 2025Provable Separations between Memorization and Generalization in Diffusion Models