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

Video2Code: 通过动作感知重访从UI视频生成交互式网页

Video2Code: Generating Interactive Webpages from UI Videos via Action-Aware Revisit

University of Waterloo(滑铁卢大学);Tsinghua University(清华大学);Zhipu AI(智谱AI);Beihang University(北京航空航天大学)

Mingde Xu, Zhen Yang, Yan Wang, Yu Wang, Xijun Liu, Zijun Dou, Wenyi Hong, Xiaotao Gu, Bin Xu, Jie Tang

AI总结:

提出Video2Code方法,通过动作感知重访UI视频中的关键区域,恢复可执行的状态转换,生成HTML/CSS/JavaScript代码,提升多步交互的代码功能正确性。

摘要:

UI视频为生成交互式网页提供了自然输入,因为它们同时捕获了网页外观和动作触发的状态转换。然而,直接将具备视频能力的视觉语言模型应用于此任务仍不充分。现有模型通常依赖稀疏采样或压缩的时间表示,可能错过短暂的动作边界,并破坏实现网页行为所需的状态-动作-状态转换。我们将UI视频到代码的生成定义为从交互视频中恢复可执行的状态转换,并将这种失败模式识别为状态转换错位。我们引入Video2Code,一种基于动作感知的视频到代码方法,用于恢复可执行的UI状态转换。Video2Code并非在整个视频中均匀分配视觉预算,而是首先进行粗粒度视频理解以定位动作关键区域,然后调用时间裁剪工具以更高时间分辨率重访这些区域,再生成HTML/CSS/JavaScript代码。我们使用动作对齐的视频-代码监督实例化Video2Code,并在视觉和功能标准下进行评估。实验表明,Video2Code显著增强了底层开源模型在UI视频到代码生成上的能力,相比直接视频观察,提高了功能正确性,尤其是在密集的多步交互中。

英文摘要:

UI videos provide a natural input for generating interactive webpages, as they capture both webpage appearance and action-triggered state transitions. However, directly applying video-capable vision-language models to this task remains insufficient. Existing models typically rely on sparse sampling or compressed temporal representations, which may miss short action boundaries and break the state-action-state transitions needed to implement webpage behavior. We formulate UI video-to-code generation as executable state-transition recovery from interaction videos, and identify this failure mode as state-transition misalignment. We introduce Video2Code, an action-aware video-to-code approach for recovering executable UI state transitions. Rather than allocating the visual budget uniformly across the video, Video2Code first performs coarse video understanding to locate action-critical regions, then invokes a temporal clipping tool to revisit these regions at higher temporal resolution before generating HTML/CSS/JavaScript code. We instantiate Video2Code with action-aligned video-code supervision and evaluate it under both visual and functional criteria. Experiments show that Video2Code substantially strengthens the underlying open-source model for UI video-to-code generation, improving functional correctness over direct video observation, especially on dense multi-step interactions.

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

↑