CodeCap-Bench: Can Code Serve as a Good Video Caption?

Jiafu Tang, Yifan Xu, Eric Tang, Junjie Zhao, Shipeng Luo +9 more
10/27/2026
cs.CV
benchmark-dataset

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tang2026codecapbench,
  title  = {CodeCap-Bench: Can Code Serve as a Good Video Caption?},
  author = {Jiafu Tang and Yifan Xu and Eric Tang and Junjie Zhao and Shipeng Luo and Te Sun and Haoxuan Hu and Yiyan Ji and Xinlong Chen and Zihao Wang and Yang Shi and Yuanxing Zhang and Pengfei Wan and Jiaheng Liu},
  year   = {2026},
  eprint = {2610.37341},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.37341v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.37341.svg)](https://codeofpaper.com/paper/2610.37341)

Discussion