arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.08294cs.CV
收藏

ManimCode:学习用于教育动画的视觉自校正

ManimCode: Learning Visual Self-Correction for Educational Animation

Zhengyang Liang, Lizi Liao

AI总结:

本研究推出ManimData与ManimCode框架,通过渲染引导流水线构建高质量数据集,经监督微调与强化学习训练4B模型,使教育动画渲染成功率与质量大幅提升,集成后显著增加完成视频数量并改善效果。

摘要:

Manim支持精确的程序化视频生成,但成功渲染的教育动画仍可能存在视觉缺陷、缺失解释或内容错误。渲染无法直接识别纠正这些视觉故障所需的代码修改,因此需要反馈驱动的修订。现有智能体框架采用迭代渲染与修订,但通常依赖大型模型,且多为专有模型;现有Manim数据集主要包含最终程序,往往缺乏质量验证,以及学习该优化过程所需的反馈与修订轨迹。我们推出ManimData和ManimCode,这是一套用于反馈驱动教育动画生成的数据与训练框架。我们通过渲染引导的流水线构建ManimData,该流水线迭代生成、执行、审查和修订Manim程序,并结合检索到的API文档。其24034条经渲染验证、质量筛选的记录保留了中间程序、执行错误、视觉批评意见以及修正内容。我们对这些轨迹进行角色条件监督微调,以训练ManimCode——一个40亿参数的单一模型,用于编写、审查和修订动画程序。为改进对与收集轨迹中不同错误的校正,我们随后在自生成状态上使用强化学习训练修订器,利用渲染结果和无参考质量反馈。ManimCode在ManimData-test和ManimBench上的渲染成功率分别达96.6%和97.0%,而相同推理设置下未训练的40亿参数模型的成功率仅为52.6%和82.0%;同时视频质量评分从2.48提升至2.94,从3.00提升至3.44。将ManimCode集成到两个长篇教育视频生成系统中,使完成的视频分别从19/117增至107/117,从53/239增至239/239,同时教育效果和视觉质量也得到提升。

英文摘要:

Manim supports precise, programmatic video generation, but a successfully rendered educational animation can still have visual defects, missing explanations, or incorrect content. Rendering does not directly identify the code changes needed to correct these visual failures, so feedback-driven revision is needed. Existing agentic frameworks use iterative rendering and revision but typically rely on large models, often proprietary. Existing Manim datasets primarily contain final programs and often lack quality verification and the trajectories of feedback and revisions needed to learn this refinement process. We introduce ManimData and ManimCode, a data and training framework for feedback-driven educational animation generation. We construct ManimData through a render-guided pipeline that iteratively generates, executes, reviews, and revises Manim programs with retrieved API documentation. Its 24,034 render-verified, quality-filtered records preserve intermediate programs, execution errors, visual critiques, and corrective revisions. We use role-conditioned supervised fine-tuning on these trajectories to train ManimCode, a single 4B model, to write, review, and revise animation programs. To improve correction of errors that differ from those in the collected trajectories, we then train the Reviser with reinforcement learning on self-generated states, using rendering outcomes and reference-free quality feedback. ManimCode achieves 96.6% and 97.0% render success on ManimData-test and ManimBench, compared with 52.6% and 82.0% for the untrained 4B model under the same inference setup, while also improving video quality scores from 2.48 to 2.94 and from 3.00 to 3.44. Integrating ManimCode into two long-form educational video generation systems increases completed videos from 19/117 to 107/117 and from 53/239 to 239/239, alongside improvements in educational effectiveness and visual quality.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑