arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.40472cs.CV
收藏

EcoVid:一种高效的代码生成视频的令牌节省且几何感知的智能体工具

EcoVid: Efficient Code to Video with a Token-Saving and Geometry-Aware Agent Harness

Shanghai Jiao Tong University(上海交通大学);Southern University of Science and Technology(南方科技大学);East China Normal University(华东师范大学);Fudan University(复旦大学);Nankai University(南开大学);Tsinghua University(清华大学);Renmin University of China(中国人民大学);The Hong Kong University of Science and Technology(香港科技大学)

Zexuan Yan, Zhikai Wang, Zhenkun Gao, Yizhuo Jia, Juncheng Zhou, Xinyu Wang, Yuzhou Wu, Jinghong Liu, Yuanhuiyi Lyu, Yue Ma, Linfeng Zhang

AI总结:

EcoVid是一种智能体工具,通过三种确定性机制处理机械性簿记工作,在多基准测试中大幅减少令牌与API成本,降低布局缺陷,实现动画与旁白的同步。

摘要:

通过编写可执行动画代码生成带旁白的解释性视频,可获得清晰的排版、锐利的矢量图和精确的数学可视化效果,但现有的声明式流程和原生VLM智能体仍存在速度慢、成本高的问题,且容易出现空间布局冲突和视听漂移。对多轮智能体轨迹的分析显示,超过三分之二的模型轮次和令牌消耗用于机械性簿记工作——手动帧偏移计算、像素级截图检查以及未缓存的历史重放——而非高级视觉设计。我们提出EcoVid(高效代码转视频),一种与载体无关、令牌节省且几何感知的智能体工具,它将这些机械性簿记工作交由三种确定性运行时机制处理。第一,符号TTS时序绑定,根据代码中的符号句子锚点调度视觉过渡,并在运行时将其与测量的语音间隔绑定,消除因说话速率变化导致的累积时序漂移。第二,几何感知反馈,检查结构化场景布局,以零视觉令牌成本确定性标记边界框重叠、形状遮挡、画布溢出和低对比度问题,在渲染视频像素前将空间残差路由至快速纯文本修复循环。第三,缓存感知上下文管理,仅在离散的轮次边界压缩多轮修复历史,使连续轮次的前导提示前缀字节完全相同,以最大化前缀KV缓存复用,同时限制上下文增长。在涵盖Remotion、HyperFrames和Manim的60主题双语基准测试中,EcoVid将令牌使用量减少84%,API成本降低57%,布局缺陷率降至2.8%,并保持动画与语音旁白的紧密同步。

英文摘要:

Generating narrated explainer videos by writing executable animation code yields sharp typography, crisp vector diagrams, and exact mathematical visuals, yet existing declarative pipelines and native VLM agents remain slow, costly, and prone to spatial layout collisions and audio-visual drift. Analyzing multi-turn agent trajectories reveals that over two-thirds of model turns and token expenditure are consumed by mechanical bookkeeping---manual frame-offset arithmetic, pixel-level screenshot inspection, and uncached history replay---rather than high-level visual design. We propose EcoVid (Efficient code-to-Video), a carrier-agnostic, token-saving, and geometry-aware agent harness that offloads this mechanical bookkeeping to three deterministic runtime mechanisms. First, Symbolic TTS Timing Binding schedules visual transitions against symbolic sentence anchors in code and binds them to measured speech intervals at runtime, eliminating cumulative timing drift across variable speaking rates. Second, Geometry-Aware Feedback inspects the structured scene layout to deterministically flag bounding-box overlaps, shape occlusions, canvas overflows, and low contrast at zero vision-token cost, routing spatial residuals into a fast text-only repair loop before rendering video pixels. Third, Cache-Aware Context Management compacts multi-turn repair history only at discrete epoch boundaries, keeping the leading prompt prefix byte-identical across consecutive turns to maximize prefix KV-cache reuse while bounding context growth. Evaluated across a 60-topic bilingual benchmark spanning Remotion, HyperFrames, and Manim, EcoVid cuts token usage by 84% and API cost by 57%, reduces layout defects to 2.8%, and keeps animations tightly synchronized with spoken narration.

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

↑