Less is More: Masking Elements in Image Condition Features Avoids Content Leakages in Style Transfer Diffusion Models

Lin Zhu, Xinbing Wang, Chenghu Zhou, Qinying Gu, Nanyang Ye
2/11/2025
cs.CV

No official code found. Best implementation: LinLLLL/MaskST (53 stars, last commit 2025-07-03).

Abstract

Given a style-reference image as the additional image condition, text-to-image diffusion models have demonstrated impressive capabilities in generating images that possess the content of text prompts while adopting the visual style of the reference image. However, current state-of-the-art methods often struggle to disentangle content and style from style-reference images, leading to issues such as content leakages. To address this issue, we propose a masking-based method that efficiently decouples content from style without the need of tuning any model parameters. By simply masking specific elements in the style reference's image features, we uncover a critical yet under-explored principle: guiding with appropriately-selected fewer conditions (e.g., dropping several image feature elements) can efficiently avoid unwanted content flowing into the diffusion models, enhancing the style transfer performances of text-to-image diffusion models. In this paper, we validate this finding both theoretically and experimentally. Extensive experiments across various styles demonstrate the effectiveness of our masking-based method and support our theoretical results.

View on arXivView PDF

Code Implementations(1)

LinLLLL/MaskSTCommunity100%

[ICLR2025] The official implementation of Less is More: Masking Elements in Image Condition Features Avoids Content Leakages in Style Transfer Diffusion Models

530Shell, PythonFeb 13, 20251 years ago

Similar Papers

Cite this paper

@article{zhu2025less,
  title  = {Less is More: Masking Elements in Image Condition Features Avoids Content Leakages in Style Transfer Diffusion Models},
  author = {Lin Zhu and Xinbing Wang and Chenghu Zhou and Qinying Gu and Nanyang Ye},
  year   = {2025},
  eprint = {2502.07466},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.07466v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.07466.svg)](https://codeofpaper.com/paper/2502.07466)

Discussion