用强化学习提升扩散模型对复杂指令的图像生成能力
HiCoGen: Hierarchical Compositional Text-to-Image Generation in Diffusion Models via Reinforcement Learning
- 分步合成:先拆解提示词,再逐步生成带上下文的图像
- 新奖励机制让图像在整体、主体和关系上都更准确
- 适合需要精准组合多对象场景的生成任务
最近的扩散模型在简单提示下能生成高质量图像,但在涉及多个对象和层级结构的复杂提示前表现不佳,常出现概念遗漏、混淆和组合错误。为此,我们提出基于链式合成(CoS)范式的分层组合生成框架HiCoGen。首先利用大语言模型将复杂提示分解为最小语义单元,再迭代合成,每一步生成的图像为下一步提供关键视觉上下文,确保所有文本概念被忠实构建。为优化该过程,引入强化学习框架。我们发现标准扩散采样器探索有限,理论证明早期阶段集中随机性可最大化样本多样性,据此提出衰减随机性调度以增强探索。强化学习采用分层奖励机制,从全局、主体和关系三个层面评估图像。还构建了新基准HiCoPrompt,用于评估层次化提示。实验表明,本方法在概念覆盖和组合准确性上显著优于现有方法。
原文摘要 · Abstract (English)
Recent advances in diffusion models have demonstrated impressive capability in generating high-quality images for simple prompts. However, when confronted with complex prompts involving multiple objects and hierarchical structures, existing models struggle to accurately follow instructions, leading to issues such as concept omission, confusion, and poor compositionality. To address these limitations, we propose a Hierarchical Compositional Generative framework (HiCoGen) built upon a novel Chain of Synthesis (CoS) paradigm. Instead of monolithic generation, HiCoGen first leverages a Large Language Model (LLM) to decompose complex prompts into minimal semantic units. It then synthesizes these units iteratively, where the image generated in each step provides crucial visual context for the next, ensuring all textual concepts are faithfully constructed into the final scene. To further optimize this process, we introduce a reinforcement learning (RL) framework. Crucially, we identify that the limited exploration of standard diffusion samplers hinders effective RL. We theoretically prove that sample diversity is maximized by concentrating stochasticity in the early generation stages and, based on this insight, propose a novel Decaying Stochasticity Schedule to enhance exploration. Our RL algorithm is then guided by a hierarchical reward mechanism that jointly evaluates the image at the global, subject, and relationship levels. We also construct HiCoPrompt, a new text-to-image benchmark with hierarchical prompts for rigorous evaluation. Experiments show our approach significantly outperforms existing methods in both concept coverage and compositional accuracy.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。