Delving into RL for Image Generation with CoT: A Study on DPO vs. GRPO

Chengzhuo Tong, Ziyu Guo, Renrui Zhang, Wenyu Shan, Xinyu Wei, Zhenghao Xing, Hongsheng Li, Pheng-Ann Heng

Abstract

Recent advancements in Large Language Models (LLMs) have demonstrated the power of Reinforcement Learning (RL) in enhancing reasoning through Chain-of-Thought (CoT) processes. This study extends these principles to the visual domain, providing the first comprehensive comparison between Direct Preference Optimization (DPO) and Group Relative Policy Optimization (GRPO) for autoregressive image generation. By utilizing Janus-Pro as a baseline, we identify a fundamental "Specialist vs. Generalist" trade-off: DPO excels in mastering specific training distributions, while GRPO exhibits superior robustness and generalization to out-of-domain prompts.

Introduction

The success of models like DeepSeek-R1 and OpenAI’s o1 has highlighted the efficacy of RL in teaching models to "think" before they respond. In the context of autoregressive image models—which predict images token-by-token—this sequential generation acts as a visual CoT. However, applying RL to images presents unique challenges compared to text. Unlike code or mathematics, where rewards can be verified by execution or logic, image rewards are inherently subjective and rely on Reward Models (RMs) to judge aesthetics and prompt alignment.

Furthermore, a significant distribution gap exists between the long, descriptive prompts used in training and the short, simplified prompts typically provided by users. This research investigates how DPO and GRPO navigate these challenges and how different scaling strategies affect their performance.

Methodology

The study utilizes Janus-Pro as the core autoregressive model and evaluates two distinct RL paradigms:

  • Direct Preference Optimization (DPO): An off-policy approach that utilizes a static dataset of "chosen" (high-reward) and "rejected" (low-reward) image pairs. While computationally efficient, DPO is susceptible to the biases inherent in static data.
  • Group Relative Policy Optimization (GRPO): An on-policy algorithm that samples multiple outputs for a single prompt during training. It calculates rewards relative to the group average, eliminating the need for a separate critic model and allowing the model to learn from its own evolving policy.

Scaling Strategies

To understand the limits of these algorithms, the researchers explored three scaling dimensions:

  1. Sample Scaling: Increasing the number of images generated per prompt during the training phase.
  2. Data Scaling: Enhancing the diversity of the training set by using GPT-4o to generate semantically novel prompts.
  3. Iterative Scaling: Conducting multiple rounds of RL where the model’s previous outputs serve as the new baseline for preference.

Experimental Setup and Datasets

Performance was measured across two primary benchmarks to test both depth and breadth:

  • In-Domain (ID) Evaluation (T2I-CompBench): Focuses on complex prompts requiring precise attribute binding (e.g., "a red hat and blue shoes") and spatial reasoning.
  • Out-of-Domain (OOD) Evaluation (GenEval): Utilizes short, templated prompts (e.g., "a photo of a backpack") to assess how well the model generalizes to standard user behavior.

Key Insights

The Specialist vs. The Generalist

The data reveals a clear divergence in strengths. DPO acts as a "Specialist," achieving significantly higher scores on prompts that mirror the training distribution. Conversely, GRPO acts as a "Generalist," maintaining higher performance and stability when faced with unfamiliar, out-of-domain prompts.

Sensitivity to Reward Model "DNA"

The researchers found that RL performance is deeply tied to the underlying Reward Model. If an RM possesses strong intrinsic generalization—defined by its ability to accurately rank random images—the resulting RL model will also generalize better. Notably, DPO proved more sensitive to the specific RM used, whereas GRPO showed greater stability across different reward signals.

Scaling Efficiency

For GRPO, increasing the number of samples per prompt is a highly efficient method for boosting in-domain performance. For DPO, iterative training (DPO-Iter) yields the highest peak performance in-domain; however, this often comes at the cost of generalization, as the model eventually overfits to the specific preferences of the RM.

Results Summary

  • In-Domain Performance: DPO outperformed GRPO by an average of 11.53%. When using T2I-CompBench evaluation tools as the reward signal, DPO’s advantage reached 7.8%.
  • Out-of-Domain Generalization: GRPO consistently led on the GenEval benchmark, showing a peak improvement of 2.42% over DPO when using the HPS reward model.
  • Data Diversity: Increasing training data diversity helped DPO mitigate its preference bias, resulting in OOD gains of up to 1.55%, whereas narrow data scaling actually led to performance degradation.

Conclusion

This study clarifies the roles of DPO and GRPO in the evolution of visual autoregressive models. While DPO is the superior choice for maximizing performance on specific, well-defined tasks, GRPO offers a more robust path for creating models intended for general user interaction. Future research should explore hybrid strategies that combine DPO’s efficiency with GRPO’s generalization, alongside the development of more verifiable reward signals for visual reasoning.

Summary updated

BibTeX
@inproceedings{tong2025delving,
  author = {Chengzhuo Tong and Ziyu Guo and Renrui Zhang and Wenyu Shan and Xinyu Wei and Zhenghao Xing and Hongsheng Li and Pheng-Ann Heng},
  title = {{Delving into RL for Image Generation with CoT: A Study on DPO vs. GRPO}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=tMf3keuPOl},
}
Figure