SCOPE:面向文本到图像生成的提示工程语义有界信用优化
研究论文 · 2026/10/16
强化学习(RL)使语言模型能够通过重写提示来改进文本到图像(T2I)生成,而图像生成器保持冻结。现有方法通常将来自图像的单一信号应用于各个子词标记,尽管对象、计数、属性和关系形成了连贯的语义跨度。我们提出了SCOPE,一种基于组相对策略优化(GRPO)的目标,使更新权重与这种结构对齐。重写器联合生成增强提示及其语义分区。SCOPE在每个跨度内池化策略对数概率的变化,为其标记损失推导共享系数,同时为每个完成保留单一优势。它既不需要单独的跨度奖励,也不需要额外的图像渲染。在Qwen-Image、SD3和FLUX.1-dev上,SCOPE在GeneVal上比原始GRPO平均相对提升9.48%,在T2I-CompBench上提升7.62%。消融研究表明,语义边界和跨度内池化都对性能提升有贡献,支持语义结构作为RL提示工程的实际归纳偏差。
该研究提出了一种新颖的强化学习方法,通过利用语义结构显著提升了文本到图像生成的性能,且无需额外奖励或渲染,具有实际应用价值。
Reinforcement learning (RL) enables language models to improve text-to-image (T2I) generation by rewriting prompts for a frozen image generator. Existing methods typically apply a single signal derived from the image to individual subword tokens, although objects, counts, attributes, and relations form coherent semantic spans. We propose SCOPE, an objective based on Group Relative Policy Optimization (GRPO) that aligns update weighting with this structure. The rewriter jointly generates an enhanced prompt and its semantic partition. SCOPE pools shifts in policy log probabilities within each span to derive a shared coefficient for its token losses while retaining a single advantage for each completion. It requires neither separate span rewards nor additional image renders. Across Qwen-Image, SD3, and FLUX.1-dev, SCOPE achieves average relative gains over vanilla GRPO of 9.48% on GeneVal and 7.62% on T2I-CompBench. Ablation studies show that both semantic boundaries and pooling within spans contribute to these gains, supporting semantic structure as a practical inductive bias for prompt engineering with RL.