2026-01-16 · 专家 · 计算机视觉 · 自然语言处理 · 机器学习

Think-Then-Generate: Reasoning-Aware Text-to-Image Diffusion with LLM Encoders

该论文提出了一个名为“Think-Then-Generate”的范式,通过利用大型语言模型(LLM)的推理能力,来提高文本到图像(T2I)扩散模型在图像生成和编辑任务中的语义一致性和视觉真实性。

更新于 2026-01-27。作者:Siqi Kou、Jiachun Jin、Zetong Zhou、Ye Ma、Yugang Wang、Quan Chen、Peng Jiang、Xiao Yang、Jun Zhu、Kai Yu、Zhijie Deng。

中文摘要

近年来,文本到图像(T2I)扩散模型(DMs)的进展使得从多种文本提示中合成高质量视觉内容成为可能。然而,大多数现有的T2I DMs,即使配备了基于大型语言模型(LLM)的文本编码器,仍然只是文本到像素的映射器——它们仅仅将LLM作为文本编码器使用,而没有利用其固有的推理能力来推断在文本提示下应如何进行视觉表现。为了超越这种字面生成,我们提出了“先思考后生成”(T2G)范式,其中鼓励基于LLM的文本编码器对原始用户提示进行推理和重写;重写后的提示状态随后作为扩散条件。为了实现这一点,我们首先通过轻量级的监督微调过程激活LLM编码器的“先思考后重写”模式。随后,LLM编码器和扩散骨干协同优化,以确保通过Dual-GRPO对上下文进行忠实推理以及通过准确渲染语义。特别是,使用基于图像的奖励来强化文本编码器,以推断和回忆世界知识,同时推动扩散骨干产生语义一致且视觉连贯的图像。实验表明,在基于推理的图像生成和编辑基准测试中,事实一致性、语义对齐和视觉真实感方面均有显著提升,达到0.79的WISE评分,几乎与GPT-4相当。我们的结果构成了迈向下一代具有推理、表达和演示能力统一模型的有希望的一步。

英文摘要

Recent progress in text-to-image (T2I) diffusion models (DMs) has enabled high-quality visual synthesis from diverse textual prompts. Yet, most existing T2I DMs, even those equipped with large language model (LLM)-based text encoders, remain text-pixel mappers -- they employ LLMs merely as text encoders, without leveraging their inherent reasoning capabilities to infer what should be visually depicted given the textual prompt. To move beyond such literal generation, we propose the think-then-generate (T2G) paradigm, where the LLM-based text encoder is encouraged to reason about and rewrite raw user prompts; the states of the rewritten prompts then serve as diffusion conditioning. To achieve this, we first activate the think-then-rewrite pattern of the LLM encoder with a lightweight supervised fine-tuning process. Subsequently, the LLM encoder and diffusion backbone are co-optimized to ensure faithful reasoning about the context and accurate rendering of the semantics via Dual-GRPO. In particular, the text encoder is reinforced using image-grounded rewards to infer and recall world knowledge, while the diffusion backbone is pushed to produce semantically consistent and visually coherent images. Experiments show substantial improvements in factual consistency, semantic alignment, and visual realism across reasoning-based image generation and editing benchmarks, achieving 0.79 on WISE score, nearly on par with GPT-4. Our results constitute a promising step toward next-generation unified models with reasoning, expression, and demonstration capacities.

解读

一句话总结

该论文提出了一个名为“Think-Then-Generate”的范式,通过利用大型语言模型(LLM)的推理能力,来提高文本到图像(T2I)扩散模型在图像生成和编辑任务中的语义一致性和视觉真实性。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源