Training-Free, Self-Contained Style Transfer
from Color to Motif in Rectified Flow Transformers

Chun Xie  ·  Itaru Kitahara

University of Tsukuba

Paper (arXiv) Code (coming soon)

From color to motif with one control

Pick an example and drag the slider. At 0% only attention injection is active; raising the guidance strength develops the brushwork and then the characteristic motifs of the style image.

Content imageContent
Style imageStyle
Stylized resultMotifFlow
50%

Abstract

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.

Method

Injection supplies style features to the forward pass. Alignment guidance then asks the image to produce those features by itself.

Method overview: a denoising forward pass with style injection, followed by a differentiable loss forward pass that aligns the image's own attention output with the injected one
Each sampling step runs a denoising forward pass followed by a differentiable loss forward pass. Both inject cached style keys and values into selected transformer blocks, where rotary position embeddings are left out so that matching does not copy the layout of the style image. In the loss pass, the injected attention output is the target for the image's own attention output; a query anchor keeps the content structure, and grain guidance matches local texture statistics in latent space. The gradients update the latent before the next step, scaled by the strength.

Training-free

A frozen FLUX backbone. Nothing is fine-tuned, and no adapter or LoRA is added.

Self-contained

Style encoding, guidance and synthesis use the same model, with no auxiliary image encoder.

One strength control

A single parameter scales the latent guidance, from color transfer to brushwork to motifs.

Comparison

Painted strokes, graphic marks, mosaic tiles and geometric patterns, on FLUX.1 and FLUX.2.

Qualitative comparison of MotifFlow on FLUX.1 and FLUX.2 with USO, Redux, StyleID, StyleGallery and Attention Distillation on four content-style pairs
MotifFlow adapts the visual form of each style to the content composition. Redux is shown at strength 0.65; AD denotes the official Stable Diffusion 1.5 implementation of Attention Distillation.

Regional stylization and style mixing

Masks come from the backbone's own text-to-image attention, so no segmentation model is needed.

Four controls: guidance restricted to background or subject, selecting lemon or leaf motifs of a style, assigning two styles to background and subject, and mixing two styles globally
(a) Guidance applied globally, or restricted to the background or the subject. (b) Selecting the lemon or the leaf motifs of one style image. (c) Two styles assigned to background and subject, and swapped. (d) Global mixing from style A (w = 0) to style B (w = 1).

More results

Gallery of additional MotifFlow results
Each group shows the content image (top left), the style image (bottom left) and the result.

Citation

@article{xie2026motifflow,
  title   = {MotifFlow: Training-Free, Self-Contained Style Transfer from Color to Motif in Rectified Flow Transformers},
  author  = {Xie, Chun and Kitahara, Itaru},
  journal = {arXiv preprint arXiv:2611.33371},
  year    = {2026}
}