Toward Semantically-Consistent Tuning-Free Customization for Rectified Flow Transformers

Jian Jin, Kai Zhang, Zhenyong Fu, Jian YangNeurIPS 2026

TL;DR

Want a generative AI to paint your specific dog backpack as if it were carved out of driftwood, without spending twenty minutes fine-tuning the model? Current "tuning-free" methods on modern transformer architectures (like FLUX and Stable Diffusion 3) usually botch this—either ignoring your prompt or forgetting what your backpack looks like. SemanticFlow fixes this by sending lightweight "probe" tokens into the model during generation to find exactly where concepts live in the image, then gently nudging the generation trajectory so both your object's identity and your creative prompt stay intact.

What Problem Does This Paper Address?

Customizing text-to-image (T2I) models—teaching them to generate your specific teapot or plush toy in new scenes—used to require slow, per-object weight updates (like LoRA or DreamBooth). Recently, "tuning-free" methods have emerged that skip training altogether, injecting reference images directly at inference time.

While fast, tuning-free methods suffer from semantic inconsistency: they essentially copy-paste superficial visual features rather than deeply understanding the object. They work fine if you just put your plush bear on a beach ("recontextualization"), where user success rates hover near 80–95%. But ask the model to make that plush bear out of shimmering mirror shards (attribute modification) or render it as a ukiyo-e woodblock print (artistic style variation), and success rates plummet—often below 20%.

Figure 2: The extensive generations of leading tuning-free methods [65, 35, 3] are evaluated by users, where “success” refers to semantically-consistent customization with satisfac- tory concept fidelity and prompt alignment. These methods struggle in certain challenging scenarios and exhibit seman- tic inconsistency, particularly in attribute modification and artistic style variation. Further experimental details are pro- vided in Appendix D.2.

In older U-Net diffusion models, researchers could fix this on the fly by manipulating cross-attention maps, which neatly linked each prompt word to a specific spatial region of the image. Modern giants like SD3 and FLUX, however, are Multi-Modal Diffusion Transformers (MM-DiTs). They throw text and image tokens into a single, shared self-attention soup. As layers go deeper, text and image features entangle and leak into one another, turning attention maps into noisy, unusable blurs.

Methods

SemanticFlow introduces a training-free, "perceive-and-manipulate" mechanism tailored specifically for rectified flow MM-DiTs (built atop FLUX.1-dev and UNO by default). It operates in two steps:

  1. Spatially-Aware Semantic Perception (The Probe): Instead of relying on entangled prompt tokens, SemanticFlow spins up isolated, parallel semantic token streams for specific concepts (e.g., "backpack" or "driftwood"), parsed automatically by a small LLM (Qwen2.5-3B) or chosen by the user. Using the model's existing text weights, these probe tokens attend unidirectionally to the image tokens—meaning they can "watch" the image form without altering it or getting muddled by the rest of the prompt. Measuring the similarity between these probes and the image stream in the attention output space yields crisp, accurate spatial heatmaps called semantic responses.
  2. Energy-Guided Semantic Manipulation (The Nudge): Rectified flow models generate images by following a learned velocity field from noise to data. SemanticFlow defines mathematical energy functions comparing the current semantic response to a goal response:
  3. Attribute Modification: Force the spatial map of "driftwood" to match the map of "backpack".
  4. Concept Fidelity: Sharpen and scale up ($1.5\times$) the object's own response so its identity doesn't wash out.
  5. Style Variation: Broadcast the peak style activation uniformly across the entire canvas.

The gradient of this energy function directly perturbs the velocity field, steering the generation toward the desired layout.

Datasets

No training datasets are needed since SemanticFlow operates entirely at inference time. For evaluation, the authors draw concepts and prompts from three standard customization benchmarks (DreamBooth, Textual Inversion, and Custom Diffusion). The test suite covers single-concept generation (30 prompts $\times$ 2 seeds per concept) and multi-concept generation (15 concept pairs $\times$ 15 prompts $\times$ 2 seeds), spanning 144 recontextualization, 49 attribute modification, and 39 style variation prompts.

Key Insights and Ideas

  • Attention outputs beat attention maps in MM-DiTs: Raw joint-attention weights in transformers lose spatial meaning as tokens mix. Isolating single-concept probes with unidirectional attention and reading them out in the attention output space recovers razor-sharp spatial localization without retraining a single weight.
  • Early nudges are enough: You don't need to micromanage the entire generation. Applying velocity adjustments during just the first 4 out of 25 denoising steps is enough to lock in the right spatial semantics for the rest of the trajectory.
  • Plug-and-play universality: Because the math operates on rectified flow velocity fields and standard MM-Attention, SemanticFlow isn't tied to one model—it drops neatly into other flow-based customization frameworks (like DreamO) to fix their blind spots too.

Key Results

SemanticFlow breaks out of the usual fidelity-versus-editability trap, outperforming tuning-free baselines (UNO, DreamO, XVerse, OmniGen2, OminiControl, MS-Diffusion) and image-editing tools across both single- and multi-subject tasks.

Figure 1: Semantically-consistent customization requires the generated images to exhibit both visual consistency to the key identifying features of the subject references and textual consistency to the prompt. SEMANTICFLOW significantly enhances visual and textual consistency through explicit semantic control, achieving semantic consistency in tuning-free customization.
  • Quantitative Edge: On the ablation benchmark, turning on SemanticFlow's velocity adjustment boosts prompt alignment ($S_{\text{CLIP}}^{\text{T}}$) from 0.3025 to 0.3313, while simultaneously improving category-level ($S_{\text{CLIP}}^{\text{I}}$: 0.7026 $\rightarrow$ 0.7135) and instance-level ($S_{\text{DINO}}$: 0.6316 $\rightarrow$ 0.6460) concept fidelity.
  • Ablation Proof: Trying to apply the exact same energy guidance to raw MM-DiT cross-attention maps instead of SemanticFlow's probe responses drops text alignment to 0.3165 and corrupts background regions. Merging probes into a single stream causes semantic entanglement, dropping text alignment to 0.3102.

Limitations and Future Work

The main text does not explicitly dedicate a section to limitations (beyond noting it as a direction to inspire future research on semantic control mechanisms). However, practically speaking, the method introduces extra forward-pass overhead during the first 4 denoising steps to compute gradients through the energy functions and run parallel token streams, and automated use relies on an external LLM parser (or manual user input) to identify which target semantics and manipulation rules to apply.

Summary updated

Abstract

Tuning-free customized generation has gained popularity for its efficiency, particularly with the rise of rectified flow transformers. However, it often suffers from semantic inconsistency, degrading both concept fidelity and prompt alignment. We attribute this failure to their tendency for inference-time superficial feature fusion, which is intrinsic to the tuning-free paradigm. In this paper, we propose SemanticFlow for semantically consistent tuning-free customization, introducing explicit semantic control to jointly enhance concept fidelity and prompt alignment. SemanticFlow operates through a cohesive "perceive-and-manipulate" mechanism for aligned fusion of visual and textual features at the early denoising stage. Specifically, we first devise lightweight semantic token streams as run-time probes to accurately perceive the spatial responses of the target semantics. We then formulate semantic manipulation as an energy-guided rectification of these semantic responses within the rectified flow framework, steering the generation process toward the desired outcome. Experiments demonstrate that SemanticFlow improves the trade-off between concept fidelity and prompt alignment in previously challenging scenarios, effectively enabling semantically-consistent customization.
BibTeX
@inproceedings{jin2026toward,
  author = {Jian Jin and Kai Zhang and Zhenyong Fu and Jian Yang},
  title = {{Toward Semantically-Consistent Tuning-Free Customization for Rectified Flow Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Qbw59DT7mb},
}
Figure