Self-Improving Action-Based Framework for Evaluating and Assigning Tasks for Image Generation Models
DOI:
https://doi.org/10.65405/bz7gzk82Keywords:
Text-to-image generation, model evaluation, task assignment, self-improving systems, action-based evaluation, diffusion models, online policy learning, contextual multi-armed bandits, UCB1, reinforcement learning, Python implementationAbstract
The rapid proliferation of text-to-image generation models—spanning diffusion-based, GAN-based, and transformer architectures—has produced a fragmented ecosystem in which no single model performs best across every task type. Current practice still relies on manual, ad hoc model selection and on static evaluation metrics that capture general image quality but overlook task-specific fitness. This paper proposes a Self-Improving Action-Based Framework that targets these limitations through three interlocking components: (1) an action-based evaluator that decomposes image assessment into a sequence of interpretable actions—prompt alignment, aesthetic quality, and technical fidelity; (2) a task-assignment engine that routes each incoming task to the model best suited to it, based on learned per-dimension fitness scores; and (3) a self-improvement mechanism that updates the evaluation and assignment policy online, from outcome feedback, without requiring full retraining. By treating evaluation as a sequence of decision actions rather than a single monolithic score, the framework yields fine-grained, per-dimension diagnostics that a scalar metric cannot provide. We describe a complete, reproducible implementation in Python using PyTorch and Hugging Face Diffusers, with worked code for every component, and we outline an experimental methodology for validating the framework across multiple generation models and diverse task types. We validate the self-improvement policy—formulated as a per-category contextual multi-armed bandit with Upper Confidence Bound (UCB1) action selection—through a controlled simulation study (30 independent runs of 3,000 sequential tasks each, drawn from a known ground-truth task–model fitness matrix). The learned policy reaches a mean task-fitness accuracy of 62.5% (±1.6%), significantly exceeding both random assignment (25.0% ± 2.2%, p < 10⁻⁵⁵) and a static single-best-model baseline representative of current manual practice (39.9% ± 2.0%, p < 10⁻⁶⁷), while converging to within 2% of its asymptotic reward after approximately 1,500 tasks. All evaluator and policy components described below are fully executable, placeholder-free Python code, independently tested in this study.
Downloads
References
[1] Z. Xin, Q. Li, C. Niu, F. Wu, and G. Chen, "Adaptive Routing of Text-to-Image Generation Requests Between Large Cloud Model and Light-Weight Edge Model," ICCV, 2025.
[2] Q. Yang, T.-I. Chen, S. Zhao, R. K. Sitaraman, and H. Guan, "HADIS: Hybrid Adaptive Diffusion Model Serving for Efficient Text-to-Image Generation," arXiv:2509.00642, 2025.
[3] Q. Li et al., "Cost-Aware Routing for Efficient Text-To-Image Generation," arXiv:2506.14753, 2025.
[4] "MEF: A Systematic Evaluation Framework for Text-to-Image Models," arXiv:2509.17907, 2025.
[5] "T2I-ReasonBench: Benchmarking Reasoning-Informed Text-to-Image Generation," arXiv, 2025.
[6] "ICE-Bench: A Unified and Comprehensive Benchmark for Image Creating and Editing," arXiv, 2025.
[7] "Meta Policy Optimization (MPO): Enhancing RLHF by Dynamically Evolving Evaluation Rubrics," arXiv, 2025.
[8] "Refinement-Guided Critique Learning: A Framework for Training Critique Models," ScienceDirect, 2025.
[9] "A Review on Generative AI For Text-To-Image and Image-To-Image Generation," arXiv:2502.21151, 2025.
[10] "Image Generation Models: A Technical History," arXiv, 2025.
[11] "Text to Image Generation and Editing: A Survey," arXiv, 2025.
[12] "The World's First Public Diffusion Model Leaderboard," Hugging Face, 2025.
[13] "Expert Race: A Flexible Routing Strategy for Scaling Diffusion Transformer with Mixture of Experts," ICML, 2025.
[14] "Symbolic Mixture-of-Experts: Adaptive Skill-based Routing for Heterogeneous Reasoning," arXiv, 2025.
[15] "SERL: Self-Examining Reinforcement Learning on Open-Domain," arXiv, 2025.
[16] "Comparison with recent state-of-the-art text-to-image generation models," Nature, 2025.











