通过优化提示词提升文本生成视频的质量与安全性
VPO: Aligning Text-to-Video Generation Models with Prompt Optimization

- 基于无害、准确、有用三原则,系统优化用户输入提示
- 两阶段迭代优化,结合文本与视频反馈提升生成质量
- 可通用适配多种视频模型,且优于或兼容强化学习对齐方法
视频生成模型在文本到视频任务上取得了显著进展。这些模型通常在包含高度详细且精心设计描述的图文对上训练,而实际推理时用户的输入往往简短、模糊或结构不佳。这一差距使得提示词优化至关重要。现有方法多依赖大语言模型(LLMs)通过上下文学习进行提示优化,但存在扭曲用户意图、遗漏关键细节或引入安全风险等问题。此外,这些方法在优化提示时未考虑对最终视频质量的影响,可能导致次优结果。为此,我们提出VPO,一个基于无害性、准确性与有用性三个核心原则的框架。生成的提示忠实保留用户意图,并显著提升视频的安全性和质量。VPO采用两阶段优化:首先构建并完善基于安全与对齐原则的监督微调(SFT)数据集;其次引入文本级与视频级反馈,通过偏好学习进一步优化SFT模型。大量实验表明,VPO相比基线方法显著提升了安全性、对齐度与视频质量。同时,VPO在多种视频生成模型间展现出强泛化能力。此外,我们证明VPO可超越甚至与强化学习人类反馈(RLHF)方法结合使用,凸显其在对齐视频生成模型方面的有效性。代码与数据已公开于https://github.com/thu-coai/VPO。
原文摘要 · Abstract (English)
Video generation models have achieved remarkable progress in text-to-video tasks. These models are typically trained on text-video pairs with highly detailed and carefully crafted descriptions, while real-world user inputs during inference are often concise, vague, or poorly structured. This gap makes prompt optimization crucial for generating high-quality videos. Current methods often rely on large language models (LLMs) to refine prompts through in-context learning, but suffer from several limitations: they may distort user intent, omit critical details, or introduce safety risks. Moreover, they optimize prompts without considering the impact on the final video quality, which can lead to suboptimal results. To address these issues, we introduce VPO, a principled framework that optimizes prompts based on three core principles: harmlessness, accuracy, and helpfulness. The generated prompts faithfully preserve user intents and, more importantly, enhance the safety and quality of generated videos. To achieve this, VPO employs a two-stage optimization approach. First, we construct and refine a supervised fine-tuning (SFT) dataset based on principles of safety and alignment. Second, we introduce both text-level and video-level feedback to further optimize the SFT model with preference learning. Our extensive experiments demonstrate that VPO significantly improves safety, alignment, and video quality compared to baseline methods. Moreover, VPO shows strong generalization across video generation models. Furthermore, we demonstrate that VPO could outperform and be combined with RLHF methods on video generation models, underscoring the effectiveness of VPO in aligning video generation models. Our code and data are publicly available at https://github.com/thu-coai/VPO.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。