Lune

NeurIPS2023Top-tier venue

Visual Programming for Step-by-Step Text-to-Image Generation and Evaluation

Jaemin Cho, Abhay Zala, Mohit Bansal

Abstract

As large language models have demonstrated impressive performance in many domains, recent works have adopted language models (LMs) as controllers of visual modules for vision-and-language tasks. While existing work focuses on equipping LMs with visual understanding, we propose two novel interpretable/explainable visual programming frameworks for text-to-image (T2I) generation and evaluation. First, we introduce VPGEN, an interpretable step-by-step T2I generation framework that decomposes T2I generation into three steps: object/count generation, layout generation, and image generation. We employ an LM to handle the first two steps (object/count generation and layout generation), by finetuning it on textlayout pairs. Our step-by-step T2I generation framework provides stronger spatial control than end-to-end models, the dominant approach for this task. Furthermore, we leverage the world knowledge of pretrained LMs, overcoming the limitation of previous layout-guided T2I works that can only handle predefined object classes. We demonstrate that our VPGEN has improved control in counts/spatial relations/scales of objects than state-of-the-art T2I generation models. Second, we introduce VPEVAL, an interpretable and explainable evaluation framework for T2I generation based on visual programming. Unlike previous T2I evaluations with a single scoring model that is accurate in some skills but unreliable in others, VPEVAL produces evaluation programs that invoke a set of visual modules that are experts in different skills, and also provides visual+textual explanations of the evaluation results. Our analysis shows that VPEVAL provides a more humancorrelated evaluation for skill-specific and open-ended prompts than widely used single model-based evaluation. We hope that our work encourages future progress on interpretable/explainable generation and evaluation for T2I models. (a) VPGen: Step-by-Step T2I Generation "two Pikachus on a table" (b) VPEval: Explainable T2I Evaluation "three dogs in the image" imgGen(getLayout(getObjCounts(prompt), prompt), prompt) Visual Program countEval(img, "dog", "==3") Visual Program >>> countEval(img, "dog", "==3") False Evaluation Program >>> prompt = "two Pikachus on a table" >>> obj2count = getObjCounts(prompt) # "pikachu":

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

23 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • LoRA: Low-Rank Adaptation of Large Language Models cites Language Models are Few-Shot Learners
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
  • Bifrost-1: Bridging Multimodal LLMs and Diffusion Models with Patch-level CLIP Latents cites Language Models are Few-Shot Learners
  • Bifrost-1: Bridging Multimodal LLMs and Diffusion Models with Patch-level CLIP Latents cites Learning Transferable Visual Models From Natural Language Supervision
  • Identity Decoupling for Multi-Subject Personalization of Text-to-Image Models cites LoRA: Low-Rank Adaptation of Large Language Models
  • Identity Decoupling for Multi-Subject Personalization of Text-to-Image Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Identity Decoupling for Multi-Subject Personalization of Text-to-Image Models cites Learning Transferable Visual Models From Natural Language Supervision
  • Identity Decoupling for Multi-Subject Personalization of Text-to-Image Models cites Denoising Diffusion Probabilistic Models
  • Easier Painting Than Thinking: Can Text-to-Image Models Set the Stage, but Not Direct the Play? cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Easier Painting Than Thinking: Can Text-to-Image Models Set the Stage, but Not Direct the Play? cites Denoising Diffusion Probabilistic Models
  • VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image Synthesis cites High-Resolution Image Synthesis with Latent Diffusion Models
  • VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image Synthesis cites Language Models are Few-Shot Learners
  • VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image Synthesis cites Learning Transferable Visual Models From Natural Language Supervision
  • VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image Synthesis cites Denoising Diffusion Probabilistic Models
  • Learning Transferable Visual Models From Natural Language Supervision cites Language Models are Few-Shot Learners
  • CreatiLayout: Siamese Multimodal Diffusion Transformer for Creative Layout-to-Image Generation cites LoRA: Low-Rank Adaptation of Large Language Models
  • CreatiLayout: Siamese Multimodal Diffusion Transformer for Creative Layout-to-Image Generation cites High-Resolution Image Synthesis with Latent Diffusion Models
  • CreatiLayout: Siamese Multimodal Diffusion Transformer for Creative Layout-to-Image Generation cites Learning Transferable Visual Models From Natural Language Supervision
  • CreatiLayout: Siamese Multimodal Diffusion Transformer for Creative Layout-to-Image Generation cites Denoising Diffusion Probabilistic Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers23

  1. Identity Decoupling for Multi-Subject Personalization of Text-to-Image ModelsSangwon Jang, Jaehyeong Jo, Kimin Lee, Sung Ju HwangNeurIPS 2024 · 42 citations
  2. Easier Painting Than Thinking: Can Text-to-Image Models Set the Stage, but Not Direct the Play?Ouxiang Li, Yuan Wang, Xinting Hu, Huijuan Huang et al.ICLR 2026 · 39 citations
  3. Bifrost-1: Bridging Multimodal LLMs and Diffusion Models with Patch-level CLIP LatentsHan Lin, Jaemin Cho, Amir Zadeh, Chuan Li et al.NeurIPS 2025 · 9 citations
  4. VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image SynthesisShiyu Wu, Mingzhen Sun, Weining Wang, Yequan Wang et al.ICLR 2026 · 7 citations
  5. CreatiLayout: Siamese Multimodal Diffusion Transformer for Creative Layout-to-Image GenerationHui Zhang, Dexiang Hong, Yitong Wang, Jie Shao et al.ICCV 2025 · 7 citations

Builds on22

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  3. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  4. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
  5. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations

Related papers

  1. Closing the Feedback Loop in Text2Vis: Refining Visualization with Vision-Language ModelsShengze Shi, Tao Ren, Guoliang Zhu, Guan Dong Feng et al.ACM MM 2025 · 2 citations
  2. ViperGPT: Visual Inference via Python Execution for ReasoningDídac Surís, Sachit Menon, Carl VondrickICCV 2023 · 732 citations
  3. Enhance Multimodal Consistency and Coherence for Text-Image Plan GenerationXiaoxin Lu, Ranran Haoran Zhang, Yusen Zhang, Rui ZhangACL Findings 2025
  4. VisEval: A Benchmark for Data Visualization in the Era of Large Language ModelsNan Chen, Yuge Zhang, Jiahang Xu, Kan Ren et al.IEEE VIS 2024 · 44 citations
  5. TURTLEAI: Benchmarking Multimodal Models for Visual Programming in Turtle GraphicsChao Wen, Jacqueline Staub, Adish SinglaACL Findings 2026
Dusk over the sea between two cliffs drawn in fine vertical lines