ReasonGen-R1: Chain-of-Thought Reasoning for Autoregressive Image Generation

Yu Zhang, Yunqi Li, Yifan Yang, Rui Wang, Yuqing Yang, Qi Dai, Jianmin Bao, Dongdong Chen, Chong Luo, Lili QiuTMLR 2026

TL;DR

Large language models (LLMs) famously get smarter when they "think out loud" using chain-of-thought (CoT) reasoning before answering. ReasonGen-R1 brings this exact trick to autoregressive image generation: a single model writes out a textual visual plan—deciding on layout, lighting, and object details—and then immediately generates the image tokens in one continuous sequence. Using a simple binary reward from a vision–language model on the final image alone, ReasonGen-R1 significantly boosts instruction-following accuracy over its base model without needing complex per-step rewards.

What Problem Does This Paper Address?

Unified autoregressive (AR) multimodal models—like Janus-Pro-7B—can understand and generate both text and images within a shared token space. Yet, when asked to generate an image from a complex prompt (e.g., "a 5×4 grid of mountain silhouettes" or "two sandwiches and two buses"), they typically jump straight from the prompt to image tokens. Without an explicit planning stage, they often fumble multi-object counting, attribute binding, and spatial relationships.

Recent attempts to fix this either split reasoning and generation into two separate stages, rely on external diffusion models, or require specialized grounding inputs and complex process rewards. The authors ask a simpler question: Can a single unified AR policy learn to plan in free-form text and generate images in one continuous pass, optimized solely by a minimal, final-image-only reward?

Methods

ReasonGen-R1 builds on Janus-Pro-7B using a two-stage post-training pipeline:

  1. Supervised Fine-Tuning (SFT) Warmup: To teach the model how to transition smoothly from text to pixels, the authors train it on sequences formatted as prompt → CoT reasoning → <img_start> → image tokens. They explore two CoT styles: Short-to-Long recaptioning (enriching the prompt with descriptive context) and Step-by-Step reasoning (breaking the scene down into ordered decisions like layout and lighting).

  2. Reinforcement Learning with GRPO: Next, they apply Group Relative Policy Optimization (GRPO)—an RL algorithm popularized by DeepSeek-R1 that normalizes rewards across a group of sampled outputs, avoiding the need for a separate critic model. In each rollout, the model generates a full text-plus-image sequence, and a single pretrained vision–language model (Qwen-2.5-VL-7B) acts as a binary verifier, scoring only whether the final image matches the original prompt. Because text and image tokens share the same policy, the image-level reward propagates backward to reinforce better textual plans.

Overall framework of ReasonGen-R1
  1. Signed Adaptive Entropy Loss: Interleaved text–image RL is notoriously unstable: too little regularization causes entropy explosion, while a fixed penalty causes mode collapse. Inspired by Soft Actor-Critic (SAC), the authors introduce a signed learnable entropy coefficient ($\alpha = \arcsin(\phi)$) with separate target entropies for text (2.0) and image (7.0) tokens, allowing the model to dynamically encourage or suppress uncertainty as needed.

Datasets

  • SFT Training: 200,000 square-cropped images from LAION-Aesthetic V1, paired with concise captions (generated by GPT-4.1 mini) and augmented/detailed captions (generated by GPT-4.1 nano).
  • RL Training: Prompts synthesized from three benchmark families: GenEval (12,367 prompts from an expanded 308-object vocabulary, filtered for test-set overlap), DPG-Bench (5,000 newly rewritten prompts via GPT-4.1), and T2I-CompBench++ (11,003 official training prompts).
  • Evaluation: Tested on GenEval, DPG-Bench, and T2I-Benchmark (6,000 compositional prompts).

Key Insights and Ideas

  • A binary, final-image-only reward is enough: You don't need a reward model to read or grade the CoT itself. Evaluating only the final image prevents the policy from "reward hacking" by writing persuasive-sounding text that doesn't actually help the image.
  • Reward model size matters: Replacing the 7B VLM reward model with a 3B VLM or CLIP-H still improves over SFT-only training, but fails to surpass the original Janus-Pro-7B baseline.
  • The CoT actually steers the image: In controlled substitution tests, tweaking a single phrase in the generated CoT (e.g., changing "warm sunlight glows softly" to "bright sunlight shines") produces visible shifts in lighting tone and shadow contrast in the final image.
  • Image CoT ≠ Math CoT: Unlike math proofs, visual planning is underdetermined—many layouts and styles can satisfy one prompt. The CoT functions as an explicit visual planning interface rather than a uniquely verifiable reasoning chain.

Key Results

ReasonGen-R1 consistently outperforms its Janus-Pro-7B base model across all three benchmark families:

Figure 2: Left: side-by-side visualizations of images generated by Janus-Pro-7B and ReasonGen-R1 using identical (summarized) prompts. Right: performance comparison across three instruction-following bench- marks. In every benchmark, ReasonGen-R1 improves over the base Janus-Pro-7B model, demonstrating a substantial improvement in its ability to follow instructions.
  • GenEval: Achieves 0.86 overall (up from 0.80 for Janus-Pro-7B), outperforming prior reasoning-based AR models like GoT-R1 (0.75) and T2I-R1 (0.79).
  • DPG-Bench: Reaches 85.88 overall (up from 84.19), the highest among listed reasoning-based methods.
  • T2I-Benchmark: Results are mixed across sub-metrics—ReasonGen-R1 leads listed reasoning-based AR models on Color (0.8321) and Non-Spatial (0.3375), but trails T2I-R1 and GoT-R1 on Spatial (0.3007) and Complex (0.3909).
  • Human Preference: In a blind user study (21 participants, 630 pairwise comparisons), ReasonGen-R1 was preferred over Janus-Pro-7B in 72.7% of cases.
  • Latency Cost: Generating the 50–200 CoT tokens adds 41–54% to inference time on a 40 GB A100 GPU (e.g., 20.5s vs. 13.3s per prompt on GenEval).

Limitations and Future Work

The authors note several open questions. Experiments were limited to text-to-image generation from scratch on a single backbone (Janus-Pro-7B), leaving transfer to image editing, multi-turn generation, or other architectures unexplored. Additionally, because the CoT and no-CoT RL variants start from different checkpoints (post-SFT vs. base Janus-Pro), the causal contribution of semantic CoT cannot be cleanly isolated from SFT and text conditioning without matched-initialization controls. Finally, the paper does not report multi-seed variance or significance tests, and leaves broader out-of-distribution generalization for future work.

Summary updated

BibTeX
@article{zhang2026reasongen,
  author = {Yu Zhang and Yunqi Li and Yifan Yang and Rui Wang and Yuqing Yang and Qi Dai and Jianmin Bao and Dongdong Chen and Chong Luo and Lili Qiu},
  title = {{ReasonGen-R1: Chain-of-Thought Reasoning for Autoregressive Image Generation}},
  journal = {Accepted by TMLR},
  year = {2026},
  url = {https://openreview.net/forum?id=YnZJXGd1S7},
}
Figure