Back to articles

VideoJSON Lets Agents Code Their Way Through Long Videos

2 min read

Answering a question such as who said what, and where, during a trip weeks ago requires finding clues scattered across a long timeline. Ultra-long video understanding is therefore not just a matter of recognizing scenes: a system must preserve information in searchable form and trace evidence in ways suited to each question. VideoJSON takes a deliberately lightweight approach. Rather than relying on elaborate memory graphs or a fixed retrieval pipeline, it lets an agent program its own search.

A two-stage design

  • Turn video into records. During indexing, a vision-language model produces one JSON record per minute. Each record combines a dense caption with structured fields for events, entities, places, and speech transcripts.
  • Let the agent write the search. At query time, the agent can create Python or Bash programs in a sandboxed container, filtering, linking, and reading records over multiple steps. It does not access the raw video and does not require task-specific training.

The key shift is that the retrieval strategy is not fixed in advance. For questions spanning different times, people, or locations, an agent can construct search logic around the query instead of being constrained by a predefined memory structure. JSON provides a consistent representation that code can inspect and connect.

What the paper reports

Across four ultra-long video benchmarks, the authors report that VideoJSON with DeepSeek V4.1 Flash scores 7.0, 20.0, and 24.75 points above MAGIC-Video on EgoLifeQA, Ego-R1-Bench, and MM-Lifelong Week, respectively. It also exceeds the best prior EgoMemReason score by 12.6 points. As policy models become more capable, VideoJSON's average score rises by as much as 11.58 points, compared with at most 5.50 for MAGIC-Video. Ablations attribute gains to both agentic code search and structured JSON records. Adding hourly summaries, extra tools, or video access changes the average score by less than 1.5 points.

Why it matters

The results suggest an alternative to adding ever more specialized memory components: organize evidence into a usable format, then give an agent flexible tools to retrieve it. That could reduce dependence on task-specific pipelines in long-video question answering. The findings, however, are benchmark results reported by the paper, not a guarantee of performance in everyday settings. Record quality, execution cost, sandbox constraints, and performance across different video types still warrant fuller evaluation.

Hugging Face Daily Papers

Comments

Checking sign-in status...

Loading comments...

Related articles