NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Semantic Routing: Exploring Multi-Layer LLM Feature Weighting for Diffusion Transformers

Bozhou Li, Yushuo Guan, Haolin Li, Bohan Zeng, Yiyan Ji, Yue Ding, Pengfei Wan, Kun Gai, Yuanxing Zhang, Wentao Zhang

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: Diffusion & Image Generation › Diffusion Text-to-Image Composition and Control · Type: new method · Keywords: text-to-image generation, diffusion transformers, LLM feature fusion, routing strategies, semantic conditioning

Areas: Multimodal › Multimodal Creation and Editing › Diffusion Model Conditioning; Generative Models (Diffusion & Flows) › Visual Editing and Conditioning › Text-to-Image Conditioning

Summary

Semantic Routing is a lightweight multi-layer conditioning interface that fuses LLM hidden states and evaluates static, time-wise, depth-wise, and joint routing strategies, finding depth-wise routing most effective for text-image alignment.

Explained to a 5-year-old

A computer program makes pictures from words using a language model. The language model has several layers that understand the words a bit differently. The program mixes these layers together to help decide what to draw at each step. They tried different ways to mix the layers and found that using the drawing steps (depth) works best. They also saw that using when to draw (time) sometimes makes the pictures less clear.

Explained to a 5-year-old, longer

A computer program can turn words into pictures, like "draw a cat" and it makes a cat picture. To understand the words, it uses a language model, which is like a big brain that reads text. This language model has many layers, and each layer can see something a little different about the words. The program takes these layers and mixes them together to help the picture-making process. They tried mixing only one layer, mixing layers based on when the picture is being drawn, mixing based on which part of the picture is being drawn, and mixing all of them. Mixing based on which part of the picture is being drawn (depth) gave the best results, making the pictures match the words more accurately. Mixing based on when the picture is being drawn (time) sometimes made the pictures look less clear. The program also compared mixing all layers at once and found it wasn't as good as the depth method. They tested the pictures on special tests that check if the picture follows the words correctly. On those tests, the depth method improved the score a lot, like adding almost ten points on a counting test. The study shows that using different layers of the language model at the right moments helps the pictures be better. It also points out that making the timing of when to use the layers work well is still a tricky problem.

For a technical reader

Modern text-to-image models often use a language model to turn prompts into embeddings that guide image generation. These embeddings are usually taken from a single layer of the language model, which can limit how well the image matches complex prompts. The paper proposes a lightweight interface that combines embeddings from multiple layers of the language model using a normalized convex fusion. They evaluate several ways to apply these combined embeddings-static, time-based, depth-based, and joint-and find that depth-based routing yields the best alignment while time-based routing can cause visual degradation. The findings highlight the importance of leveraging hierarchical semantics from language models for better prompt-following in diffusion models.

Problem

Text conditioning in diffusion transformers often relies on a single LLM layer, limiting semantic richness. The core question is how to effectively incorporate multi-layer LLM features into the dynamic text-to-image generation process.

Method

The approach forms text features by normalized convex fusion of LLM hidden states from multiple layers and compares static, time-wise, depth-wise, and joint routing strategies under matched training and evaluation settings. It evaluates each variant on text-image alignment and compositional benchmarks to determine effectiveness.

Results

Depth-wise routing outperforms static, time-wise, and joint routing, delivering a +9.97 improvement on GenAI-Bench Counting and stronger text-image alignment, while time-wise routing can degrade visual fidelity due to timing mismatches.

Contributions

The work introduces a lightweight multi-layer conditioning interface that fuses LLM hidden states and systematically evaluates static, time-wise, depth-wise, and joint routing strategies for DiT text conditioning. It identifies depth-wise routing as the most effective approach and highlights challenges in time-dependent conditioning.

Limitations and assumptions

The study is limited to matched training and evaluation settings, and the analysis reveals that time-dependent conditioning remains a challenging open problem.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction