Saved in:
Bibliographic Details
Main Authors: Liu, Yufan, An, Jinyang, Zhang, Wanqian, Li, Ming, Wu, Dayan, Gu, Jingzi, Lin, Zheng, Wang, Weiping
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.09140
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910646204891136
author Liu, Yufan
An, Jinyang
Zhang, Wanqian
Li, Ming
Wu, Dayan
Gu, Jingzi
Lin, Zheng
Wang, Weiping
author_facet Liu, Yufan
An, Jinyang
Zhang, Wanqian
Li, Ming
Wu, Dayan
Gu, Jingzi
Lin, Zheng
Wang, Weiping
contents The remarkable development of text-to-image generation models has raised notable security concerns, such as the infringement of portrait rights and the generation of inappropriate content. Concept erasure has been proposed to remove the model's knowledge about protected and inappropriate concepts. Although many methods have tried to balance the efficacy (erasing target concepts) and specificity (retaining irrelevant concepts), they can still generate abundant erasure concepts under the steering of semantically related inputs. In this work, we propose RealEra to address this "concept residue" issue. Specifically, we first introduce the mechanism of neighbor-concept mining, digging out the associated concepts by adding random perturbation into the embedding of erasure concept, thus expanding the erasing range and eliminating the generations even through associated concept inputs. Furthermore, to mitigate the negative impact on the generation of irrelevant concepts caused by the expansion of erasure scope, RealEra preserves the specificity through the beyond-concept regularization. This makes irrelevant concepts maintain their corresponding spatial position, thereby preserving their normal generation performance. We also employ the closed-form solution to optimize weights of U-Net for the cross-attention alignment, as well as the prediction noise alignment with the LoRA module. Extensive experiments on multiple benchmarks demonstrate that RealEra outperforms previous concept erasing methods in terms of superior erasing efficacy, specificity, and generality. More details are available on our project page https://realerasing.github.io/RealEra/ .
format Preprint
id arxiv_https___arxiv_org_abs_2410_09140
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle RealEra: Semantic-level Concept Erasure via Neighbor-Concept Mining
Liu, Yufan
An, Jinyang
Zhang, Wanqian
Li, Ming
Wu, Dayan
Gu, Jingzi
Lin, Zheng
Wang, Weiping
Computer Vision and Pattern Recognition
The remarkable development of text-to-image generation models has raised notable security concerns, such as the infringement of portrait rights and the generation of inappropriate content. Concept erasure has been proposed to remove the model's knowledge about protected and inappropriate concepts. Although many methods have tried to balance the efficacy (erasing target concepts) and specificity (retaining irrelevant concepts), they can still generate abundant erasure concepts under the steering of semantically related inputs. In this work, we propose RealEra to address this "concept residue" issue. Specifically, we first introduce the mechanism of neighbor-concept mining, digging out the associated concepts by adding random perturbation into the embedding of erasure concept, thus expanding the erasing range and eliminating the generations even through associated concept inputs. Furthermore, to mitigate the negative impact on the generation of irrelevant concepts caused by the expansion of erasure scope, RealEra preserves the specificity through the beyond-concept regularization. This makes irrelevant concepts maintain their corresponding spatial position, thereby preserving their normal generation performance. We also employ the closed-form solution to optimize weights of U-Net for the cross-attention alignment, as well as the prediction noise alignment with the LoRA module. Extensive experiments on multiple benchmarks demonstrate that RealEra outperforms previous concept erasing methods in terms of superior erasing efficacy, specificity, and generality. More details are available on our project page https://realerasing.github.io/RealEra/ .
title RealEra: Semantic-level Concept Erasure via Neighbor-Concept Mining
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2410.09140