Expressive style transfer must reproduce a painting's palette, brushwork, and characteristic motifs while retaining the content image's structure. Attention injection is effective in U-Net-based diffusion models, but adapting it to FLUX often transfers color without capturing the style's distinctive brushwork. Our analysis across backbones links this gap to how injected features are integrated across neighboring spatial locations. We introduce MotifFlow, a training-free, self-contained framework that combines style injection with style-alignment guidance in FLUX. Injection supplies style features during generation but does not explicitly encourage the model's native attention output to align with them. We therefore use the discrepancy between native and injected attention outputs to guide latent-space updates, encouraging the evolving image to develop the style's distinctive brushwork and motifs. Style encoding, guidance, and synthesis all use the same frozen backbone, without auxiliary image encoders or trained adapters. A single strength parameter controls the transition from color transfer to pronounced brushwork and motifs, with additional support for regional stylization and style mixing. Experiments on 1,000 content-style pairs show that MotifFlow better matches the local textures of the style image than baseline methods and produces more consistent stylization than injection alone. The same design extends to FLUX.2.
Figures & tables
Figure 1: From color to motif. Each row shows the same content–style pair at six guidance strengths from 0% to 100%. Zero guidance uses attention injection alone. Increasing guidance develops style-specific appearance: swirling painted strokes around the Eiffel Tower, graphic outlines on the owl, engraved line patterns across the mountain lake, and citrus and leaf motifs in the cake scene. The content and style images are shown in the first two columns.
Figure 2: Limits of direct injection. Sharpening strengthens U-Net stylization but increases grid artifacts on FLUX. Sharper FLUX attention mainly boosts contrast, while retaining RoPE biases the output toward the style image’s layout. MotifFlow transfers the style while preserving content structure.
Figure 3: Style injection and latent alignment. Each sampling step uses a denoising forward followed by a differentiable loss forward. Both inject style features into selected blocks without RoPE. In the loss forward, cached content queries blend with live queries using γ , and the injected attention output Hinj provides the alignment target for the auxiliary output Hself . Alignment and query losses accumulate across selected blocks, while grain guidance compares latent texture statistics. Their gradients update x for the next denoising step, with strength controlled by s . Results show independent runs at s=0 , 0.5 , and 1 . Text-token paths are omitted.
Figure 4: Style transfer across visual forms. MotifFlow adapts painted strokes, graphic marks, mosaic tiles, and geometric patterns to the content composition on FLUX.1 and FLUX.2. Redux uses strength 0.65 . AD denotes the official SD 1.5 implementation. See Appendix E for additional comparisons across diverse content images and styles.
Method
Backbone
Training-free
LPIPS ↓
Structure ↓
CSD ↑
Color ↓
Texture ↓
Failure (%) ↓
StyleID [ 7 ]
SD 1.5
✓
0.518
0.090
0.447
6.44
0.417
11.9
StyleGallery [ 12 ]
SD 1.5
✓
0.463
0.094
0.515
10.40
0.200
22.5
AD [ 32 ]
SD 1.5
✓
0.535
0.110
0.622
7.89
0.135
12.8
USO [ 28 ]
FLUX.1
–
0.538
0.110
0.331
13.06
0.349
46.8
Redux [ 4 ]
FLUX.1
–
0.553
0.124
0.386
17.80
0.602
30.8
Injection only
FLUX.1
✓
0.490
0.080
0.362
5.66
0.176
29.6
Table 1: Comparison with existing methods and transfer to FLUX.2. LPIPS and Structure measure changes from the content image. CSD, Color, and Texture measure resemblance to the style image. Failure denotes the style-transfer failure rate (CSD <0.30 ). Metric definitions are given in Sec. 5.1 . Best values are bold.
MotifFlow vs.
Style
Content
Overall
USO
79.2
51.2
74.4
Redux
75.6
53.6
71.6
StyleID
67.2
46.0
63.6
StyleGallery
62.4
44.8
58.8
AD
53.6
48.4
51.6
Table 2: User preference (%). Percentage of judgments choosing MotifFlow over each baseline, with 250 judgments per criterion.
Figure 5: Strength and content–style trade-offs. (a) Native control curves, with the full range shown at right. The arrow marks MotifFlow’s CSD gain over AD-FLUX at the same LPIPS, using linear interpolation. (b) Color and texture distances and DINO image similarity between the output and style image across guidance strengths. The dashed line marks the unmodified content’s color distance.
Figure 6: Qualitative component ablations. Each panel removes the indicated component. The full method develops coherent mosaic patterns (a), preserves facial structure (b), strengthens color regions and contours (c), and suppresses isolated bright speckles visible in the upper-right sky (d).
Figure 7: Spatial and multi-style control. (a) Global guidance and guidance restricted to the background or subject. (b) Selecting lemon or leaf motifs from one style image. (c) Swapping two styles between background and subject. White in the mask indicates the background. (d) Global mixing from style A ( w=0 ) to B ( w=1 ).
Variant
LPIPS ↓
Structure ↓
CSD ↑
Texture ↓
Full
.560
.110
.592
.066
− Alignment
.536
.091
.388
.129
− Query anchor
.639
.134
.703
.052
− Grain
.542
.107
.572
.069
− Clipping
.569
.114
.578
.069
Table 3: Component ablations. Each − row removes one component from the full method.
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
r
CSD ↑
Texture ↓
LPIPS ↓
Content layout
Style layout
0
.364
.175
.527
.93
.08
1/16
.375
.170
.547
.91
.12
1/8
.384
.166
.564
.88
.13
1/4
.400
.166
.598
.83
.25
1/2
.451
.183
.684
.70
.54
1
.602
.204
.809
.51
.80
Appendix
Table S1: RoPE strength at the injection blocks on FLUX.1. The layout columns give the correlation between the output’s layout and that of the content or style image. As r increases, style similarity rises together with copying of the style image’s layout.
Figure S1 : Injection alone at different RoPE strengths r . The settings are those of Tab. S1 . At r=1 , the output follows the style image’s layout.
Model
Texture ↓
ID (%) ↑
Detail correlation
SD 1.5
.381
18
.85
SDXL
.391
20
.78
FLUX.1
.175
33
.88
FLUX.2
.280
30
.85
Appendix
Table S2: Style specificity with direct injection. ID is the rate at which the style image is identified from output texture alone. Detail correlation compares outputs of the same content under different style images. The U-Nets use τ=1.5 , and FLUX uses τ=1 .
Figure S2 : Attention sharpening and spatial response. (a,b) Within-model sweeps show that moderate sharpening improves U-Net style scores. On FLUX, sharpening yields almost no gain in style similarity before reducing it, and grid energy increases throughout. (c) At the probed layers, U-Net responses to attention perturbations decay with distance, while FLUX responses under injection vary little. (d) At the same latent, disabling injection across the FLUX transformer restores a stronger response near the perturbed positions. The response is measured at the network output of the current denoising step.
Model
With RoPE
Without RoPE
FLUX.1
18.9
4.6
FLUX.2
25.3
6.0
Appendix
Table S3: Effect of RoPE on local attention. Native queries and keys are held fixed. Values are the percentage of image-attention mass within a 3×3 neighborhood, averaged over eight content images.
Model
ρ (%)
Adjacency (%)
Same-image adjacency (%)
SD 1.5
12.0
2.97
9.0
SDXL
16.2
3.44
16.4
FLUX.1
3.6
.54
1.2
FLUX.2
3.4
.72
3.4
Appendix
Table S4: Feature averaging and exact adjacency in style attention. ρ is the attention-output variance ratio. The same-image control uses a blurred copy of the style image as content.
Parameter
Value
Resolution
512×512
Sampling steps
20
Content-query blend γ
0.5
Attention logit multiplier
1
Alignment step, before 28/N scaling
0.05
Grain step, before 28/N scaling
0.025
Appendix
Table S5: Default FLUX.1 settings. The same settings are used for all benchmark pairs.
Figure S3 : Three points at which a sampling step can be steered, shown through the controls of Fig. 7. Top: the two forward passes of one sampling step, with text tokens omitted. Both passes read the style tokens through injected attention. In the denoising forward, the output Hinj replaces the block’s attention output, which is forward injection. In the loss forward, Hinj serves as the alignment target, and the resulting gradient updates the latent. The colored cells are the three points: the style tokens that are read, the bias on the attention logits, and the mask on the guidance update. Letters mark the control of Fig. 7 that uses each point. (a) The guidance update is multiplied token by token with a soft mask of the content image, so that the latent changes only inside the chosen region. The same mask scales the grain update, which is not drawn. (b) When the alignment target is computed, each query reads only the style tokens of the selected element. (c) With two styles, a bias β on the attention logits steers each query toward style A where the mask M is high and toward style B where it is low. (d) Global mixing uses the same bias with constant weights 1−w and w at every query. The token grids are cut from the inputs of the Fig. 7 examples and use the masks of those runs at reduced resolution. Arrow directions and line widths are schematic.
Figure S4 : Additional examples of regional and multi-style control. The panels follow Fig. 7. (a) Guidance applied globally or restricted to one content region. (b) Guidance toward the whole style image or toward selected elements of it. (c) Two styles swapped between background and subject, where white in the mask marks the background. (d) Global mixing from style A ( w=0 ) to style B ( w=1 ).
Figure S5 : Low-CSD rates across thresholds. Each curve gives the percentage of a method’s outputs whose CSD falls below the threshold. Lower is better.
Strength (%)
Color ↓
LPIPS ↓
CSD ↑
DINO ↑
Texture ↓
0
5.66
0.490
0.362
0.246
0.176
10
5.38
0.504
0.433
0.301
0.145
25
5.16
0.529
0.513
0.388
0.107
50
5.00
0.546
0.569
0.473
0.072
75
4.96
0.554
0.587
0.514
0.064
100
4.98
0.560
0.592
0.534
0.066
Appendix
Table S6: Metrics across guidance strengths. Strength 0% corresponds to injection alone and 100% to default MotifFlow.
Weight
LPIPS ↓
Color ↓
CSD ↑
DINO ↑
Texture ↓
.80
.459
7.19
.331
.278
.246
.70
.520
5.74
.415
.352
.164
.60
.584
4.66
.478
.423
.149
.50
.631
3.78
.553
.510
.128
.25
.719
2.52
.658
.638
.105
Appendix
Table S7: AD-FLUX content-weight sweep. Lower weights give stronger style at the cost of greater perceptual change.
Figure S11 : Five fixed settings of each method’s strength control on three content–style pairs. Each of the first five blocks shows one method. A block’s rows are the same three pairs, and its columns are the five settings, ordered from weakest to strongest stylization and shared by all pairs. The last block shows the content and style images of the three pairs and the result of USO, which has no strength control. Orange frames mark the published defaults of StyleID, StyleGallery, and AD. MotifFlow keeps the content recognizable at every setting while brushwork and motifs develop step by step. AD and StyleGallery move from the content image to a result with little remaining content within one or two settings, and the effect of their default differs from pair to pair.
Figure S12 : CSD and LPIPS at the five settings for all 50 pairs. Each gray line follows one content–style pair across a method’s five settings. The blue line is the median, the band spans the 10th to 90th percentiles, and the dashed vertical line marks the published default of StyleID, StyleGallery, and AD. A narrow band means that a setting changes different pairs by a similar amount. With MotifFlow, CSD rises at every setting while LPIPS increases only slightly, and its band remains narrow at every setting. The curves of AD and StyleGallery form a step whose position varies between pairs, so the band at their default covers most of the range.
Method
CSD ↑
LPIPS ↓
Ratio ↓
Spread ↓
StyleID
.411 → .807
.482 → .751
0.68
.20
StyleGallery
.063 → .829
.085 → .808
0.94
.48
AD
.060 → .869
.081 → .808
0.90
.38
Redux
.060 → .724
.000 → .833
1.26
.25
MotifFlow
.386 → .643
.494 → .582
0.34
.19
Appendix
Table S8: Summary of the five-setting comparison. The CSD and LPIPS columns give the mean over the 50 pairs at the weakest setting, followed by the mean at the strongest setting. The ratio is the increase in LPIPS per unit of CSD gained between these two settings, and the spread is the widest 10th-to-90th-percentile range of LPIPS among the five settings. MotifFlow gains style at the lowest cost in perceptual change, and its settings act as consistently across pairs as those of StyleID.
Method
Backbone
Total
Content inversion
Style inversion
Generation
StyleID
SD 1.5
6.0
2.1
2.1
1.8
StyleGallery
SD 1.5
27.5
–
–
–
AD
SD 1.5
17.8
–
–
–
USO
FLUX.1
14.1
–
–
–
Redux
FLUX.1
5.1
–
–
–
AD-FLUX
FLUX.1
136
–
–
–
Appendix
Table S9: Median inference time in seconds for one content–style pair. Totals include all per-image inversion and preprocessing. Stage times are shown for StyleID and our two configurations.
Configuration
LPIPS ↓
CSD ↑
DINO ↑
Texture ↓
RoPE kept
0.800
0.567
0.578
0.619
Injection only
0.452
0.329
0.241
0.226
Without native style input
0.553
0.596
0.511
0.116
Full method
0.579
0.631
0.554
0.094
Appendix
Table S10: Results on FLUX.2 klein. The last two rows add guidance to injection, and the full method also passes the style image to FLUX.2’s native reference-image input. Guidance raises CSD and DINO similarity and lowers texture distance relative to injection alone, while LPIPS increases.
Style transfer with pre-trained diffusion models has advanced rapidly, but a core question remains underexplored: where in the model should style injection be strongest? StyleID, the leading training-free method, uses a single global parameter (gamma) uniformly across all layers and timesteps, which forces a fixed tradeoff between style quality and content preservation. We show this tradeoff is unnecessarily rigid. We systematically explore four dimensions of control: varying style injection strength across decoder layers, across denoising timesteps, and scheduling ControlNet geometric conditioning along both axes. The pattern is consistent everywhere: decreasing schedules, with stronger structural signal injection in shallower layers and earlier timesteps, reliably outperform the reverse. Beyond direction, schedule shape matters: cosine and square-root timestep schedules outperform linear. Most importantly, we find that gamma scheduling and ControlNet conditioning are nearly independent. The resulting combined configurations expand the Pareto frontier, offering superior tradeoffs between style fidelity and content preservation compared to any single baseline setting. Our best balanced configuration achieves ArtFID of 27.036 versus StyleID's 28.801 - a 6.1% relative improvement, with consistent gains across the full style-content tradeoff frontier. Results are validated across 35 configurations totaling over 28,000 stylized images using four complementary metrics. These findings generalize across SD backbones with identical rank ordering. All modifications are training-free, parameter-free, and require only a few lines of scheduling code; code is available at https://github.com/ameyskulkarni/scheduled_style_injection.
We introduce Color Disentangled Style Transfer (CDST), a novel and efficient two-stream style transfer training paradigm which completely isolates color from style and forces the style stream to be color-blinded. With one same model, CDST unlocks universal style transfer capabilities in a tuning-free manner during inference. Especially, the characteristics-preserved style transfer with style and content references is solved in the tuning-free way for the first time. CDST significantly improves the style similarity by multi-feature image embeddings compression and preserves strong editing capability via our new CDST style definition inspired by Diffusion UNet disentanglement law. By conducting thorough qualitative and quantitative experiments and human evaluations, we demonstrate that CDST achieves state-of-the-art results on various style transfer tasks.
Style transfer applies the appearance of a reference image to a content image while preserving its spatial structure. Recent diffusion-based methods achieve strong stylization but typically assume a single global style. We instead consider regional-multi style transfer, which assigns multiple references to user-specified regions of a content image. Extending them to this setting reveals two coupled shared-attention issues: ambiguous mass allocation among content and style partitions and degraded selectivity as more styles are jointly normalized, while style aggregation at the attention output further suppresses fine details. We propose MAST (Mask-Guided Attention Control for Training-Free Regional-Multi Style Transfer), a unified attention-control framework for frozen diffusion models. Logit-level Attention Mass Allocation enforces mask-derived partition masses, Sharpness-aware Temperature Scaling adaptively restores selectivity, and Discrepancy-aware Detail Injection recovers high-frequency content. MAST jointly processes all style--mask pairs in a single denoising pass without training, optimization, or post-hoc composition. Across two to five styles, MAST achieves the best average ArtFID, FID, and R-FID among all baselines, demonstrating regional style fidelity, content preservation, and scalability.
Dongkyung Kang, Jaeyeon Hwang, Junseo Park +6
Department of Computer Science & Artificial Intelligence, Dongguk University