English

StyleKeeper: Prevent Content Leakage using Negative Visual Query Guidance

Computer Vision and Pattern Recognition 2025-10-09 v1

Abstract

In the domain of text-to-image generation, diffusion models have emerged as powerful tools. Recently, studies on visual prompting, where images are used as prompts, have enabled more precise control over style and content. However, existing methods often suffer from content leakage, where undesired elements of the visual style prompt are transferred along with the intended style. To address this issue, we 1) extend classifier-free guidance (CFG) to utilize swapping self-attention and propose 2) negative visual query guidance (NVQG) to reduce the transfer of unwanted contents. NVQG employs negative score by intentionally simulating content leakage scenarios that swap queries instead of key and values of self-attention layers from visual style prompts. This simple yet effective method significantly reduces content leakage. Furthermore, we provide careful solutions for using a real image as visual style prompts. Through extensive evaluation across various styles and text prompts, our method demonstrates superiority over existing approaches, reflecting the style of the references, and ensuring that resulting images match the text prompts. Our code is available \href{https://github.com/naver-ai/StyleKeeper}{here}.

Cite

@article{arxiv.2510.06827,
  title  = {StyleKeeper: Prevent Content Leakage using Negative Visual Query Guidance},
  author = {Jaeseok Jeong and Junho Kim and Gayoung Lee and Yunjey Choi and Youngjung Uh},
  journal= {arXiv preprint arXiv:2510.06827},
  year   = {2025}
}

Comments

Accepted to ICCV 2025; CVPRW AI4CC 2024 (Best Paper + Oral)

R2 v1 2026-07-01T06:23:26.656Z