Paper Reading AI Learner

Code-as-Agent: A Meta-Agent Automatically Evolving T2I Agents as Executable Programs

2026-12-02 10:14:50
Zhengqiang Zhang, Qiaosi Yi, Lingchen Sun, Xiangtao Kong, Rongyuan Wu, Lei Zhang

Abstract

Text-to-image (T2I) agents orchestrating multiple tools have recently attracted increasing attention. However, their reliance on hand-crafted tool chains hinders rapid iteration and limits the agent design space, leading to suboptimal performance. In this paper, we introduce **Code-as-Agent**, a meta-agent framework that represents a T2I agent as an executable program and automatically evolves it from a minimal seed into an increasingly capable agent program. Beginning with a program containing only a single image-generation call, the meta-agent repeatedly diagnoses its limitations, revises its code, and evaluates the revised program. This diagnosis--revision--evaluation loop replaces sporadic manual debugging with systematic automated evolution. By operating in program space rather than over fixed tool chains, the meta-agent can jointly evolve agent functionality and control flow, substantially broadening the space of possible agent designs. Once evolved, the resulting program directly serves as the T2I agent at deployment time. Experiments show that the evolved agents outperform manually designed workflows and achieve state-of-the-art performance across multiple T2I agent benchmarks. Moreover, they exhibit workflow structures and functional modules that are rather different from existing hand-crafted designs, providing evidence that program-space evolution can discover useful agent designs beyond existing manually designed workflows. The code can be found at this https URL .

Abstract (translated)

URL

https://arxiv.org/abs/2612.03558

PDF

https://arxiv.org/pdf/2612.03558.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot