I Think, Therefore I Diffuse: Enabling Multimodal In-Context Reasoning in Diffusion Models
Zhenxing Mi, Kuan-Chieh Wang, Guocheng Qian, Hanrong Ye, Runtao Liu, Sergey Tulyakov, Kfir Aberman, Dan Xu
TL;DR
ThinkDiff introduces a novel alignment paradigm that transfers multimodal in-context reasoning from vision-language models to diffusion-based image generation by training a lightweight aligner to map VLM features into the shared input space of an LLM decoder, which serves as a proxy for the diffusion decoder during training. It presents two variants, ThinkDiff-LVLM and ThinkDiff-CLIP, leveraging LVLM-generated tokens and CLIP image embeddings respectively, enabling in-context reasoning over interleaved images and text prompts and resulting in markedly improved performance on the CoBSAT benchmark with minimal training resources. The approach avoids the need for large reasoning datasets by using vision-language training as a proxy, yielding robust in-context reasoning, composition of multiple modalities, and even video generation with compatible diffusion backends. This work advances diffusion model capabilities toward multimodal, in-context reasoning, with practical implications for education, design, and creative industries, while stressing the need for safeguards against misuse.
Abstract
This paper presents ThinkDiff, a novel alignment paradigm that empowers text-to-image diffusion models with multimodal in-context understanding and reasoning capabilities by integrating the strengths of vision-language models (VLMs). Existing multimodal diffusion finetuning methods largely focus on pixel-level reconstruction rather than in-context reasoning, and are constrained by the complexity and limited availability of reasoning-based datasets. ThinkDiff addresses these challenges by leveraging vision-language training as a proxy task, aligning VLMs with the decoder of an encoder-decoder large language model (LLM) instead of a diffusion decoder. This proxy task builds on the observation that the $\textbf{LLM decoder}$ shares the same input feature space with $\textbf{diffusion decoders}$ that use the corresponding $\textbf{LLM encoder}$ for prompt embedding. As a result, aligning VLMs with diffusion decoders can be simplified through alignment with the LLM decoder. Without complex training and datasets, ThinkDiff effectively unleashes understanding, reasoning, and composing capabilities in diffusion models. Experiments demonstrate that ThinkDiff significantly improves accuracy from 19.2% to 46.3% on the challenging CoBSAT benchmark for multimodal in-context reasoning generation, with only 5 hours of training on 4 A100 GPUs. Additionally, ThinkDiff demonstrates exceptional performance in composing multiple images and texts into logically coherent images. Project page: https://mizhenxing.github.io/ThinkDiff.
