Exploring Local Memorization in Diffusion Models via Bright Ending Attention
Chen Chen, Daochang Liu, Mubarak Shah, Chang Xu
Abstract
Text-to-image diffusion models have achieved unprecedented proficiency in generating realistic images. However, their inherent tendency to memorize and replicate training data during inference raises significant concerns, including potential copyright infringement. In response, various methods have been proposed to evaluate, detect, and mitigate memorization. Our analysis reveals that existing approaches significantly underperform in handling local memorization, where only specific image regions are memorized, compared to global memorization, where the entire image is replicated. Also, they cannot locate the local memorization regions, making it hard to investigate locally. To address these, we identify a novel "bright ending" (BE) anomaly in diffusion models prone to memorizing training images. BE refers to a distinct cross-attention pattern observed in text-to-image diffusion models, where memorized image patches exhibit significantly greater attention to the final text token during the last inference step than non-memorized patches. This pattern highlights regions where the generated image replicates training data and enables efficient localization of memorized regions. Equipped with this, we propose a simple yet effective method to integrate BE into existing frameworks, significantly improving their performance by narrowing the performance gap caused by local memorization. Our results not only validate the successful execution of the new localization task but also establish new state-of-the-art performance across all existing tasks, underscoring the significance of the BE phenomenon.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
9 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
- High-Resolution Image Synthesis with Latent Diffusion Models cites Extracting Training Data from Large Language Models
- Generalization of Diffusion Models Arises with a Balanced Representation Space cites High-Resolution Image Synthesis with Latent Diffusion Models
- Generalization of Diffusion Models Arises with a Balanced Representation Space cites Denoising Diffusion Probabilistic Models
- Reconstructing Template-Memorized Images from Natural Prompts cites Deduplicating Training Data Makes Language Models Better
- Reconstructing Template-Memorized Images from Natural Prompts cites Extracting Training Data from Large Language Models
- Adjusting Initial Noise to Mitigate Memorization in Text-to-Image Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
- Adjusting Initial Noise to Mitigate Memorization in Text-to-Image Diffusion Models cites Denoising Diffusion Probabilistic Models
- Adjusting Initial Noise to Mitigate Memorization in Text-to-Image Diffusion Models cites Extracting Training Data from Large Language Models
- Improved Denoising Diffusion Probabilistic Models cites Denoising Diffusion Probabilistic Models
- Detecting and Mitigating Memorization in Diffusion Models through Anisotropy of the Log-Probability cites High-Resolution Image Synthesis with Latent Diffusion Models
- Detecting and Mitigating Memorization in Diffusion Models through Anisotropy of the Log-Probability cites Denoising Diffusion Probabilistic Models
- Demystifying Foreground-Background Memorization in Diffusion Models cites High-Resolution Image Synthesis with Latent Diffusion Models
- Demystifying Foreground-Background Memorization in Diffusion Models cites Extracting Training Data from Large Language Models
- Deduplicating Training Data Makes Language Models Better cites Extracting Training Data from Large Language Models
Cited by top-tier papers9
- Generalization of Diffusion Models Arises with a Balanced Representation SpaceZekai Zhang, Xiao Li, Xiang Li, Lianghe Shi et al.ICLR 2026 · 14 citations
- Adjusting Initial Noise to Mitigate Memorization in Text-to-Image Diffusion ModelsHyeonggeun Han, Sehwan Kim, Hyungjun Joo, Sangwoo Hong et al.NeurIPS 2025 · 7 citations
- Detecting and Mitigating Memorization in Diffusion Models through Anisotropy of the Log-ProbabilityRohan Asthana, Vasileios BelagiannisICLR 2026 · 3 citations
- Reconstructing Template-Memorized Images from Natural PromptsSol Yarkoni, Mahmood Sharif, Roi LivniICML 2026 · 1 citation
- Demystifying Foreground-Background Memorization in Diffusion ModelsJimmy Z. Di, Yiwei Lu, Yaoliang Yu, Gautam Kamath et al.AAAI 2026 · 1 citation
Builds on13
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
- Improved Denoising Diffusion Probabilistic ModelsAlexander Quinn Nichol, Prafulla DhariwalICML 2021 · 5,234 citations
- Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski et al.USENIX Security 2021 · 2,866 citations
- Deduplicating Training Data Makes Language Models BetterKatherine Lee, Daphne Ippolito, Andrew Nystrom, Chiyuan Zhang et al.ACL 2022 · 844 citations
Related papers
- Finding DoRI: Discovery of Retained Images in Diffusion ModelsAntoni Kowalczuk, Dominik Hintersdorf, Lukas Struppek, Kristian Kersting et al.ICML 2026
- You Don’t Need All That Attention: Surgical Memorization Mitigation in Text-to-Image Diffusion ModelsKairan Zhao, Eleni Triantafillou, Peter TriantafillouICML 2026
- Finding NeMo: Localizing Neurons Responsible For Memorization in Diffusion ModelsDominik Hintersdorf, Lukas Struppek, Kristian Kersting, Adam Dziedzic et al.NeurIPS 2024 · 46 citations
- Detecting, Explaining, and Mitigating Memorization in Diffusion ModelsYuxin Wen, Yuchen Liu, Chen Chen, Lingjuan LyuICLR 2024 · 103 citations
- Broken Memories: Detecting and Mitigating Memorization in Diffusion Models with Degraded GenerationsYuanmin Huang, Mi Zhang, Chen Chen, Feifei Li et al.KDD 2026
