Saved in:
Bibliographic Details
Main Authors: Zhang, Lingyun, Xie, Yu, Fu, Yanwei, Chen, Ping
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2412.01244
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929611328192512
author Zhang, Lingyun
Xie, Yu
Fu, Yanwei
Chen, Ping
author_facet Zhang, Lingyun
Xie, Yu
Fu, Yanwei
Chen, Ping
contents As large-scale diffusion models continue to advance, they excel at producing high-quality images but often generate unwanted content, such as sexually explicit or violent content. Existing methods for concept removal generally guide the image generation process but can unintentionally modify unrelated regions, leading to inconsistencies with the original model. We propose a novel approach for targeted concept replacing in diffusion models, enabling specific concepts to be removed without affecting non-target areas. Our method introduces a dedicated concept localizer for precisely identifying the target concept during the denoising process, trained with few-shot learning to require minimal labeled data. Within the identified region, we introduce a training-free Dual Prompts Cross-Attention (DPCA) module to substitute the target concept, ensuring minimal disruption to surrounding content. We evaluate our method on concept localization precision and replacement efficiency. Experimental results demonstrate that our method achieves superior precision in localizing target concepts and performs coherent concept replacement with minimal impact on non-target areas, outperforming existing approaches.
format Preprint
id arxiv_https___arxiv_org_abs_2412_01244
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Concept Replacer: Replacing Sensitive Concepts in Diffusion Models via Precision Localization
Zhang, Lingyun
Xie, Yu
Fu, Yanwei
Chen, Ping
Computer Vision and Pattern Recognition
As large-scale diffusion models continue to advance, they excel at producing high-quality images but often generate unwanted content, such as sexually explicit or violent content. Existing methods for concept removal generally guide the image generation process but can unintentionally modify unrelated regions, leading to inconsistencies with the original model. We propose a novel approach for targeted concept replacing in diffusion models, enabling specific concepts to be removed without affecting non-target areas. Our method introduces a dedicated concept localizer for precisely identifying the target concept during the denoising process, trained with few-shot learning to require minimal labeled data. Within the identified region, we introduce a training-free Dual Prompts Cross-Attention (DPCA) module to substitute the target concept, ensuring minimal disruption to surrounding content. We evaluate our method on concept localization precision and replacement efficiency. Experimental results demonstrate that our method achieves superior precision in localizing target concepts and performs coherent concept replacement with minimal impact on non-target areas, outperforming existing approaches.
title Concept Replacer: Replacing Sensitive Concepts in Diffusion Models via Precision Localization
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2412.01244