CleanStyle: Plug-and-Play Style Conditioning Purification for Text-to-Image Stylization
Organizations: AGI Lab, Westlake University
Abstract
Style transfer in diffusion models enables controllable visual generation by injecting the style of a reference image. However, recent encoder-based methods, while efficient and tuning-free, often suffer from content leakage, where semantic elements from the style image undesirably appear in the output, impairing prompt fidelity and stylistic consistency. In this work, we introduce CleanStyle, a plug-and-play framework that filters out content-related noise from the style embedding without retraining. Motivated by empirical analysis, we observe that such leakage predominantly stems from the tail components of the style embedding, which are isolated via Singular Value Decomposition (SVD). To address this, we propose CleanStyleSVD (CS-SVD), which dynamically suppresses tail components using a time-aware exponential schedule, providing clean, style-preserving conditional embeddings throughout the denoising process. Furthermore, we present Style-Specific Classifier-Free Guidance (SS-CFG), which reuses the suppressed tail components to construct style-aware unconditional inputs. Unlike conventional methods that use generic negative embeddings (e.g., zero vectors), SS-CFG introduces targeted negative signals that reflect style-specific but prompt-irrelevant visual elements. This enables the model to effectively suppress these distracting patterns during generation, thereby improving prompt fidelity and enhancing the overall visual quality of stylized outputs. Our approach is lightweight, interpretable, and can be seamlessly integrated into existing encoder-based diffusion models without retraining. Extensive experiments demonstrate that CleanStyle substantially reduces content leakage, improves stylization quality and improves prompt alignment across a wide range of style references and prompts.
Figures & tables
| Method | Text Align | Style Sim | IQ |
|---|---|---|---|
| InstantStyle † | 0.572 | 0.565 | 0.541 |
| InstantStyle | 0.133 | 0.128 | 0.128 |
| CSGO | 0.035 | 0.030 | 0.040 |
| IP-Adapter | 0.016 | 0.014 | 0.016 |
| StyleShot | 0.053 | 0.058 | 0.056 |
| DEADiff | 0.037 | 0.034 | 0.033 |
| Method | CLIP TA | CLIP SS | DINO SS | CT(s) |
|---|---|---|---|---|
| InstantStyle † | 0.231 | 0.711 | 0.386 | 4.81 |
| InstantStyle | 0.228 | 0.718 | 0.396 | 4.13 |
| DEADiff † | 0.245 | 0.671 | 0.281 | 6.81 |
| DEADiff | 0.239 | 0.670 | 0.307 | 3.92 |
| StyleShot † | 0.227 | 0.701 | 0.386 | 5.47 |
| StyleShot | 0.221 | 0.717 | 0.431 | 4.23 |
| Method | CLIP TA | CLIP SS | DINO SS |
|---|---|---|---|
| Baseline | 0.228 | 0.718 | 0.396 |
| w/o CS-SVD | 0.229 | 0.717 | 0.393 |
| w/o SS-CFG | 0.244 | 0.671 | 0.390 |
| Ours | 0.231 | 0.711 | 0.386 |
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | CLIP TA | CLIP SS | DINO SS |
|---|---|---|---|
| InstantStyle † | 0.231 | 0.640 | 0.335 |
| InstantStyle | 0.227 | 0.665 | 0.386 |
| DEADiff † | 0.234 | 0.602 | 0.306 |
| DEADiff | 0.231 | 0.619 | 0.330 |
| StyleShot † | 0.222 | 0.661 | 0.411 |
| StyleShot | 0.215 | 0.677 | 0.456 |
| CLIP-TA [ 27 ] | CLIP-SS [ 27 ] | DINO-SS [ 4 ] | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| =0.01 | =0.02 | =0.03 | =0.05 | =0.01 | =0.02 | =0.03 | =0.05 | =0.01 | =0.02 | =0.03 | =0.05 | |
| k=0 | 0.241 | 0.250 | 0.251 | 0.251 | 0.598 | 0.576 | 0.566 | 0.557 | 0.317 | 0.265 | 0.240 | 0.222 |
| k=1 | 0.230 | 0.235 | 0.237 | 0.239 | 0.625 | 0.612 | 0.606 | 0.599 | 0.382 | 0.359 | 0.348 | 0.333 |
| k=2 | 0.223 | 0.224 | 0.225 | 0.226 | 0.641 | 0.639 | 0.637 | 0.635 | 0.412 | 0.408 | 0.406 | 0.403 |
| k=3 | 0.222 | 0.222 | 0.223 | 0.224 | 0.642 | 0.641 | 0.641 | 0.640 | 0.412 | 0.412 | 0.411 | 0.410 |
Image Style Transfer
Image style transfer changes an image’s visual appearance to match an artistic, photographic, or other reference while preserving its content.
See all 60 papers