2025-11-21 · 进阶 · 计算机视觉 · 机器学习

Thinking-while-Generating: Interleaving Textual Reasoning throughout Visual Generation

该论文提出了“生成时思考”(TWIG)框架,通过在视觉生成过程中穿插文本推理,实现了更符合上下文和语义丰富的视觉输出。

更新于 2025-11-21。作者:Ziyu Guo、Renrui Zhang、Hongyu Li、Manyuan Zhang、Xinyan Chen、Sifan Wang、Yan Feng、Peng Pei、Pheng-Ann Heng。

中文摘要

近期,视觉生成领域的研究越来越多地探索推理能力的集成。它们结合了文本推理,即在前(作为预规划)或后(作为后精炼)生成过程进行思考,然而在生成过程中却缺乏即时的多模态交互。在这项初步研究中,我们引入了“生成时思考”(TwiG),这是第一个允许在整个视觉生成过程中协同进化文本推理的交织框架。随着视觉内容的逐步生成,文本推理被交织进来,既指导即将生成的局部区域,又反思之前综合的内容。这种动态的互动产生了更加情境感知和语义丰富的视觉输出。为了揭示该框架的潜力,我们调查了三种候选策略:零样本提示、在我们的定制TwiG-50K数据集上进行监督微调(SFT)以及通过定制TwiG-GRPO策略的强化学习(RL),每种策略都为交织推理的动态提供了独特的见解。我们希望这项工作能够激发对交织文本推理以增强视觉生成进行进一步研究。代码将在以下网址发布:https://github.com/ZiyuGuo99/Thinking-while-Generating。

英文摘要

Recent advances in visual generation have increasingly explored the integration of reasoning capabilities. They incorporate textual reasoning, i.e., think, either before (as pre-planning) or after (as post-refinement) the generation process, yet they lack on-the-fly multimodal interaction during the generation itself. In this preliminary study, we introduce Thinking-while-Generating (TwiG), the first interleaved framework that enables co-evolving textual reasoning throughout the visual generation process. As visual content is progressively generating, textual reasoning is interleaved to both guide upcoming local regions and reflect on previously synthesized ones. This dynamic interplay produces more context-aware and semantically rich visual outputs. To unveil the potential of this framework, we investigate three candidate strategies, zero-shot prompting, supervised fine-tuning (SFT) on our curated TwiG-50K dataset, and reinforcement learning (RL) via a customized TwiG-GRPO strategy, each offering unique insights into the dynamics of interleaved reasoning. We hope this work inspires further research into interleaving textual reasoning for enhanced visual generation. Code will be released at: https://github.com/ZiyuGuo99/Thinking-while-Generating.

解读

一句话总结

该论文提出了“生成时思考”(TWIG)框架,通过在视觉生成过程中穿插文本推理,实现了更符合上下文和语义丰富的视觉输出。

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

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

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

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

来源