Learning to Read the Contextual Tokens in Diffusion Transformers
Omer Dahary, Etai Sella, Hadar Averbuch-Elor, Daniel Cohen-Or, Or Patashnik
Abstract
Multimodal Diffusion Transformers (MM-DiTs) jointly process visual and textual representations throughout generation. These models repeatedly update the text tokens through multimodal attention, forming dynamic contextual tokens whose function is not well understood. In this work, we introduce a framework for reading this contextual space through natural-language interrogation. We train a lightweight bottleneck network that maps intermediate contextual tokens into the input space of a frozen Large Language Model (LLM), allowing the LLM to answer questions about the emerging image directly from these hidden representations. Our reader reveals that contextual tokens encode a rich, global representation of the emerging scene: generation-specific semantics, including attributes left underspecified by the prompt, are accessible surprisingly early in denoising, while increasingly fine-grained details become readable over time. Remarkably, this information remains decodable even when the MM-DiT receives an empty prompt, showing that contextual tokens accumulate substantial image-specific information from the evolving visual representation itself. We further find that generations with more readable contextual representations tend to receive higher human-preference scores. Building on these observations, we introduce Contextual Alignment, a training technique that explicitly reinforces the visual-semantic information encoded in the contextual tokens, improving generation quality and distributional coverage. Together, our results establish contextual tokens as both an interpretable view into the internal dynamics of MM-DiTs and an effective target for improving generative models.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI, cs.GR, cs.LG
- Comments
- Project page: https://omer11a.github.io/learning_to_read/
Related papers
Semantic State Reading for Joint Image-Semantic Diffusion Transformers
Shared title terminologycs.CVGuanxi Lai, Zixuan Li, Zhiwei Li et al.
TORE: Token-Wise Taylor Order Selection via Decomposed Residual Error Estimation for Diffusion Acceleration
Shared title terminologycs.CVLei Tang, Baoquan Zhang, Yakun Zhang et al.
Loop4D: Embodied World Modeling with 4D VAEs and Looped Diffusion Transformers
Shared title terminologycs.CVGen Li, Fan Luo, Mengjun Lin et al.
TWIST: Teacher-Weighted Initial-Noise Spherical Transform for Quality-Preserving Diversity in Distilled Diffusion Models
Shared title terminologycs.CVShayan Baghayi-Nejad, Jeongsol Kim, Jong Chul Ye
DualCast: Dual-Image Conditioned Diffusion Transformers for Digital Human E-Commerce Video Generation
Shared title terminologycs.CVLifan Jiang, Yifan Huang, Jixuan Zhang et al.
SFA: A Statistical Physics-Inspired Diffusion Transformer for Efficient and High-Quality Image Generation
Shared title terminologycs.CVZixuan Huang, Tianhao You, Guozhang Chen