CodeCap-Bench:代码能作为好的视频字幕吗?

·

研究论文 · 2026/10/28

视频描述旨在通过紧凑的描述保留视觉信息,主要使用自然语言。然而,精确表达细粒度的空间结构和时间动态往往导致描述冗长且可能模糊。本文探索“代码作为视频描述”的新范式,即通过图形基元、布局规则和时间函数,用可执行程序作为视觉内容的补充表示。为了检验代码描述是否能有效保留视频信息,我们在下游问答和视频重建任务中将其与自然语言描述进行比较。结果表明,代码描述在推理准确性和重建保真度上更优。尽管有这些优势,实现代码描述的潜力取决于当前多模态大语言模型(MLLMs)能否生成忠实的代码描述。为了系统评估这一能力,我们推出了CodeCap-Bench,包含323个视频,涵盖五类结构化2D内容,并配有细粒度标注和多级评估框架。大量实验表明,尽管领先的专有MLLMs展现出有前景的代码描述能力,但它们仍难以忠实捕捉复杂的时间动态,开源模型则大幅落后。

该研究探索了用代码作为视频描述的新方向,并提供了首个系统评估基准,揭示了当前多模态大模型在生成忠实代码描述方面的能力与局限,对视频理解与生成领域有重要参考价值。

Video captioning aims to preserve visual information through compact descriptions, predominantly using natural language. However, precisely expressing fine-grained spatial structures and temporal dynamics in natural language often leads to lengthy and potentially ambiguous descriptions. In this work, we explore Code as Video Caption, a paradigm where executable programs serve as a complementary representation of visual content through graphical primitives, layout rules, and functions of time. To examine whether code captions effectively preserve video information, we compare them with natural language captions on downstream question answering and video reconstruction tasks. Our results show that code captions achieve superior reasoning accuracy and reconstruction fidelity. Despite these advantages, realizing the potential of code captioning depends on whether current multimodal large language models (MLLMs) can generate faithful code captions. To systematically assess this capability, we introduce CodeCap-Bench, which comprises 323 videos spanning five categories of structured 2D content, along with fine-grained annotations and a multi-level evaluation framework. Extensive experiments reveal that while leading proprietary MLLMs demonstrate promising code captioning capabilities, they still struggle to faithfully capture complex temporal dynamics, with open-source models lagging substantially behind.

阅读原文

参与讨论