Video-Coder:强化智能体编码的视频生成方法
Video-Coder: Reinforcing Agentic Coding for Video Generation
AI总结:
本文提出Video-Coder,首个基于编码的视频生成智能体,通过自主编写执行代码构建3D场景,结合SFT与带双重奖励的强化学习,在PhyGenBench和VBench-2.0上显著提升性能,开源相关数据模型代码。
摘要:
近年来,视频生成在视觉质量和时间一致性方面取得了显著进展,但生成具有精确空间结构、连贯运动动态和可控场景组合的视频仍具挑战性。本文提出Video-Coder,这是首个训练基于编码的视频生成智能体的尝试,该智能体可自主编写并执行代码以构建动态3D场景(草稿视频),为下游视频生成器提供结构和运动信号。为支持该范式,我们设计了专用数据流水线并整理了两个高质量数据集:Video-Coder-SFT-6k和Video-Coder-RL-2k,包含多样提示词和真实参考视频。我们还开发了Video-Coder Harness,这是一个统一的交互环境,集成了代码执行、3D场景渲染和执行反馈,用于智能体的训练与推理。随后,我们先通过监督微调(SFT)训练Video-Coder,再利用该环境原生的带双重奖励反馈的智能体强化学习进行训练,双重奖励结合了基于执行的奖励和基于视频的奖励。此外,我们设计了退火训练策略,随时间逐步降低执行奖励,使模型在训练后期更多依赖视频奖励。实验表明,Video-Coder取得显著提升,在PhyGenBench上使Minimax-H3提升约7个点,在VBench-2.0上提升24个点。我们希望这项工作能为视频生成领域的编码智能体提供开放基础,并完全开源我们的数据、模型和代码。
英文摘要:
Recent years have witnessed remarkable progress in video generation in terms of visual quality and temporal consistency. However, generating videos with precise spatial structure, coherent motion dynamics, and controllable scene composition remains challenging. In this paper, we introduce Video-Coder, the first attempt to train a code-driven video generation agent, which autonomously writes and executes code to construct a dynamic 3D scene (Draft Video) that provides structure and motion signals to downstream video generators. To support this paradigm, we design a dedicated data pipeline and curate two high-quality datasets, Video-Coder-SFT-6k and Video-Coder-RL-2k, which contain diverse prompts and ground-truth reference videos. We further develop the Video- Coder Harness, a unified interactive environment integrating code execution, 3D scene rendering, and execution feedback for agent training and inference. We then train Video-Coder with SFT fol- lowed by harness-native agentic reinforcement learning with dual reward feedback, which combines execution-based and video-based rewards. Additionally, we design an annealing training strategy that gradually reduces the execution reward over time, allowing the model to rely more on the video reward in the later training stages. Experiments show that Video-Coder achieves significant gains, improving Minimax-H3 by approximately 7 points on PhyGenBench and 24 points on VBench-2.0. We hope this work can serve as an open foundation for coding agents in video generation, and we fully open-source our data, models, and code
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。