Abstract
Modern text-to-image models often struggle with complex compositional prompts involving specific spatial relationships and attribute bindings. GoT-R1 addresses this by treating visual generation as a multi-step reasoning task optimized via Reinforcement Learning (RL). By applying Group Relative Policy Optimization (GRPO) to a unified Multimodal Large Language Model (MLLM), the framework enables the model to autonomously discover sophisticated spatial-semantic reasoning strategies. GoT-R1 achieves state-of-the-art results on benchmarks like T2I-CompBench and GenEval, demonstrating a significant leap in the ability of models to "think" before they draw.
Introduction
Despite the high visual quality of current diffusion-based models, they frequently fail at "compositional" tasks—for instance, swapping colors between objects or misplacing items relative to one another. This limitation stems from the direct mapping of text embeddings to visual features without an intermediate planning phase.
While the Generation Chain-of-Thought (GoT) framework introduced a planning stage where models write object descriptions and coordinates before drawing, it initially relied on rigid, human-defined templates. GoT-R1 removes these constraints by allowing the model to learn reasoning through trial and error, discovering more efficient and diverse ways to organize complex scenes.
Methods
The GoT-R1 framework treats image generation as an autoregressive reasoning process.
Architecture and Optimization
The system utilizes Janus-Pro, a unified MLLM capable of processing and generating both text and image tokens. To optimize the model's reasoning paths, the researchers employed Group Relative Policy Optimization (GRPO). GRPO evaluates a group of sampled outputs against each other, which avoids the complexity of maintaining a separate critic model while effectively steering the policy toward better reasoning chains.
Multi-Dimensional Reward System
A critical innovation in GoT-R1 is its dual-stage reward system, which evaluates four distinct dimensions to ensure both high-quality reasoning and visual fidelity:
- Semantic Alignment: Checks if the text plan includes all requested objects and attributes.
- Spatial Accuracy: Verifies if planned coordinates match spatial instructions (e.g., "left of"). To improve accuracy, coordinates are rendered as boxes on a canvas for the reward MLLM to inspect visually.
- Reasoning-to-Image Consistency: Ensures the final generated image adheres to the model's own generated plan.
- Prompt-to-Image Quality: Assesses the final image's overall quality and alignment with the original user prompt.
Results
GoT-R1-7B established new state-of-the-art benchmarks across rigorous compositional evaluations.
- T2I-CompBench: The model secured top scores in 5 out of 6 categories, notably outperforming industry leaders like FLUX.1 and DALL-E 3 in spatial and complex attribute tasks.
- GenEval: It achieved an overall score of 0.75, a substantial improvement over the non-RL baseline of 0.64.
- Human and Model Preference: In blind evaluations, GPT-4o preferred the reasoning chains produced by GoT-R1 over the baseline approximately 80% of the time.
Qualitatively, the model shows a marked improvement in following intricate instructions, such as specific object counts or precise color-object pairings that typically trip up standard models.
Discussion and Conclusion
The success of GoT-R1 suggests that reasoning capabilities are transferable to the visual domain. By providing process-based supervision rather than just outcome-based rewards, MLLMs can be trained to develop "free-style" reasoning strategies that surpass fixed templates.
However, challenges remain. The computational cost of RL on image tokens is high, and the system's performance is inherently limited by the perceptual capabilities of the MLLM used as a rewarder. Future work will explore scaling these models and applying similar RL-driven reasoning to tasks like multi-step image editing and complex graphic design.
Summary updated