The Devil is in the Prompts: Retrieval-Augmented Prompt Optimization for Text-to-Video Generation
Bingjie Gao, Xinyu Gao, Xiaoxue Wu, Yujie Zhou, Yu Qiao, Li Niu, Xinyuan Chen, Yaohui Wang
TL;DR
Prompt sensitivity poses a major challenge for text-to-video generation. RAPO introduces a Retrieval-Augmented Prompt Optimization framework that combines a relation-graph–driven word augmentation, sentence refactoring via a fine-tuned LLM, an instruction-based rewrite path, and a discriminator to select the best prompt, all trained to resemble training-prompt distributions. Evaluations on LaVie and Latte across VBench, EvalCrafter, and T2V-CompBench show RAPO delivers consistent gains in static visual quality, temporal coherence, and multi-object scene fidelity, outperforming plain prompts and other optimization baselines. The work demonstrates that aligning user-provided prompts with the training-distribution through retrieval and targeted instruction tuning yields robust improvements across diverse T2V benchmarks and models.
Abstract
The evolution of Text-to-video (T2V) generative models, trained on large-scale datasets, has been marked by significant progress. However, the sensitivity of T2V generative models to input prompts highlights the critical role of prompt design in influencing generative outcomes. Prior research has predominantly relied on Large Language Models (LLMs) to align user-provided prompts with the distribution of training prompts, albeit without tailored guidance encompassing prompt vocabulary and sentence structure nuances. To this end, we introduce RAPO, a novel Retrieval-Augmented Prompt Optimization framework. In order to address potential inaccuracies and ambiguous details generated by LLM-generated prompts. RAPO refines the naive prompts through dual optimization branches, selecting the superior prompt for T2V generation. The first branch augments user prompts with diverse modifiers extracted from a learned relational graph, refining them to align with the format of training prompts via a fine-tuned LLM. Conversely, the second branch rewrites the naive prompt using a pre-trained LLM following a well-defined instruction set. Extensive experiments demonstrate that RAPO can effectively enhance both the static and dynamic dimensions of generated videos, demonstrating the significance of prompt optimization for user-provided prompts.
