CodeCap-Bench: Can Code Serve as a Good Video Caption?
Jiafu Tang, Yifan Xu, Eric Tang, Junjie Zhao, Shipeng Luo, Te Sun, Haoxuan Hu, Yiyan Ji,
Key points
From the paper's conclusion- Our results show that code captions achieve superior reasoning accuracy and reconstruction fidelity.
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. 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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Code2Video-Compass: A Comprehensive Benchmark for General-Purpose Code-Based Video Generation across T2V, I2V, and V2VarXiv · 2026
- VibeVideoAgent: Closing the Perceptual Loop for Code-Driven Video GenerationarXiv · 2026
- VidToC: Rethinking Video Token Compression for Multimodal Large Language ModelsarXiv · 2026
- Solve Vision with Code: Coding Agents Are Stronger Visual Reasoners Than Video ModelsarXiv · 2026
- VibeVideoBench:Evaluating Multimodal Agents on Code-Driven Video GenerationarXiv · 2026
- Video-Bench: A Comprehensive Benchmark and Toolkit for Evaluating Video-Based Large Language ModelsComputational Visual Media · 2025