Manuscript Offprint
arXiv:2608.12290Beyond Trial-and-Error: Agentic Optimization for Image-to-Video Adherence
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Modern black-box Image-to-Video (I2V) models offer powerful capabilities in automated content creation, yet their lack of fine-grained control and reliability presents significant challenges in professional workflows. Their inherent stochasticity causes minor variations in textual prompts or hyperparameters to yield drastically different outputs, often necessitating inefficient, brute-force trial-and-error processes. To address these limitations, we introduce the “Agentic Self-Improvement” framework, which reframes video synthesis into a closed-loop, goal-directed optimization. Our framework systematically navigates the generation parameter space using a novel two-stage approach. In the first stage, an iterative prompt optimization loop uses a multimodal Large Language Model (mLLM) to refine the input prompt. This refinement implements two automated evaluations: Davidsonian Scene Graph (DSG) queries for semantic adherence and Common Mistake Questions (CMQ) for artifact detection. In the second stage, we use Bayesian optimization to efficiently co-optimize stochastic seeds and CFG scales. This search is guided by a suite of quality metrics, including the novel Video-Text Adherence (VTA) score derived from the DSG and CMQ evaluations. Our framework significantly outperforms unguided search methods: in human preference studies, videos generated via our agentic approach were strongly preferred over baseline outputs, achieving win rates up to 69%. This work provides a practical and extensible methodology for enhancing the predictability and control of state-of-the-art video generation models, moving the field beyond speculative curiosities toward reliable, production-ready tools.
1 Introduction
The advent of large-scale, black-box text- and image-to-video (I2V) models has unlocked powerful capabilities in automated content creation, promising a new frontier for digital media and storytelling [9, 33]. However, a significant gap remains between the generative potential of these systems and the practical demands of production-quality video synthesis [37, 5]. For professional applications, the foremost requirement is precise adherence to creative briefs, where the generated video must faithfully reflect both a textual prompt and a given input image [7, 28, 20, 24]. The core challenge lies in the inherent stochasticity and sensitivity of current models; minor variations in hyperparameters, such as random seeds or classifier-free guidance (CFG) scales, can lead to dramatically different and often unpredictable outputs [1, 29]. This forces practitioners into a brute-force, trial-and-error workflow, generating a multitude of video variations in the hope that one serendipitously aligns with their intent—a process that is inefficient and computationally expensive. Bridging this gap requires moving beyond speculative generation toward a systematic framework for intelligently navigating the complex parameter space of these models.
To address these limitations, this paper introduces “Agentic Self-Improvement”, a framework that re-architects the generation pipeline for I2V models from an open-loop, speculative process to a closed-loop, goal-directed optimization. Our framework employs a two-stage strategy that systematically targets the primary sources of variance: the textual prompt and the model’s hyperparameters. First, a prompt optimization stage uses a multimodal Large Language Model (mLLM) to iteratively refine the user’s initial prompt. To guide this refinement, the mLLM generates and scores against a structured set of evaluations: Davidsonian Scene Graph (DSG) queries [8] that probe semantic content, and Common Mistake Questions (CMQ) designed to detect typical generation artifacts. Second, a hyperparameter optimization stage uses Bayesian optimization to systematically search for optimal random seeds and CFG scales. The entire process is guided by a suite of quality metrics and the novel Video-Text Adherence (VTA) score derived directly from the DSG and CMQ evaluations, providing a quantitative measure of the output’s quality and alignment. The result is video content that is not only of high quality but is also aligned with the user’s specified intent.
Our work makes the following primary contributions:
- An “Agentic Self-Improvement” framework for systematic, goal-directed control of black-box I2V generation models.
- A prompt optimization method that uses an mLLM with automatically generated DSG and CMQ evaluations for iterative refinement.
- A Bayesian optimization stage to efficiently co-optimize stochastic seeds and CFG scales.
- A novel Video-Text Adherence (VTA) metric derived from structured DSG and CMQ evaluations to guide the optimization process and score final content.
2.1 Advances in Text/Image-to-Video Generation
The field of video generation has seen a paradigm shift from Generative Adversarial Networks (GANs) [11] and Variational Autoencoders (VAEs) [25] to diffusion-based models [19]. Early methods often struggled with temporal coherence and were limited to low-resolution outputs [35]. The advent of diffusion models, particularly with the introduction of large-scale models such as Veo, has marked a significant leap in generating high-fidelity, temporally consistent video sequences from textual prompts [4]. These models leverage vast datasets and sophisticated architectures, such as the Diffusion Transformer (DiT), to achieve unprecedented levels of realism and semantic accuracy [27].
More recently, the field has seen a rapid convergence toward unified autoregressive models and multimodal foundation models capable of natively processing interleaved text, image, and video tokens [42]. However, despite these improvements in raw fidelity, their black-box nature and reliance on massive, often uncurated datasets present significant challenges in terms of controllability and reproducibility [43, 17].
2.2 Controllability in Video Synthesis
While text-to-video models have become increasingly powerful, relying solely on a textual prompt for control is often insufficient for professional applications that demand precise outputs [4]. This has spurred research into more fine-grained control mechanisms. One line of work focuses on incorporating additional conditioning inputs, such as a reference image for appearance control, to guide the generation process [6]. Other approaches leverage spatial controls like depth maps, edge maps, or human pose information to dictate the scene’s geometry and character motion [43]. A significant challenge in this domain is the disentanglement of content from motion, and achieving precise, multi-faceted control over the generated video’s content, style, and dynamics remains a key area of research [43, 3].
2.3 Automated Prompt Engineering
Prompt engineering or prompt optimization for diffusion models has moved beyond manual tuning toward automated and systematic approaches. A significant body of work has explored gradient-based methods, which treat prompt embeddings as continuous vectors that can be optimized to maximize a differentiable reward function, a technique that has been shown to effectively discover “hard”, interpretable prompts [39]. Another prominent direction involves the use of reinforcement learning (RL), where a policy network is trained to refine prompts based on feedback from a reward model, which can be designed to reflect human preferences or other desirable image characteristics [2]. Furthermore, researchers have leveraged large language models (LLMs) as optimizers themselves, employing them in black-box settings to iteratively rewrite and improve prompts based on generated image outcomes, demonstrating strong performance without requiring direct access to the diffusion model’s gradients [16, 15]. In the video domain, recent methods such as VPO [7], Prompt-A-Video [24], and RAPO [10] optimize textual prompts via offline preference-aligned LLMs or retrieval-augmented single-pass rewriting prior to synthesis, while concurrent test-time refinement frameworks such as Critique Coach Calibration [13] and VQQA [32] employ closed-loop MLLM critique to iteratively evolve video prompts. Concurrently, fine-grained video evaluation benchmarks such as ETVA [14] and VBench-2.0 [45] have demonstrated the value of multi-stage question answering and intrinsic faithfulness checks for assessing video synthesis. Building upon these insights, our work repurposes the Davidsonian Scene Graph (DSG) evaluation methodology [8]—originally introduced for fine-grained question generation and answering (QG/A) evaluation of static images—and augments it with video-specific Common Mistake Questions (CMQ) to serve both as an active, closed-loop visual critique signal in Stage 1 and as a frozen semantic adherence objective (VTA) coupled with Stage 2 Bayesian hyperparameter optimization.
2.4 Hyperparameter Optimization and Agentic AI
The performance of generative models is also critically dependent on a set of hyperparameters, such as the classifier-free guidance (CFG) scale and the initial random seed [18]. The conventional method for tuning these parameters is a brute-force grid search, which can be computationally expensive and often suboptimal. To address this, more systematic optimization techniques have been explored. By building a probabilistic model of the objective function, Bayesian optimization can intelligently explore the parameter space to find optimal configurations with fewer evaluations [30]. Our work extends this approach by co-optimizing both deterministic hyperparameters and the stochastic random seed within a unified framework.
The concept of “Agentic AI” represents a shift from passive, single-turn generative models to active, goal-directed systems that can autonomously plan, reason, and act to achieve a specified objective. In the context of content creation, agentic frameworks are being developed to automate complex, multi-step generative tasks [41]. These systems often employ a large language model as a central “agent” that can decompose a high-level goal into a sequence of smaller steps, execute those steps using various tools (such as generative models), and then evaluate the results to refine its plan [41, 21]. Our “Agentic Self-Improvement” framework is inspired by this paradigm. The term “Agentic” distinguishes our approach from standard generate-evaluate pipelines by aligning with formal definitions of autonomous LLM agents (dynamic perception, reasoning, and action [40, 36]). Specifically, our system operates as a structured two-stage sequential pipeline: in the first stage, an mLLM agent autonomously constructs a prompt-specific perception rubric (DSG/CMQ), reasons over visual and structural failures, and iteratively rewrites the prompt; in the second stage, hyperparameter search over CFG scales and random seeds is delegated to a black-box Bayesian optimizer guided by the frozen rubric and perceptual quality metrics, conceptualizing video generation as a closed-loop optimization problem.
3 Methodology
Figure 1: The two-stage architecture of our Agentic Self-Improvement framework. Top: Prompt Optimization. A prompt is iteratively improved by generating a video and scoring its alignment against a set of auto-generated DSG and CMQ questions. Bottom: Hyperparameter Optimization. Using the best prompt, a Bayesian search then finds optimal hyperparameters (CFGs, seeds) by maximizing a multi-objective function composed of quality metrics (UVQ, RAHF) and a Video-Text Adherence (VTA) score repurposed from the questions above.
The Agentic Self-Improvement framework operates as a closed-loop, goal-directed system that systematically optimizes the two primary inputs to a black-box I2V model: the textual prompt and its core hyperparameters. As depicted in Figure 1, the framework achieves this through two main subsystems—a Prompt Optimizer module and a Hyperparameter Optimizer module—which work in concert to reliably align the final video output with the user’s precise creative intent.
3.1 Prompt Optimization via Structured Evaluation
A primary challenge in video generation is the semantic gap between a user’s prompt and the data distributions on which foundation models are trained. To bridge this gap, our framework employs an iterative prompt optimization strategy that refines the initial text prompt into an unambiguous and effective directive for the I2V model.

Figure 2: Example of our automated question generation process for a given input image and prompt “a group of women sitting on the steps of a building”. Top (DSG Questions): Davidsonian Scene Graph [8] questions are generated to deconstruct the visual scene into semantic queries. Bottom (Common Mistakes): Common Mistake Questions are designed to target and preempt known failure modes of video generation models.
3.1.1 Question Generation for Semantic Grounding
The process begins by translating the input prompt and initial conditioning image(s) into a set of concrete, machine-verifiable questions. We use a multimodal Large Language Model (mLLM), such as Gemini, to generate two categories of evaluative queries:
Davidsonian Scene Graph (DSG) Questions: Leveraging the Davidsonian Scene Graph methodology [8] for fine-grained visual evaluation, these questions probe the fundamental semantic components of the desired scene. They deconstruct the prompt into verifiable queries about the presence of agents, their actions and states, object possession, and location in a graphical format. For instance, in Figure 2 (Top), the prompt “A group of women sitting on the steps of a building” is broken down into verifiable questions such as “Is the group of women present?”, “Are the women sitting down?”, and “Are the women sitting on steps?” This structured decomposition allows our framework to systematically check for the presence and correctness of each core semantic element.
Common Mistake Questions (CMQ): While DSG effectively covers semantic content, it may not capture common failure modes of video generation models. CMQs are designed to target these specific weaknesses, focusing on criteria such as object permanence, natural movement, and temporal consistency while also checking for visual glitches or artifacts. Continuing with the same example in Figure 2 (Bottom), a CMQ could be “Are the anatomical features of the characters depicted correctly and consistently?” or “Are the facial features of the women stable and free from distortion or flickering?” These questions force the evaluation to assess the dynamic and temporal qualities crucial for plausible video synthesis.
3.1.2 Iterative Prompt Refinement Loop
With the structured question graphs in place, the framework initiates a self-correction loop to find the optimal prompt while holding the generator’s hyperparameters (random seed and CFG scale) fixed:
- The I2V model generates a candidate video from the conditioning start image and the current prompt.
- The generated video (alongside to verify fidelity to the initial depiction) is then evaluated by the mLLM Visual Question Answering (VQA) system, which provides binary “Yes/No” answers to the full set of DSG and CMQ questions. These responses are aggregated via the hierarchical parent-masked Video-Text Adherence (VTA) score (formalized in Section 3.2.1) to serve as a quantitative alignment score.
- Based on the score and, more specifically, the questions that were answered “No,” the mLLM is prompted to revise the prompt to explicitly address the identified shortcomings while preserving the original creative intent.
- This process is repeated for a fixed number of iterations ( cycles), with each step aiming to maximize the alignment score.
- The prompt that yields the highest alignment score is passed to the next stage for hyperparameter optimization.
3.1.3 mLLM VQA Reliability
Because this prompt refinement loop relies entirely on the mLLM functioning as an automated evaluator, we must first validate its reliability against human judgment. To validate this critical component, we conducted a study to measure the agreement between the answers provided by our selected VQA model, Gemini 2.5 Pro, and a human-annotated ground truth.
For this validation, we randomly sampled 100 video-question pairs from our experiments. This sample included 50 Davidsonian Scene Graph (DSG) and 50 Common Mistake Questions (CMQ). Two human annotators, strictly calibrated on shared guidelines, each evaluated 50 disjoint video-question pairs by watching the video and providing a binary “Yes/No” answer to the corresponding question. These human-provided labels served as our ground truth. We then posed the same questions to the Gemini 2.5 Pro model and compared its answers to the human ground truth. The results of this analysis are presented in Table 1.
Table 1: Accuracy of Gemini 2.5 Pro on the VQA task compared to human-annotated ground truth. The high level of agreement validates its use as an automated evaluator within our framework.
| Question Type | Accuracy (%) |
|---|---|
| DSG Questions | 92% |
| CMQ Questions | 82% |
| Overall | 87% |
The model was exceptionally accurate on DSG questions (92%), which typically probe for more objective factual content (e.g., object presence). The accuracy on CMQ questions (82%) was lower, which is expected as these questions can sometimes involve more subjective assessments of motion or temporal consistency. The 18% CMQ error rate comprises both false positives (where fast, natural motion is occasionally misread as unnatural transitions or jump cuts) and false negatives (insensitivity to subtle temporal artifacts). To prevent reward hacking—such as yielding static videos to trivially pass temporal CMQs—our temporal coherence filters explicitly penalize 2-second freeze frames, and Stage 2 co-optimizes VTA alongside perceptual metrics (RAHF and UVQ) so VQA blind spots cannot be exploited without incurring perceptual penalties. This strong correlation with human judgment confirms that Gemini 2.5 Pro is a reliable and effective proxy for human evaluation for our specific, structured VQA task.
3.2 Hyperparameter Optimization via Bayesian Search
With an optimal prompt identified, the framework’s second stage automates hyperparameter tuning. We employ Bayesian optimization to efficiently search for the ideal configuration of the Classifier-Free Guidance (CFG) scale, explored as a continuous variable within , and the stochastic seed, replacing inefficient manual tuning. Because random seeds are non-smooth identifiers where numerical proximity does not imply perceptual similarity, Vizier BO represents a discrete candidate set of seeds as an unordered categorical variable, modeling the joint space via a mixed continuous-categorical Gaussian Process (GP) Bandit kernel [31]. This mixed-space co-optimization outperforms blind random sampling through two mechanisms: (1) observations across all evaluated trials share information along the continuous CFG dimension, allowing the GP surrogate to rapidly learn the marginal effect of CFG and restrict subsequent trials to high-yield guidance regimes; and (2) across the discrete categorical seed arms, the Upper Confidence Bound (UCB) acquisition function (with default exploration constant [31]) balances initial seed exploration against exploitation by pruning low-performing seeds whose upper confidence bounds fall below the incumbent best and reallocating evaluation budget to refine CFG scales on high-potential seeds. Vizier optimizes a multi-objective Pareto frontier over simultaneously—from which the final Top-1 candidate is selected post-hoc—steering the generative model toward outputs with high prompt adherence and minimal visual artifacts far more efficiently than unguided grid or random search.
3.2.1 Automated Evaluation Suite
The efficacy of our agentic framework hinges upon a robust suite of automated metrics that collectively form the multi-objective reward function. This suite provides a holistic assessment of each generated video across three dimensions: perceptual quality, temporal coherence, and semantic alignment.
Perceptual Quality: We employ two models to assess visual quality. First, we use the RAHF (Rich Automated Human Feedback) model [26], a multimodal Transformer designed to simulate nuanced human quality judgments for images. For each video, our evaluation process involves sampling 10 frames at equidistant intervals. These frames are individually passed through the RAHF model—conditioned on the Stage 1 optimized prompt—to generate the overall quality score for each. To determine a single representative score for the entire video, we then select the minimum score from this set of 10 frame-level scores. Second, we use UVQ (Universal Video Quality) [38], a CNN-based architecture for general quality prediction. For this, we use the Mean Opinion Score (MOS) derived from the average of its content, distortion, and compression networks, as described in the original work.
Temporal Coherence: We implement two metrics to evaluate temporal and motion consistency. Shot-Cut Detection & Flow Continuity analyzes optical flow between frames to quantify motion and penalize abrupt, unintended scene changes. Concurrently, loop detection identifies and penalizes undesirable content repetition, defined as a two-second loop or two-second static freeze frame. Candidate videos triggering either detector are assigned negative penalty weights during the active Bayesian search and discarded via a hard filter prior to final Top-1 selection.
Semantic Alignment: Finally, to ensure adherence to the prompt, we employ our novel Video-Text Adherence (VTA) metric. This metric repurposes the frozen DSG and CMQ graphs generated during prompt optimization to directly score the video’s content against the detailed scene expectations and text. Specifically, VTA evaluates a video by hierarchically aggregating the mLLM’s binary responses (, ) across the generated DSG and CMQ trees. To handle hierarchy (e.g., zeroing “Is the dog running?” if the parent node “Is there a dog?” is False), a child’s score is strictly masked by its parent . We define the recursive node score , with roots defaulting to . VTA is computed as the weighted average pooled over all question nodes across both trees: . Using uniform weights (), this recursive design ensures foundational concepts (root nodes) naturally exert a mathematically higher penalty upon failure due to cascading zeroing effects on descendant nodes.
While this specific suite provides a comprehensive assessment, the framework is inherently modular. Any component can be augmented or replaced with other black-box evaluators tailored to different quality dimensions.
4 Experiments
We validate our Agentic Self-Improvement framework through two primary experiments. First, a controlled ablation study isolates and evaluates the Prompt Optimizer module against the original V-Bench++ prompts [23]. Second, an end-to-end evaluation benchmarks our Bayesian search stage across the hyperparameters (seed, CFG scale) against random search baselines that approximate a typical unguided workflow. For all experiments, we ground our analysis in image-and-prompt-to-video tasks from V-Bench++. Crucially, our agentic framework operates as a model-agnostic wrapper that fundamentally applies to any latent diffusion video model. We utilize Veo 2.0 as the experimental vehicle for this study, explicitly positioning it as a robust, representative baseline.
Our primary evaluation modality is a head-to-head human preference study. We prioritize this qualitative analysis because, as we detail in the Appendix (see Section 7.1), standard automated metrics often lack the sensitivity to capture the nuanced improvements our framework provides. For the preference study, two expert annotators each evaluated 50 disjoint prompts ( total) to maximize coverage, strictly calibrated on shared guidelines. To verify rater calibration, we also conducted a supplementary overlapping study on 30 video pairs, achieving 70% observed inter-annotator agreement with a Cohen’s Kappa of (moderate agreement). Annotators were presented with text-image pairs alongside the corresponding videos generated by our framework and the baseline, and instructed to select the video with superior realism and overall video quality or to declare a tie. We performed two-tailed binomial sign tests on decisive (non-tied) outcomes and calculated 95% Wilson score confidence intervals (CIs) for the unconditional win rates across all prompts. Across both optimization budgets ( and runs per prompt), our win rates against random search are statistically significant: for runs, unconditional 95% Wilson CIs range from (UVQ; conditional non-tied win rate) to (RAHF; conditional non-tied win rate), with ; for runs, unconditional CIs range from to ( conditional non-tied win rates), with . We also provide a qualitative visual comparison in Figure 3 to illustrate these perceptual and temporal stability improvements alongside their corresponding RAHF and UVQ scores.
| (Start) | ||||
|---|---|---|---|---|
| Random RAHF: UVQ: | ![]() | ![]() | ![]() | ![]() |
| Ours RAHF: 0.911782 UVQ: 4.49 | ![]() | ![]() | ![]() | ![]() |
Figure 3: Qualitative comparison between the unguided Random baseline (top; RAHF: , UVQ: ) and our Agentic Self-Improvement framework (bottom; RAHF: , UVQ: ) on a V-Bench++ task. At (highlighted), the Random baseline suffers from severe motion blur and ghosting artifacts on the subject and bus interior, whereas our framework preserves sharp anatomical details, clothing patterns, and temporal consistency throughout the video.
Table 2: Human preference evaluation comparing the top-ranked video selected by different automated metrics against a baseline across V-Bench++ prompts. The candidate videos were generated from budgets of and trials of Bayesian optimization, respectively. For each metric, the single best video was chosen for the head-to-head comparison. The ‘Avg.’ metric is a simple average of normalized RAHF, VTA, and UVQ. We additionally evaluate the 100-run budget against a stronger ‘Best-of-Random’ baseline to isolate the efficacy of the Bayesian search from the final metric selection.
10 Runs (vs. Random) 100 Runs (vs. Random) 100 Runs (vs. Best-of-Random) Top-1 Selection Metric Baseline Ours Tie Baseline Ours Tie Baseline Ours Tie Win (%) Win (%) (%) Win (%) Win (%) (%) Win (%) Win (%) (%) RAHF 14 47 39 9 69 22 8 42 50 VTA 8 45 47 8 63 29 13 39 48 UVQ 11 42 47 10 60 30 13 38 49 Avg. 6 45 49 9 66 25 15 28 57
4.1 Prompt Optimization
To validate the impact of our Prompt Optimizer module, we conducted a controlled experiment using image-prompt pairs randomly sampled from V-Bench++’s image-to-video tasks. For each pair, we generated two videos while keeping all hyperparameters constant: one using the original V-Bench++ prompt and a second using the prompt generated by our optimization module after 10 iterations. These video pairs were then evaluated in a blind, head-to-head human preference study. In the comparison, videos generated from our optimized prompts were preferred by human evaluators 27% of the time, compared to 5% for the baseline, with the remaining 68% resulting in a tie (two-tailed binomial sign test ). This indicates that our method provides a statistically significant perceptual improvement in over a quarter of the cases.
4.2 Bayesian Search
Next, we evaluate the efficacy of our Stage 2 hyperparameter optimization against random search baselines. To strictly isolate the contribution of the Bayesian search algorithm from Stage 1 prompt refinement and ensure exact compute parity across methods, both our Bayesian optimizer and the random search baselines are conditioned on the same Stage 1 optimized prompt for each of the V-Bench++ image-prompt pairs. We conduct experiments under two distinct Stage 2 generation budgets: a -generation search and a more exhaustive -generation search. The primary baseline (‘Random’) randomly selects one video from the 10 (or 100) candidate videos generated via an unguided random search of hyperparameters. To further isolate the Bayesian search algorithm from the efficacy of our final metric-based candidate selection, we also evaluate the 100-generation budget against a stronger ‘Best-of-Random’ baseline. This competitive baseline generates 100 candidates via standard random search using the Stage 1 optimized prompt, applies our temporal artifact filters, and selects the Top-1 candidate using our automated ranking metrics. Our method runs the Bayesian optimizer for the exact same number of trials ( or ) and selects the top-ranked candidate.
To determine the single best output from our pipeline, we first apply a hard filter to discard videos with loops or shot-cuts. From the remaining pool of candidates, we test four distinct automated ranking strategies to select the Top-1 video. The selection is based on choosing the video with the highest score according to: (i) the UVQ quality model, (ii) our VTA text-adherence metric, (iii) the RAHF human-preference model, and (iv) a simple average of all three normalized scores. The human preference win rates for each of these four ranking strategies against the random baseline are presented for both the 10- and 100-generation budgets in Table 2.
The results in Table 2 demonstrate that our agentic framework consistently produces videos that are preferred by human evaluators over the random search baseline. With a limited budget of 10 runs, our method achieves win rates of 42–47% vs. 6–14% for the baseline. The performance gap widens dramatically with a 100-generation budget, where our framework’s win rate climbs to 60–69%. This trend, coupled with a significant reduction in ties, demonstrates that our search becomes more effective at identifying perceptibly superior videos as the computational budget grows. Notably, sorting by the RAHF score yields the highest human preference (69% win rate), suggesting it is the metric most aligned with human perception in this context.
Evaluating against the significantly stronger ‘Best-of-Random’ baseline naturally narrows the performance gap compared to an unguided, randomly selected candidate. Because this new baseline intelligently filters and selects the best of 100 random videos, tie rates predictably increase (e.g., from 22% to 50% for RAHF) and our absolute win rate shifts from 69% to 42%. Crucially, however, our Bayesian optimizer still outperforms this competitive baseline across all individual metrics—reaching statistical significance for RAHF (42% vs. 8%, ), VTA (39% vs. 13%, ), and UVQ (38% vs. 13%, ), with a positive trend for the combined Avg. score (28% vs. 15%, ). This confirms that our framework does not merely rely on post-hoc sorting; rather, the Bayesian search actively and effectively guides the generation process into higher-quality parameter regions.
5 Discussion
Our experimental results validate the hypothesis of this work: a systematic, closed-loop optimization process yields perceptibly superior results compared to a standard baseline. Our experiments on prompt optimization confirm that treating the prompt as a refinable target, rather than a fixed input, is a critical step for improving semantic alignment. Because different video generation models are sensitive to distinct prompting styles [10], this black-box optimization loop enables the framework itself to remain model-agnostic by automatically adapting the prompt to the specific target generator’s sensitivities. The subsequent end-to-end evaluation via Bayesian search demonstrates that an intelligent search of the hyperparameter space is substantially more effective at discovering human-preferred videos than an unguided, random search. Collectively, these findings show that by methodically addressing the two primary sources of variance—the prompt and the hyperparameters—our framework successfully transforms video generation from a speculative, trial-and-error method into a more predictable and controllable process.
The success of the prompt optimization highlights a powerful paradigm: using the advanced multimodal understanding of mLLMs as a direct feedback signal to steer the creative output of generative models. The core principle is a “generator-critic” loop where the I2V model acts as the generator and the mLLM functions as a sophisticated visual critic. By generating structured DSG and CMQ questions, we provide the mLLM with a detailed rubric for its critique, forcing it to verify the fine-grained semantic and temporal properties of the generated video. This moves beyond simplistic CLIP-score similarity and instead leverages the mLLM’s rich, compositional understanding of scenes, actions, and objects to guide the generation process. This approach is highly extensible, pointing toward future systems where mLLMs could provide free-form textual feedback or critique videos on more abstract qualities like narrative coherence or emotional tone, creating a powerful, self-correcting cycle for more controllable and aligned video synthesis. However, this mLLM-guided approach is naturally constrained by the current capabilities of video understanding. While state-of-the-art mLLMs excel at identifying objects and describing general scenes, their ability to comprehend nuanced motion and complex temporal dynamics is still an active area of research [44]. We anticipate that this capability will advance significantly with the increasing convergence of multimodal AI and the field of robotics [34]. The demand for embodied agents that can interpret and predict complex physical interactions from video will inevitably push the development of models with a more profound grasp of motion and causality. As these more sophisticated video-understanding mLLMs become available, they can be seamlessly integrated into our framework as more powerful “critics,” enabling the optimization of not just semantic content, but also physically plausible dynamics and complex character actions.
Despite its effectiveness, we acknowledge several limitations that open avenues for future research. First, regarding computational overhead, Stage 1 sequentially generates 10 videos (each evaluated via up to 40 DSG/CMQ VQA queries), followed by or candidate generations and multi-metric evaluations (VTA, 10-frame RAHF, UVQ, and optical-flow/loop filtering) in Stage 2—totaling 20 or 110 video synthesis calls per prompt. While this autonomous compute intentionally trades machine time for the tedious human trial-and-error workflows standard in professional production, future work could explore more sample-efficient optimization algorithms or distill the large mLLM critic into a smaller, specialized reward model to reduce inference latency. Second, when prompts demand complex physics that exceed the priors of the underlying generator (Veo 2.0), the Stage 1 prompt optimizer can over-constrain the text, causing Bayesian optimization to push CFG scales too high and introduce visual artifacts. Third, our framework currently operates as a decoupled two-stage process that holds the random seed and CFG constant during Stage 1; because an unfavorable fixed seed can introduce stochastic noise, Stage 1 prompt rewrites may partially adapt to seed-specific artifacts. Exploring joint or multi-seed optimization of prompts and hyperparameters simultaneously, benchmarking Stage 1 against single-pass open-loop LLM prompt rewriters [7, 24, 10], and empirically evaluating the framework across additional video generation architectures beyond Veo 2.0 remain important directions for future work.
6 Conclusion
This work addressed the critical challenge of controlling black-box I2V models to achieve reliable, quality outputs that adhere to user intent. We introduced the Agentic Self-Improvement framework, a novel two-stage methodology that systematically reduces generative variance. Our approach first uses an mLLM-driven evaluation loop to optimize the text prompt for semantic clarity and then employs Bayesian optimization to discover superior hyperparameters. Through human preference studies on Veo 2.0, we demonstrate that this structured, closed-loop process significantly outperforms unguided search methods and a competitive Best-of-Random baseline. By reframing video synthesis as a goal-directed optimization problem, this work provides a practical, extensible black-box methodology for instilling predictability into I2V models, moving video generation beyond trial-and-error toward controllable production tools.
References
[1] Steven Bethard. We need to talk about random seeds. arXiv preprint arXiv:2210.13393, 2022.
[2] Kevin Black, Michael Janner, Yilun Du, Ilya Kostrikov, and Sergey Levine. Training diffusion models with reinforcement learning. In International Conference on Learning Representations, pages 4965–4987, 2024.
[3] Andreas Blattmann, Robin Rombach, Huan Ling, Tim Dockhorn, Seung Wook Kim, Sanja Fidler, and Karsten Kreis. Align your latents: High-resolution video synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 22563–22575, 2023.
[4] Tim Brooks, Bill Peebles, Connor Holmes, Will DePue, Yufei Guo, Li Jing, David Schnurr, Joe Taylor, Troy Luhman, Eric Luhman, et al. Video generation models as world simulators. OpenAI Blog, 1:8, 2024.
[5] Haoxin Chen, Yong Zhang, Xiaodong Cun, Menghan Xia, Xintao Wang, Chao Weng, and Ying Shan. VideoCrafter2: Overcoming data limitations for high-quality video diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7310–7320, 2024.
[6] Weifeng Chen, Yatai Ji, Jie Wu, Hefeng Wu, Pan Xie, Jiashi Li, Xin Xia, Xuefeng Xiao, and Liang Lin. Control-A-Video: Controllable text-to-video diffusion models with motion prior and reward feedback learning. arXiv preprint arXiv:2305.13840, 2023.
[7] Jiale Cheng, Ruiliang Lyu, Xiaotao Gu, Xiao Liu, Jiazheng Xu, Yida Lu, Jiayan Teng, Zhuoyi Yang, Yuxiao Dong, Jie Tang, et al. VPO: Aligning text-to-video generation models with prompt optimization. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 15636–15645, 2025.
[8] Jaemin Cho, Yushi Hu, Jason Baldridge, Roopal Garg, Peter Anderson, Ranjay Krishna, Mohit Bansal, Jordi Pont-Tuset, and Su Wang. Davidsonian Scene Graph: Improving reliability in fine-grained evaluation for text-to-image generation. In International Conference on Learning Representations, pages 15625–15645, 2024a.
[9] Joseph Cho, Fachrina Dewi Puspitasari, Sheng Zheng, Jingyao Zheng, Lik-Hang Lee, Tae-Ho Kim, Choong Seon Hong, and Chaoning Zhang. Sora as an AGI world model? A complete survey on text-to-video generation. arXiv preprint arXiv:2403.05131, 2024b.
[10] Bingjie Gao, Xinyu Gao, Xiaoxue Wu, Yujie Zhou, Yu Qiao, Li Niu, Xinyuan Chen, and Yaohui Wang. The devil is in the prompts: Retrieval-augmented prompt optimization for text-to-video generation. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 3173–3183, 2025.
[11] Ian J Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. Advances in Neural Information Processing Systems, 27, 2014.
[12] Google. Gemini 2.5 Pro (gemini-2.5-pro-preview-06-05): Our most advanced intelligent AI model, 2025. Accessed on July 7th, 2025.
[13] Jing Gu, Ashwin Nagarajan, Tejas Polu, Kaizhi Zheng, Ruijian Zha, Jie Yang, and Xin Eric Wang. Critique coach calibration: Self-evolving prompt optimization for video generation. In ICML Workshop on Test-Time Adaptation, 2025.
[14] Kaisi Guan, Zhengfeng Lai, Yuchong Sun, Peng Zhang, Wei Liu, Kieran Liu, Meng Cao, and Ruihua Song. ETVA: Evaluation of text-to-video alignment via fine-grained question generation and answering. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 2025.
[15] Yaru Hao, Zewen Chi, Li Dong, and Furu Wei. Optimizing prompts for text-to-image generation. Advances in Neural Information Processing Systems, 36:66923–66939, 2023.
[16] Yutong He, Alexander Robey, Naoki Murata, Yiding Jiang, Joshua Williams, George J Pappas, Hamed Hassani, Yuki Mitsufuji, Ruslan Salakhutdinov, and J Zico Kolter. Automated black-box prompt engineering for personalized text-to-image generation. arXiv preprint arXiv:2403.19103, 2024.
[17] Amir Hertz, Ron Mokady, Jay Tenenbaum, Kfir Aberman, Yael Pritch, and Daniel Cohen-Or. Prompt-to-prompt image editing with cross attention control. arXiv preprint arXiv:2208.01626, 2022.
[18] Jonathan Ho and Tim Salimans. Classifier-free diffusion guidance. arXiv preprint arXiv:2207.12598, 2022.
[19] Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840–6851, 2020.
[20] Yaosi Hu, Chong Luo, and Zhenzhong Chen. Make it move: controllable image-to-video generation with text descriptions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 18219–18228, 2022.
[21] Minbin Huang, Yanxin Long, Xinchi Deng, Ruihang Chu, Jiangfeng Xiong, Xiaodan Liang, Hong Cheng, Qinglin Lu, and Wei Liu. DialogGen: Multi-modal interactive dialogue system for multi-turn text-to-image generation. arXiv preprint arXiv:2403.08857, 2024a.
[22] Ziqi Huang, Yinan He, Jiashuo Yu, Fan Zhang, Nattapol Chanpaisit, Xiaojie Xu, Qianli Ma, Ziyue Dong, Dian Zheng, Hongbo Liu, and Ziwei Liu. VBench leaderboard. https://huggingface.co/spaces/Vchitect/VBench_Leaderboard, 2023. Accessed: 2025-08-05.
[23] Ziqi Huang, Fan Zhang, Xiaojie Xu, Yinan He, Jiashuo Yu, Ziyue Dong, Qianli Ma, Nattapol Chanpaisit, Chenyang Si, Yuming Jiang, Yaohui Wang, Xinyuan Chen, Ying-Cong Chen, Limin Wang, Dahua Lin, Yu Qiao, and Ziwei Liu. VBench++: Comprehensive and versatile benchmark suite for video generative models. arXiv preprint arXiv:2411.13503, 2024b.
[24] Yatai Ji, Jiacheng Zhang, Jie Wu, Shilong Zhang, Shoufa Chen, Chongjian Ge, Peize Sun, Weifeng Chen, Wenqi Shao, Xuefeng Xiao, et al. Prompt-A-Video: Prompt your video diffusion model via preference-aligned LLM. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 18725–18735, 2025.
[25] Diederik P Kingma, Max Welling, et al. An introduction to variational autoencoders. Foundations and Trends® in Machine Learning, 12(4):307–392, 2019.
[26] Youwei Liang, Junfeng He, Gang Li, Peizhao Li, Arseniy Klimovskiy, Nicholas Carolan, Jiao Sun, Jordi Pont-Tuset, Sarah Young, Feng Yang, et al. Rich human feedback for text-to-image generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 19401–19411, 2024.
[27] William Peebles and Saining Xie. Scalable diffusion models with transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4195–4205, 2023.
[28] Xiangyu Peng, Zangwei Zheng, Chenhui Shen, Tom Young, Xinying Guo, Binluo Wang, Hang Xu, Hongxin Liu, Mingyan Jiang, Wenjun Li, Yuhui Wang, Anbang Ye, Gang Ren, Qianran Ma, Wanying Liang, Xiang Lian, Xiwen Wu, Yuting Zhong, Zhuangyan Li, Chaoyu Gong, Guojun Lei, Leijun Cheng, Limin Zhang, Minghao Li, Ruijie Zhang, Silan Hu, Shijie Huang, Xiaokang Wang, Yuanheng Zhao, Yuqi Wang, Ziang Wei, and Yang You. Open-Sora 2.0: Training a commercial-level video generation model in $200k. arXiv preprint arXiv:2503.09642, 2025.
[29] Dazhong Shen, Guanglu Song, Zeyue Xue, Fu-Yun Wang, and Yu Liu. Rethinking the spatial inconsistency in classifier-free diffusion guidance. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 9370–9379, 2024.
[30] Jasper Snoek, Hugo Larochelle, and Ryan P Adams. Practical Bayesian optimization of machine learning algorithms. Advances in Neural Information Processing Systems, 25, 2012.
[31] Xingyou Song, Qiuyi Zhang, Chansoo Lee, Emily Fertig, Tzu-Kuo Huang, Lior Belenki, Greg Kochanski, Setareh Ariafar, Srinivas Vasudevan, Sagi Perel, et al. The Vizier Gaussian process bandit algorithm. arXiv preprint arXiv:2408.11527, 2024.
[32] Yiwen Song, Tomas Pfister, and Yale Song. VQQA: An agentic approach for video evaluation and quality improvement. arXiv preprint arXiv:2603.12310, 2026.
[33] Rui Sun, Yumin Zhang, Tejal Shah, Jiahao Sun, Shuoying Zhang, Wenqi Li, Haoran Duan, Bo Wei, and Rajiv Ranjan. From Sora what we can see: A survey of text-to-video generation. arXiv preprint arXiv:2405.10674, 2024.
[34] Gemini Robotics Team, Saminda Abeyruwan, Joshua Ainslie, Jean-Baptiste Alayrac, Montserrat Gonzalez Arenas, Travis Armstrong, Ashwin Balakrishna, Robert Baruch, Maria Bauza, Michiel Blokzijl, et al. Gemini Robotics: Bringing AI into the physical world. arXiv preprint arXiv:2503.20020, 2025.
[35] Carl Vondrick, Hamed Pirsiavash, and Antonio Torralba. Generating videos with scene dynamics. Advances in Neural Information Processing Systems, 29, 2016.
[36] Lei Wang, Chen Ma, Xueyang Feng, Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, et al. A survey on large language model based autonomous agents. Frontiers of Computer Science, 18(6):186345, 2024.
[37] Ting-Chun Wang, Ming-Yu Liu, Jun-Yan Zhu, Guilin Liu, Andrew Tao, Jan Kautz, and Bryan Catanzaro. Video-to-video synthesis. arXiv preprint arXiv:1808.06601, 2018.
[38] Yilin Wang, Junjie Ke, Hossein Talebi, Joong Gon Yim, Neil Birkbeck, Balu Adsumilli, Peyman Milanfar, and Feng Yang. Rich features for perceptual quality assessment of UGC videos. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13435–13444, 2021.
[39] Yuxin Wen, Neel Jain, John Kirchenbauer, Micah Goldblum, Jonas Geiping, and Tom Goldstein. Hard prompts made easy: Gradient-based discrete optimization for prompt tuning and discovery. Advances in Neural Information Processing Systems, 36:51008–51025, 2023.
[40] Zhiheng Xi, Wenxiang Chen, Xin Guo, Wei He, Yiwen Ding, Boyang Hong, Ming Zhang, Junzhe Wang, Senjie Jin, Enyu Zhou, et al. The rise and potential of large language model based agents: A survey. arXiv preprint arXiv:2309.07864, 2023.
[41] Zhengyuan Yang, Linjie Li, Jianfeng Wang, Kevin Lin, Ehsan Azarnasab, Faisal Ahmed, Zicheng Liu, Ce Liu, Michael Zeng, and Lijuan Wang. MM-ReAct: Prompting ChatGPT for multimodal reasoning and action. arXiv preprint arXiv:2303.11381, 2023.
[42] Hu Yu, Biao Gong, Hangjie Yuan, DanDan Zheng, Weilong Chai, Jingdong Chen, Kecheng Zheng, and Feng Zhao. VideoMAR: Autoregressive video generation with continuous tokens. Advances in Neural Information Processing Systems, 38:56928–56958, 2026.
[43] Lvmin Zhang, Anyi Rao, and Maneesh Agrawala. Adding conditional control to text-to-image diffusion models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 3836–3847, 2023.
[44] Zicheng Zhang, Ziheng Jia, Haoning Wu, Chunyi Li, Zijian Chen, Yingjie Zhou, Wei Sun, Xiaohong Liu, Xiongkuo Min, Weisi Lin, et al. Q-Bench-Video: Benchmark the video quality understanding of LMMs. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 3229–3239, 2025.
[45] Dian Zheng, Ziqi Huang, Hongbo Liu, Kai Zou, Yinan He, Fan Zhang, Yuanhan Zhang, Jingwen He, Wei-Shi Zheng, Yu Qiao, and Ziwei Liu. VBench-2.0: Advancing video generation benchmark suite for intrinsic faithfulness. arXiv preprint arXiv:2503.21755, 2025.
7 Appendix
7.1 Automated Metric Results
To provide a quantitative counterpart to our human preference studies, we evaluated our generated videos using the comprehensive suite of automated metrics from the V-Bench++ benchmark [23]. The detailed results for each quality dimension, broken down by run configuration and Top-1 selection metric, are presented in Table 3. While five of the six automated metrics (Aesthetic Quality, Background Consistency, Imaging Quality, Motion Smoothness, and Subject Consistency) remain tightly clustered across conditions—which we posit reflects a lack of sensitivity in standard frame- and clip-level metrics to the subtle qualitative improvements that drive human preference—Dynamic Degree exhibits a pronounced shift. Specifically, selecting candidates via VTA nearly doubles the proportion of videos with non-negligible motion (rising from in Initial Generation to in 100 Runs - VTA), as satisfying action-oriented DSG and non-static CMQ queries actively promotes motion dynamism compared to purely perceptual selectors such as UVQ ().
Table 3: Automated video quality metrics calculated using V-Bench++ [23] (mean standard deviation; Dynamic Degree reports the percentage of videos classified as exhibiting non-negligible motion). Five of the six metrics show minimal variation across Top-1 selection methods and optimization budgets (10 vs. 100 runs), corroborated by the closely clustered scores on the official V-Bench++ leaderboard [22], whereas Dynamic Degree increases substantially when selecting via VTA.
Run Aesthetic Background Dynamic Imaging Motion Subject Configuration Quality Consistency Degree Quality Smoothness Consistency From 100 Optimization Runs 100 Runs - RAHF 100 Runs - Avg Score 100 Runs - UVQ 100 Runs - VTA From 10 Optimization Runs 10 Runs - RAHF 10 Runs - Avg Score 10 Runs - UVQ 10 Runs - VTA Baseline Runs Initial Generation Prompt Opt. Only
7.2 Prompts for Question Generation
Below are the detailed prompts provided to the mLLM for generating the structured DSG and CMQ question graphs used in our framework.
7.2.1 Prompt for Davidsonian Scene Graph (DSG) Questions
⬇
Analyze the provided text prompt and optional start/end frame images. Based on this information, generate a hierarchical (tree-like) set of questions following the principles of Davidsonian Scene Graphs (DSG). Identify key scene components (e.g., agents, actions, patients, locations, attributes, manners). For each component, formulate a specific yes/no question where a "yes" answer indicates correct depiction.
Organize these components and their questions into a JSON object. The JSON structure should have a main key as "scene_graph", which is a list of root elements. Each element should have at least "id" (a unique identifier for the question node), "element_type" (e.g., "agent", "action", "object", "location", "attribute"), "description" (a brief description of the element), "question" (the yes/no question), and "children" (a list of sub-elements, which can be empty).
Example of an element structure:
{
"id": "agent_red_bird_1",
"element_type": "agent",
"description": "A red bird",
"question": "Is there a red bird present?",
"children": [
{
"id": "action_bird_flying_1",
"element_type": "action",
"description": "The red bird is flying",
"question": "Is the red bird flying?",
"children": []
}
]
}
Ensure the entire output is a single valid JSON object. Ensure that there are no more than 20 total questions.
Initial Prompt: "[User’s Initial Prompt]"
7.2.2 Prompt for Common Mistake Questions (CMQ)
⬇
Analyze the provided text prompt and optional start/end frame images. Based on this information, generate a hierarchical (tree-like) set of questions targeting potential common video generation mistakes that might occur when trying to generate a video for this prompt.
Consider only the issues such as:
-
Unnatural Transitions
-
Anatomical Inconsistencies (missing/extra limbs/digits, distorted parts)
-
Environmental Inconsistencies (objects appearing/disappearing)
-
Illogical Changes within shots
-
Static Elements that should move
-
Extra characters and objects
-
Human characters speaking (they should never speak unless specified explicitly)
-
Inconsistent Detail/Texture
Organize these components and their questions into a JSON object. The JSON structure should have a main key as "common_mistakes_graph", which is a list of root elements. Each element should have at least "id" (a unique identifier for the question node), "element_type" (e.g., "mistake_category", "specific_mistake"), "description" (a brief description of the mistake/category), "question" (the yes/no question where "yes" indicates no mistake), and "children" (a list of sub-elements, which can be empty).
Example of an element structure:
{
"id": "mistake_cat_transitions_1",
"element_type": "mistake_category",
"description": "Unnatural Transitions",
"question": "Are all transitions between shots smooth and logical?",
"children": [
{
"id": "specific_mistake_jump_cut_1",
"element_type": "specific_mistake",
"description": "Potential jump cut between scene A and B",
"question": "Is the transition from scene A to B free of jarring jump cuts?",
"children": []
}
]
}
Ensure the entire output is a single, complete, and valid JSON object. Make sure all brackets and braces are correctly matched and closed. Ensure that there are no more than 20 questions in the entire tree. All questions should be framed as a yes or no question such that "yes" is the correct answer (i.e., the mistake is avoided) and a "no" answer indicates a common mistake might be present.
Initial Prompt: "[User’s Initial Prompt]"







