Concept Corrector: Erase concepts on the fly for text-to-image diffusion models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Meng, Zheling, Peng, Bo, Jin, Xiaochuan, Lyu, Yueming, Wang, Wei, Dong, Jing, Tan, Tieniu
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908390487228416
author Meng, Zheling
Peng, Bo
Jin, Xiaochuan
Lyu, Yueming
Wang, Wei
Dong, Jing
Tan, Tieniu
author_facet Meng, Zheling
Peng, Bo
Jin, Xiaochuan
Lyu, Yueming
Wang, Wei
Dong, Jing
Tan, Tieniu
contents Text-to-image diffusion models have demonstrated the underlying risk of generating various unwanted content, such as sexual elements. To address this issue, the task of concept erasure has been introduced, aiming to erase any undesired concepts that the models can generate. Previous methods, whether training-based or training-free, have primarily focused on the input side, i.e., texts. However, they often suffer from incomplete erasure due to limitations in the generalization from limited prompts to diverse image content. In this paper, motivated by the notion that concept erasure on the output side, i.e., generated images, may be more direct and effective, we propose Concept Corrector. It checks target concepts based on visual features provided by final generated images predicted at certain time steps. Further, it incorporates Concept Removal Attention to erase generated concept features. It overcomes the limitations of existing methods, which are either unable to remove the concept features that have been generated in images or rely on the assumption that the related concept words are contained in input prompts. In the whole pipeline, our method changes no model parameters and only requires a given target concept as well as the corresponding replacement content, which is easy to implement. To the best of our knowledge, this is the first erasure method based on intermediate-generated images, achieving the ability to erase concepts on the fly. The experiments on various concepts demonstrate its impressive erasure performance.
format Preprint
id arxiv_https___arxiv_org_abs_2502_16368
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Concept Corrector: Erase concepts on the fly for text-to-image diffusion models
Meng, Zheling
Peng, Bo
Jin, Xiaochuan
Lyu, Yueming
Wang, Wei
Dong, Jing
Tan, Tieniu
Computer Vision and Pattern Recognition
Text-to-image diffusion models have demonstrated the underlying risk of generating various unwanted content, such as sexual elements. To address this issue, the task of concept erasure has been introduced, aiming to erase any undesired concepts that the models can generate. Previous methods, whether training-based or training-free, have primarily focused on the input side, i.e., texts. However, they often suffer from incomplete erasure due to limitations in the generalization from limited prompts to diverse image content. In this paper, motivated by the notion that concept erasure on the output side, i.e., generated images, may be more direct and effective, we propose Concept Corrector. It checks target concepts based on visual features provided by final generated images predicted at certain time steps. Further, it incorporates Concept Removal Attention to erase generated concept features. It overcomes the limitations of existing methods, which are either unable to remove the concept features that have been generated in images or rely on the assumption that the related concept words are contained in input prompts. In the whole pipeline, our method changes no model parameters and only requires a given target concept as well as the corresponding replacement content, which is easy to implement. To the best of our knowledge, this is the first erasure method based on intermediate-generated images, achieving the ability to erase concepts on the fly. The experiments on various concepts demonstrate its impressive erasure performance.
title Concept Corrector: Erase concepts on the fly for text-to-image diffusion models
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2502.16368