Classifier-Free Guidance inside the Attraction Basin May Cause Memorization

Anubhav Jain, Yuya Kobayashi, Takashi Shibuya, Yuhta Takida, Nasir Memon +2 more
11/23/2024
cs.CVcs.AIcs.LG

No official code found. Best implementation: SonyResearch/mitigating_memorization (3 stars, MIT, last commit 2025-03-13). 1 more below.

Abstract

Diffusion models are prone to exactly reproduce images from the training data. This exact reproduction of the training data is concerning as it can lead to copyright infringement and/or leakage of privacy-sensitive information. In this paper, we present a novel perspective on the memorization phenomenon and propose a simple yet effective approach to mitigate it. We argue that memorization occurs because of an attraction basin in the denoising process which steers the diffusion trajectory towards a memorized image. However, this can be mitigated by guiding the diffusion trajectory away from the attraction basin by not applying classifier-free guidance until an ideal transition point occurs from which classifier-free guidance is applied. This leads to the generation of non-memorized images that are high in image quality and well-aligned with the conditioning mechanism. To further improve on this, we present a new guidance technique, opposite guidance, that escapes the attraction basin sooner in the denoising process. We demonstrate the existence of attraction basins in various scenarios in which memorization occurs, and we show that our proposed approach successfully mitigates memorization.

View on arXivView PDF

Code Implementations(2)

Official codebase for the paper "Classifier-Free Guidance inside the Attraction Basin May Cause Memorization"

20PythonNov 19, 20241 years ago
MIT

[CVPR 2025] Classifier-Free Guidance inside the Attraction Basin May Cause Memorization

30PythonMar 3, 20251 years agoMIT

Similar Papers

Cite this paper

@article{jain2024classifierfree,
  title  = {Classifier-Free Guidance inside the Attraction Basin May Cause Memorization},
  author = {Anubhav Jain and Yuya Kobayashi and Takashi Shibuya and Yuhta Takida and Nasir Memon and Julian Togelius and Yuki Mitsufuji},
  year   = {2024},
  eprint = {2411.16738},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.16738v2},
  journal = {CVPR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.16738.svg)](https://codeofpaper.com/paper/2411.16738)

Discussion