Visual Programming for Step-by-Step Text-to-Image Generation and Evaluation
Jaemin Cho, Abhay Zala, Mohit Bansal
摘要
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":
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 23 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- LoRA: Low-Rank Adaptation of Large Language Models 引用了 Language Models are Few-Shot Learners
- High-Resolution Image Synthesis with Latent Diffusion Models 引用了 Denoising Diffusion Probabilistic Models
- Bifrost-1: Bridging Multimodal LLMs and Diffusion Models with Patch-level CLIP Latents 引用了 Language Models are Few-Shot Learners
- Bifrost-1: Bridging Multimodal LLMs and Diffusion Models with Patch-level CLIP Latents 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Identity Decoupling for Multi-Subject Personalization of Text-to-Image Models 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- Identity Decoupling for Multi-Subject Personalization of Text-to-Image Models 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- Identity Decoupling for Multi-Subject Personalization of Text-to-Image Models 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Identity Decoupling for Multi-Subject Personalization of Text-to-Image Models 引用了 Denoising Diffusion Probabilistic Models
- Easier Painting Than Thinking: Can Text-to-Image Models Set the Stage, but Not Direct the Play? 引用了 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? 引用了 Denoising Diffusion Probabilistic Models
- VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image Synthesis 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image Synthesis 引用了 Language Models are Few-Shot Learners
- VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image Synthesis 引用了 Learning Transferable Visual Models From Natural Language Supervision
- VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image Synthesis 引用了 Denoising Diffusion Probabilistic Models
- Learning Transferable Visual Models From Natural Language Supervision 引用了 Language Models are Few-Shot Learners
- CreatiLayout: Siamese Multimodal Diffusion Transformer for Creative Layout-to-Image Generation 引用了 LoRA: Low-Rank Adaptation of Large Language Models
- CreatiLayout: Siamese Multimodal Diffusion Transformer for Creative Layout-to-Image Generation 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- CreatiLayout: Siamese Multimodal Diffusion Transformer for Creative Layout-to-Image Generation 引用了 Learning Transferable Visual Models From Natural Language Supervision
- CreatiLayout: Siamese Multimodal Diffusion Transformer for Creative Layout-to-Image Generation 引用了 Denoising Diffusion Probabilistic Models
引用它的顶会 Paper23
- Identity Decoupling for Multi-Subject Personalization of Text-to-Image ModelsSangwon Jang, Jaehyeong Jo, Kimin Lee, Sung Ju HwangNeurIPS 2024 · 42 次引用
- 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 等ICLR 2026 · 39 次引用
- Bifrost-1: Bridging Multimodal LLMs and Diffusion Models with Patch-level CLIP LatentsHan Lin, Jaemin Cho, Amir Zadeh, Chuan Li 等NeurIPS 2025 · 9 次引用
- VisualPrompter: Semantic-Aware Prompt Optimization with Visual Feedback for Text-to-Image SynthesisShiyu Wu, Mingzhen Sun, Weining Wang, Yequan Wang 等ICLR 2026 · 7 次引用
- CreatiLayout: Siamese Multimodal Diffusion Transformer for Creative Layout-to-Image GenerationHui Zhang, Dexiang Hong, Yitong Wang, Jie Shao 等ICCV 2025 · 7 次引用
它引用的 Paper22
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 次引用
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu 等ICLR 2022 · 18,833 次引用
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser 等CVPR 2022 · 13,123 次引用
相关 Paper
- Closing the Feedback Loop in Text2Vis: Refining Visualization with Vision-Language ModelsShengze Shi, Tao Ren, Guoliang Zhu, Guan Dong Feng 等ACM MM 2025 · 2 次引用
- ViperGPT: Visual Inference via Python Execution for ReasoningDídac Surís, Sachit Menon, Carl VondrickICCV 2023 · 732 次引用
- Enhance Multimodal Consistency and Coherence for Text-Image Plan GenerationXiaoxin Lu, Ranran Haoran Zhang, Yusen Zhang, Rui ZhangACL Findings 2025
- VisEval: A Benchmark for Data Visualization in the Era of Large Language ModelsNan Chen, Yuge Zhang, Jiahang Xu, Kan Ren 等IEEE VIS 2024 · 44 次引用
- TURTLEAI: Benchmarking Multimodal Models for Visual Programming in Turtle GraphicsChao Wen, Jacqueline Staub, Adish SinglaACL Findings 2026
