mlsanityData to 7 Oct 2026

CoCo: Code as CoT for Text-to-Image Preview and Rare Concept Generation

arXiv 2603.08652 ↗First posted 9 Mar 2026cs.AIcited by 6

On the map: LLM reasoning → Multimodal reasoning

Abstract (arXiv)

Recent advancements in Unified Multimodal Models (UMMs) have significantly advanced text-to-image (T2I) generation, particularly through the integration of Chain-of-Thought (CoT) reasoning. However, existing CoT-based T2I methods largely rely on abstract natural-language planning, which lacks the precision required for complex spatial layouts, structured visual elements, and dense textual content. In this work, we propose CoCo (Code-as-CoT), a code-driven reasoning framework that represents the reasoning process as executable code, enabling explicit and verifiable intermediate planning for image generation. Given a text prompt, CoCo first generates executable code that specifies the structural layout of the scene. The code is then executed in a sandboxed environment to render a deterministic draft image. Subsequently, the model refines this draft through fine-grained image editing to produce the final high-fidelity result. To support this training paradigm, we construct CoCo-10K, a curated dataset containing structured draft-final image pairs designed to teach both structured draft construction and corrective visual refinement. Empirical evaluations on StructT2IBench, OneIG-Bench, and LongText-Bench show that CoCo achieves improvements of 68.83%, 54.8%, and 41.23%, respectively, over direct generation, while also outperforming other CoT-enhanced generation methods. These results demonstrate that executable code is an effective and reliable reasoning paradigm for precise, controllable, and structured text-to-image generation.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Multimodal reasoning, one of 17 directions in LLM reasoning. Builds on 86 of its 100 references that are in the map. First posted on arXiv 9 Mar 2026.

Builds on

86 of 100 references.

Closest ancestors · 14

Same direction, newest first

  1. 2026DeepScan: A Training-Free Framework for Visually Grounded Reasoning in Large Vision-Language Models4 Mar
  2. 2025Latent Sketchpad: Sketching Visual Thoughts to Elicit Multimodal Reasoning in MLLMs28 Oct
  3. 2025Improving Chain-of-Thought Efficiency for Autoregressive Image Generation7 Oct
  4. 2025Factuality Matters: When Image Generation and Editing Meet Structured Visuals6 Oct
  5. 2025Understanding-in-Generation: Reinforcing Generative Capability of Unified Model via Infusing Understanding into Generation23 Sep
  6. 2025PeRL: Permutation-Enhanced Reinforcement Learning for Interleaved Vision-Language Reasoning17 Jun
  7. 2025ReasonGen-R1: CoT for Autoregressive Image generation models through SFT and RL30 May
  8. 2025VisualQuality-R1: Reasoning-Induced Image Quality Assessment via Reinforcement Learning to Rank20 May
  9. 2025T2I-R1: Reinforcing Image Generation with Collaborative Semantic-level and Token-level CoT1 May
  10. 2025VLM-R1: A Stable and Generalizable R1-style Large Vision-Language Model10 Apr
  11. 2025Kimi-VL Technical Report10 Apr
  12. 2025LMM-R1: Empowering 3B LMMs with Strong Reasoning Abilities Through Two-Stage Rule-Based RL10 Mar
2 more
  1. 2025MME-CoT: Benchmarking Chain-of-Thought in Large Multimodal Models for Reasoning Quality, Robustness, and Efficiency13 Feb
  2. 2025Can We Generate Images with CoT? Let's Verify and Reinforce Image Generation Step by Step23 Jan

Other references · 72

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  3. 2022Flow Matching for Generative Modelingcited by 5,426
  4. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  5. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  6. 2024Scaling Rectified Flow Transformers for High-Resolution Image Synthesiscited by 4,094
  7. 2022Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flowcited by 3,550
  8. 2023MMMU: A Massive Multi-discipline Multimodal Understanding and Reasoning Benchmark for Expert AGIcited by 2,044
  9. 2022Scaling Autoregressive Models for Content-Rich Text-to-Image Generationcited by 1,287
  10. 2025SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Featurescited by 1,127
  11. 2025Qwen-Image Technical Reportcited by 973
  12. 2023GenEval: An Object-Focused Framework for Evaluating Text-to-Image Alignmentcited by 946
38 more
  1. 2024Chameleon: Mixed-Modal Early-Fusion Foundation Modelscited by 904
  2. 2025Emerging Properties in Unified Multimodal Pretrainingcited by 855
  3. 2025Janus-Pro: Unified Multimodal Understanding and Generation with Data and Model Scalingcited by 787
  4. 2024Emu3: Next-Token Prediction is All You Needcited by 761
  5. 2024Show-o: One Single Transformer to Unify Multimodal Understanding and Generationcited by 734
  6. 2019MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalismscited by 653
  7. 2024Diffusion Forcing: Next-token Prediction Meets Full-Sequence Diffusioncited by 634
  8. 2024MathVerse: Does Your Multi-modal LLM Truly See the Diagrams in Visual Math Problems?cited by 573
  9. 2024Transfusion: Predict the Next Token and Diffuse Images with One Multi-Modal Modelcited by 468
  10. 2024ELLA: Equip Diffusion Models with LLM for Enhanced Semantic Alignmentcited by 455
  11. 2024Janus: Decoupling Visual Encoding for Unified Multimodal Understanding and Generationcited by 447
  12. 2023TIFA: Accurate and Interpretable Text-to-Image Faithfulness Evaluation with Question Answeringcited by 416
  13. 2024OmniGen: Unified Image Generationcited by 388
  14. 2025Seed1.5-VL Technical Reportcited by 367
  15. 2025BLIP3-o: A Family of Fully Open Unified Multimodal Models-Architecture, Training and Datasetcited by 363
  16. 2024VILA-U: a Unified Foundation Model Integrating Visual Understanding and Generationcited by 290
  17. 2023T2I-CompBench++: An Enhanced and Comprehensive Benchmark for Compositional Text-to-image Generationcited by 253
  18. 2025Show-o2: Improved Native Unified Multimodal Modelscited by 242
  19. 2025Seedream 4.0: Toward Next-generation Multimodal Image Generationcited by 233
  20. 2024MetaMorph: Multimodal Understanding and Generation via Instruction Tuningcited by 205
  21. 2024TokenFlow: Unified Image Tokenizer for Multimodal Understanding and Generationcited by 200
  22. 2025Unified Reward Model for Multimodal Understanding and Generationcited by 194
  23. 2025WebAgent-R1: Training Web Agents via End-to-End Multi-Turn Reinforcement Learningcited by 162
  24. 2024Mixture-of-Transformers: A Sparse and Scalable Architecture for Multi-Modal Foundation Modelscited by 151
  25. 2025HiDream-I1: A High-Efficient Image Generative Foundation Model with Sparse Diffusion Transformercited by 131
  26. 2024GenAI-Bench: Evaluating and Improving Compositional Text-to-Visual Generationcited by 130
  27. 2024LMFusion: Adapting Pretrained Language Models for Multimodal Generationcited by 120
  28. 2025Emu3.5: Native Multimodal Models are World Learnerscited by 119
  29. 2025Mogao: An Omni Foundation Model for Interleaved Multi-Modal Generationcited by 108
  30. 2025X-Omni: Reinforcement Learning Makes Discrete Autoregressive Image Generative Models Great Againcited by 105
  31. 2025Lumina-DiMOO: An Omni Diffusion Large Language Model for Multi-Modal Generation and Understandingcited by 83
  32. 2025OneIG-Bench: Omni-dimensional Nuanced Evaluation for Image Generationcited by 81
  33. 2024Calibrated Self-Rewarding Vision Language Modelscited by 77
  34. 2025Vision-R1: Evolving Human-Free Alignment in Large Vision-Language Models via Vision-Guided Reinforcement Learningcited by 68
  35. 2025Ovis-U1 Technical Reportcited by 65
  36. 2025TIIF-Bench: How Does Your T2I Model Follow Your Instructions?cited by 64
  37. 2025Agent RL Scaling Law: Agent RL with Spontaneous Code Execution for Mathematical Problem Solvingcited by 62
  38. 2024ConceptMix: A Compositional Image Generation Benchmark with Controllable Difficultycited by 60

50 most cited of 72 All 72 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025DraCo: Draft as CoT for Text-to-Image Preview and Rare Concept Generation
  2. 2025Beyond Textual CoT: Interleaved Text-Image Chains with Deep Confidence Reasoning for Image Editing
  3. 2026IV-CoT: Implicit Visual Chain-of-Thought for Structure-Aware Text-to-Image Generation
  4. 2025LayerCraft: Enhancing Text-to-Image Generation with CoT Reasoning and Layered Object Integration
  5. 2025CRAFT: Continuous Reasoning and Agentic Feedback Tuning for Multimodal Text-to-Image Generation
  6. 2025GoT: Unleashing Reasoning Capability of Multimodal Large Language Model for Visual Generation and Editing
  7. 2025CoT-lized Diffusion: Let's Reinforce T2I Generation Step-by-step
  8. 2024TIE: Revolutionizing Text-based Image Editing for Complex-Prompt Following and High-Fidelity Editing