Memorized Images in Diffusion Models share a Subspace that can be Located and Deleted

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chavhan, Ruchika, Bohdal, Ondrej, Zong, Yongshuo, Li, Da, Hospedales, Timothy
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929401357139968
author Chavhan, Ruchika
Bohdal, Ondrej
Zong, Yongshuo
Li, Da
Hospedales, Timothy
author_facet Chavhan, Ruchika
Bohdal, Ondrej
Zong, Yongshuo
Li, Da
Hospedales, Timothy
contents Large-scale text-to-image diffusion models excel in generating high-quality images from textual inputs, yet concerns arise as research indicates their tendency to memorize and replicate training data, raising We also addressed the issue of memorization in diffusion models, where models tend to replicate exact training samples raising copyright infringement and privacy issues. Efforts within the text-to-image community to address memorization explore causes such as data duplication, replicated captions, or trigger tokens, proposing per-prompt inference-time or training-time mitigation strategies. In this paper, we focus on the feed-forward layers and begin by contrasting neuron activations of a set of memorized and non-memorized prompts. Experiments reveal a surprising finding: many different sets of memorized prompts significantly activate a common subspace in the model, demonstrating, for the first time, that memorization in the diffusion models lies in a special subspace. Subsequently, we introduce a novel post-hoc method for editing pre-trained models, whereby memorization is mitigated through the straightforward pruning of weights in specialized subspaces, avoiding the need to disrupt the training or inference process as seen in prior research. Finally, we demonstrate the robustness of the pruned model against training data extraction attacks, thereby unveiling new avenues for a practical and one-for-all solution to memorization.
format Preprint
id arxiv_https___arxiv_org_abs_2406_18566
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Memorized Images in Diffusion Models share a Subspace that can be Located and Deleted
Chavhan, Ruchika
Bohdal, Ondrej
Zong, Yongshuo
Li, Da
Hospedales, Timothy
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
Large-scale text-to-image diffusion models excel in generating high-quality images from textual inputs, yet concerns arise as research indicates their tendency to memorize and replicate training data, raising We also addressed the issue of memorization in diffusion models, where models tend to replicate exact training samples raising copyright infringement and privacy issues. Efforts within the text-to-image community to address memorization explore causes such as data duplication, replicated captions, or trigger tokens, proposing per-prompt inference-time or training-time mitigation strategies. In this paper, we focus on the feed-forward layers and begin by contrasting neuron activations of a set of memorized and non-memorized prompts. Experiments reveal a surprising finding: many different sets of memorized prompts significantly activate a common subspace in the model, demonstrating, for the first time, that memorization in the diffusion models lies in a special subspace. Subsequently, we introduce a novel post-hoc method for editing pre-trained models, whereby memorization is mitigated through the straightforward pruning of weights in specialized subspaces, avoiding the need to disrupt the training or inference process as seen in prior research. Finally, we demonstrate the robustness of the pruned model against training data extraction attacks, thereby unveiling new avenues for a practical and one-for-all solution to memorization.
title Memorized Images in Diffusion Models share a Subspace that can be Located and Deleted
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2406.18566