arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.28593cs.CVcs.AIcs.CL
收藏

Animation2Code: 评估视频到代码生成中的时间视觉推理

Animation2Code: Evaluating Temporal Visual Reasoning in Video-to-Code Generation

University of California, Berkeley(加州大学伯克利分校)

Anya Ji, Abhijith Varma Mudunuri, David M. Chan, Alane Suhr

AI总结:

提出Animation2Code基准,通过从视频重建可执行网页动画代码来评估视觉语言模型的时间视觉推理能力,发现现有模型在时间一致性上表现不佳。

摘要:

尽管最近的视觉语言模型(VLM)在静态视觉到代码任务(如为网页、图表或SVG生成代码)上取得了显著进步,但目前尚不清楚它们能否在存在运动时恢复时间动态。为此,我们引入了Animation2Code,这是一个通过从视频重建可执行网页动画代码来评估时间视觉推理的基准。Animation2Code包含1,069个具有多样视觉外观和运动模式的网页动画视频,并配有相应的HTML/CSS/JavaScript实现。我们提出了两个与人类对齐的指标:外观相似性和时间相似性,这使得我们能够在将渲染动画与真实样本进行比较时,将视觉保真度与时间对齐分离开来。在此数据集上对最先进的VLM进行基准测试表明,当前的VLM在重建中难以保持时间一致性,即使在外观相似性很高的情况下,包括在微调和迭代细化设置下也是如此。代码和数据可在 https://anya-ji.github.io/animation2code-website 获取。

英文摘要:

While recent vision-language models (VLMs) have achieved significant improvements on static visual-to-code tasks such as generating code for webpages, charts, or SVGs, it remains unclear whether they can recover temporal dynamics when motion is present. To this end, we introduce Animation2Code, a benchmark for evaluating temporal visual reasoning via reconstructing executable web animation code from videos. Animation2Code consists of 1,069 web animation videos with diverse visual appearances and motion patterns, paired with corresponding HTML/CSS/JavaScript implementations. We propose two human-aligned metrics, appearance similarity and temporal similarity, which allow us to disentangle visual fidelity from temporal alignment when comparing rendered animations against ground-truth samples. Benchmarking state-of-the-art VLMs on this dataset shows that current VLMs struggle to maintain temporal consistency in reconstruction, even when achieving high appearance similarity, including under finetuning and iterative refinement settings. Code and data are available at https://anya-ji.github.io/animation2code-website .

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

↑