Scale-Separated Conditioning for Style-Encoder-Free Diffusion Stylization
Authors: Jingtao Zhang, Haorui Gao, Youqing Liang, Zeming Liu
Organizations: College of Computing, Georgia Institute of Technology, Atlanta, GA, USA · Courant Institute of Mathematical Sciences, New York University, New York, NY, USA · Department of Computer Science, Brown University, Providence, RI, USA
Reference-based diffusion stylization requires separating target geometry from transferable appearance. Existing tuning-based methods often rely on aligned content-style-target triplets or auxiliary visual encoders, which increases data cost and can transfer unintended scene structure from the style reference. We propose SEFS (Style-Encoder-Free Stylization), a style-encoder-free conditioning framework for diffusion transformers. SEFS forms style tokens from stochastic low-resolution crops of single training images. This crop bottleneck preserves local appearance statistics such as palette, stroke, texture, and material, while reducing access to global layout cues. Target content is encoded by edge and segmentation cues and fused with the noisy latent through parameter-efficient trainable projections. We add style-to-denoising re-normalization for token-statistic alignment and cross-block skip fusion for spatial detail. SEFS trains on unpaired single images; the frozen diffusion VAE is used only to place image conditions in the latent space. On artistic stylization benchmarks, SEFS improves content consistency and leakage diagnostics while retaining reference-style affinity, and ablations support the crop-resolution, re-normalization, and skip-fusion choices. The code of SEFS will be made publicly available.
Figures & tables
Figure 1: Representative comparisons with CSGO [ 28 ] , StyleShot [ 9 ] , and SEFS. Existing methods can drift from the target content or transfer reference-specific structure; scale-separated conditioning helps SEFS preserve target layout while matching reference appearance.
Figure 2: Framework of the proposed SEFS. The target image provides structural content conditions through Canny edges and SAM [ 15 ] segmentation, while the style pathway receives stochastic low-resolution crops that expose local appearance statistics and suppress global layout. Style tokens are concatenated with the denoising tokens and re-normalized using the denoising-token statistics (μd,vd) and style-token statistics (μs,vs) . The right part illustrates LoRA fine-tuning and cross-block skip fusion.
Figure 3: Training inputs of SEFS. Canny edges preserve fine structural boundaries, SAM masks preserve coarse region layout, and low-resolution style crops retain local appearance while reducing access to global reference geometry.
Skip-connection
SAM
Canny
IS
FID
CLIP-I
✓
✓
✓
9.1788
48.7677
0.9063
✗
✓
✓
9.1304
53.1521
0.8813
✓
✗
✓
9.1543
49.3103
0.8983
✓
✓
✗
9.0941
59.1620
0.8294
Table 1: Content-condition and skip-fusion ablation on WikiArt. All variants use 30k steps, batch size 32, and learning rate 2×10−5 .
Figure 4: Qualitative comparisons. SEFS better preserves target layout while transferring reference appearance; baselines either weaken style transfer or introduce reference-induced content drift.
Method
Content DINO
Content CLIP-I
Style Ref. Sim.
Leakage
FID
Time
StyleShot
0.8017
0.8684
0.7462
0.4871
56.8421
4.8s
StyleShot + Struct. Ctrl.
0.8918
0.8971
0.7785
0.4472
51.9248
7.2s
CSGO
0.8098
0.8566
0.7397
0.4944
60.6377
6.3s
SEFS
0.9040
0.9026
0.7835
0.3931
49.5724
6.1s
Table 2: Main comparison. StyleShot + Struct. Ctrl. gives StyleShot the same target-derived Canny/SAM controls as SEFS. Time is per image on A100. Lower Leakage/FID and higher content/style scores are better.
Variant
Content DINO
Style Ref. Sim.
Leakage
FID
Full SEFS
0.9040
0.7835
0.3931
49.5724
SEFS w/ Style Encoder
0.8924
0.7946
0.4478
52.3861
w/o style tokens
0.9132
0.7048
0.3619
55.2846
shuffled style
0.9015
0.7162
0.3698
53.9173
w/o re-normalization
0.8618
0.7447
0.4326
58.6035
high-res style tokens
0.8654
0.7779
0.4612
55.9184
Table 3: Cross-image mechanism controls on the same 1,000 content-style pairs.
Re-Normalization
Style Res
Style Enc
IS
FID
CLIP-I
✓
64×64
✗
9.4697
54.1585
0.8821
✗
64×64
✗
9.0913
66.9413
0.8191
✓
128×128
✗
9.2169
56.9813
0.8535
✓
256×256
✗
9.3046
58.9413
0.8199
✓
256×256
✓
9.4039
57.0631
0.8517
Table 4: Style-token ablation on WikiArt. “Style Res” is the style-view resolution; “Style Enc” replaces crop tokens with a pretrained CLIP visual encoder.
Reference-guided diffusion stylization aims to transfer visual style from a reference image while preserving the semantics specified by a text prompt. However, image conditioning often entangles transferable style cues with reference-specific content, leading to an inherent trade-off: stronger conditioning improves style fidelity but increases content leakage, whereas aggressive suppression reduces leakage at the cost of style expression. This challenge is further complicated by the distinct spatial organization of texture- and geometry-dominant styles. To address these issues, we propose SafeStyle, a training-free framework for calibrated style residual injection in frozen diffusion models. SafeStyle first estimates style-supported and content-associated subspaces from compact calibration sets, preserving their informative overlap while suppressing useless content variations. It then transports the purified style evidence over adaptive spatial granularity and constrains its effective influence through an explicit residual-norm budget. Experiments across texture- and geometry-dominant styles show that SafeStyle achieves a DINO style similarity of 0.432 while maintaining competitive text alignment. On a semantically disjoint leakage-stress benchmark, it further achieves a DINO style similarity of 0.474 with only 0.8% semantic leakage, demonstrating an effective balance between style fidelity and reference-content suppression.
Zhangping Yang, Min Li, Song Yan +4
Xi’an High-tech Research Institute, Shaanxi, China · University of Science and Technology of China, Anhui, China · Xi’an University of Architecture and Technology, Shaanxi, China
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.
Reference-guided style transfer aims to preserve the semantic structure of a content image while transferring the visual appearance of a style reference. Recent diffusion-based methods achieve impressive stylization quality by exploiting strong pretrained generative priors. However, training-free approaches still face a difficult trade-off among style fidelity, content preservation, and content leakage. Direct style injection may unintentionally transfer semantic content from the style image, while fixed guidance schedules often ignore the time- and state-dependent nature of diffusion sampling. To address these limitations, we propose TRACE, a training-free diffusion style transfer framework with Time-adaptive Residual Attention Control and Content-Style Decomposition. TRACE first performs offline CLIP-based subspace analysis to separate content and style directions from paired data. During inference, it removes content-related components from the style reference and style-related components from the content reference to reduce leakage. It then injects style information through residual cross-attention and applies uncertainty-aware guidance to adapt the guidance signal at each denoising step. Experiments show that TRACE achieves a favorable trade-off between stylization and preservation. Compared with optimal-control-based baselines, TRACE substantially improves style fidelity (+17.28 CSD and +34.10 SRA). While, compared with stylization methods, it better preserves content structure (+12.80 DINO, +5.52 CLIP-I, and -8.19 LPIPS) and reduces directional semantic leakage by 29.5% in DCL. Our code is publicly available at https://github.com/pixelchemy-research/TRACE.
Duc Khoan Le, Kim Ngoc Tran, Minh Nhat Le +5
Faculty of Information Technology, University of Science, Ho Chi Minh City, Vietnam · Vietnam National University, Ho Chi Minh City, Vietnam