论文

研究解读 MM-DiT 上下文 token 的内部信息

Learning to Read the Contextual Tokens in Diffusion Transformers

精选理由

有人把扩散模型的中间 token 拿去喂 LLM 问话,能问出画面细节,还顺手改进了生成质量,思路挺有意思。

一篇 arXiv 论文提出通过冻结 LLM 查询中间层 token 的框架,训练轻量瓶颈网络把 MM-DiT 的上下文 token 映射到 LLM 输入空间。实验显示生成特定语义在去噪早期即可读出,且即使空提示下 token 仍包含图像信息。基于此提出的 Contextual Alignment 训练技术可提升生成质量和分布覆盖。

原文 · arXiv cs.AI

Learning to Read the Contextual Tokens in Diffusion Transformers

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.