TL;DR
Modern text-to-image generators increasingly rely on massive Large Language Models (LLMs) to understand prompts, yet they curiously throw away almost the entire LLM—typically feeding only a single, static layer into every stage of image generation. By introducing Semantic Routing, the authors test how to dynamically blend all LLM layers across both diffusion time and network depth. Surprisingly, routing semantics by network depth dramatically boosts complex prompt-following, while routing by denoising time backfires—revealing a subtle clock mismatch between how diffusion models train and how they actually dream up images.
What Problem Does This Paper Address?
If you peek under the hood of modern text-to-image Diffusion Transformers (DiTs), you will find an odd mismatch between supply and demand.
On the supply side, decoder-only LLMs build rich hierarchies of meaning across their layers: shallow layers capture word-level lexical details, while deeper layers assemble abstract concepts and spatial relationships. On the demand side, DiT image generation is a dynamic, evolving process—moving from coarse shapes to fine textures over denoising time, and transitioning from structural layout in shallow transformer blocks to detail synthesis in deeper blocks (depth).
Yet standard practice connects these two dynamic systems with a rigid pipe: take the hidden state from just the penultimate (second-to-last) LLM layer, freeze it, and broadcast that exact same representation to every DiT block at every denoising step. The authors ask a clean, foundational question: if we expose all layers of an LLM, how should we dynamically route them across diffusion time and network depth?
Methods
To isolate where and when different text features matter without changing the underlying 2.24B-parameter DiT or the text encoder (Qwen3-VL-4B-Instruct), the authors introduce Semantic Routing.
First, hidden states from every LLM layer are standardized via LayerNorm (preventing layers with huge activation scales from bullying quieter ones). Then, the conditioning signal is formed as a normalized convex combination—a softmax-weighted blend where weights sum to 1—before entering each DiT block's cross-attention.
Under strictly matched training setups, the authors compare static baselines (penultimate layer, uniform layer averaging, static learned weights, and deep K/V-cache sharing via FuseDiT) against three dynamic routing strategies:
- Time-wise routing (S1): A lightweight MLP takes a sinusoidal embedding of the flow timestep $t \in [0, 1]$ and outputs layer weights shared across all DiT blocks.
- Depth-wise routing (S2): Each of the 24 DiT blocks learns its own dedicated set of layer weights, held constant over time.
- Joint routing (S3): Every DiT block gets its own time-conditioned MLP gate, allowing weights to adapt across both $t$ and depth $d$.
Datasets
No new benchmarks are introduced; instead, the authors use established datasets under controlled conditions:
- Training: A 30-million image-text subset of LAION-400M ($256 \times 256$ resolution), recaptioned with dense synthetic descriptions generated by Qwen3-VL-32B-Instruct.
- Evaluation: GenAI-Bench and GenEval for text–image alignment and compositional reasoning; DrawBench (scored via UnifiedReward-2.0) for aesthetic style; and MJHQ-30K (30,000 generated images) for perceptual quality (FID).
Key Insights and Ideas
- Learnability needs the right coordinate system: Learning a single global set of layer weights (Static) actually loses to simple uniform averaging! A single compromise vector cannot satisfy every part of the network at once. Learned weights only shine when unlocked along the DiT depth axis, allowing different blocks to specialize.
- Why Time-wise routing fails ("Semantic Lag"): Intuitively, feeding coarse LLM layers early and fine layers late over denoising time should work. Instead, it causes blurry images. During training, noisy images follow a rigid mathematical schedule tied to $t$. During iterative inference (with Classifier-Free Guidance), the image denoises faster than nominal time $t$ implies. A gate watching only the clock $t$ suffers from semantic lag—injecting coarse, early-stage text priors into an image that is already trying to paint fine details!
- Emergent "Neighbor Inhibition": Because residual connections make adjacent LLM layers highly redundant, the softmax router naturally learns spiky, alternating weight patterns—picking one "representative" layer in a neighborhood and suppressing its immediate neighbors to maximize semantic diversity.
Key Results
- Depth-wise routing wins across the board: Depth-wise fusion achieves the highest alignment scores on GenEval (67.07) and GenAI-Bench (79.07), clearly beating the penultimate-layer baseline (64.54 / 74.96) and uniform averaging (66.51 / 76.82).
- Massive gains on compositional reasoning: On GenAI-Bench's hardest tasks, Depth-wise routing leaps ahead of the penultimate baseline by +9.97 on Counting (74.57 vs. 64.60), +8.92 on Differentiation, and +5.59 on Comparison.
- Time-wise degradation vs. Joint stability: Purely time-wise routing drops GenEval performance to 63.41 and hurts aesthetic reward (2.97 vs. 3.06), producing visible blurriness. Joint routing mitigates this instability (reaching 66.05 GenEval / 77.44 GenAI-Bench) by dampening temporal swings across blocks, while perceptual FID (~24.8–25.5) remains comparable across all variants.
Limitations and Future Work
While depth-wise routing works out of the box, robust time-dependent conditioning remains an open problem. Because nominal diffusion timesteps $t$ become decoupled from the true signal-to-noise state during multi-step CFG sampling, conditioning on $t$ alone is fragile. Future time-aware routers will need trajectory-aware conditioning signals—gates that sense the actual denoising state of the latent image rather than blindly trusting the step counter. Additionally, these controlled experiments were conducted at $256 \times 256$ resolution using cross-attention DiTs, leaving high-resolution and joint-attention (MMDiT) scaling as natural next steps.
Summary updated