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 +3 more
2/10/2026

No official code found. Best implementation: Vchitect/RAPO (108 stars, last commit 2025-10-27).

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. Project website: GitHub.

View on arXivView PDF

Code Implementations(1)

Vchitect/RAPOCommunity73%

[CVPR 2025] The Devil is in the Prompts: Retrieval-Augmented Prompt Optimization for Text-to-Video Generation

1081PythonApr 19, 202511 months ago

Similar Papers

Cite this paper

@article{gao2026devil,
  title  = {The Devil is in the Prompts: Retrieval-Augmented Prompt Optimization for Text-To-Video Generation},
  author = {Bingjie Gao and Xinyu Gao and Xiaoxue Wu and Yujie Zhou and Yu Qiao and Li Niu and Xinyuan Chen and Yaohui Wang},
  year   = {2026},
  eprint = {2504.11739},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2504.11739},
  journal = {CVPR 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.11739.svg)](https://codeofpaper.com/paper/2504.11739)

Discussion