VideoJSON: A Minimal Harness Beats Purpose-Built Memory for Ultra-Long Video Understanding
Organizations: University of British Columbia · University of California, San Diego · National Taichung University of Education
Abstract
Answering questions over days or weeks of video requires searching for scattered clues across long timelines. Existing video agents rely on complex memory graphs and fixed retrieval pipelines, which restrict how the agent can search. We propose VideoJSON, a minimal harness for ultra-long video understanding that keeps the memory simple and lets a coding agent write its own search programs. During indexing, a vision-language model turns each minute of video into a single JSON record containing a dense caption and structured fields such as events, entities, places, and speech transcripts. At query time, the agent writes Python or Bash programs in a sandboxed container to filter, link, and read these records over multiple steps, without task-specific training or raw video access. On four ultra-long video benchmarks, VideoJSON with DeepSeek V4.1 Flash outperforms MAGIC-Video by 7.0, 20.0, and 24.75 points on EgoLifeQA, Ego-R1-Bench, and MM-Lifelong Week, and beats the best prior EgoMemReason score by 12.6 points. Across four policy models of increasing capability, VideoJSON's average score rises by up to 11.58 points over the weakest model, compared with at most 5.50 points for MAGIC-Video. Ablations show that both agentic code search and the structured JSON records drive these gains, while adding hourly summaries, extra tools, or video access changes the average score by less than 1.5 points. In addition, fine-tuning Qwen-3.5-Flash on 64 VideoJSON trajectories from an unrelated 100-hour livestream improves its MM-Lifelong scores by up to 8.25 points. Code will be open-sourced after publication.
Figures & tables
| Method | Model | EgoLifeQA | Week | Day | Month | Ego-R1-Bench |
|---|---|---|---|---|---|---|
| ReMA [ 1 ] | GPT-5 | – | 18.82 ∗ | 16.75 ∗ | 18.62 ∗ | – |
| GROVE [ 5 ] | GPT-5.2 | – | 22.75 ∗ | 23.50 ∗ | 19.98 ∗ | – |
| Ego-R1 [ 30 ] | GPT-OSS-120B + Qwen-3.5-Flash | 37.6 † | 14.25 † | 6.50 † | – | 30.0 † |
| AVP [ 33 ] | GPT-OSS-120B + Qwen-3.5-Flash | 30.2 † | 14.50 † | 4.25 † | – | 28.7 † |
| WorldMM [ 38 ] | Qwen-3.5-Flash | 56.0 † | 31.42 † | 8.50 † | – | 57.3 † |
| MAGIC-Video [ 11 ] | Qwen-3.5-Flash | 67.6* | 30.92 † | 10.08 † | 24.5 ∗ | 64.7* |
| Method | Backbone | Modality | Tracking | Counting | Ordering | Linking | Spatial | Activity | Overall |
|---|---|---|---|---|---|---|---|---|---|
| Direct Model | Gemini-3-Flash | frames-only | 46.0 | 28.0 | 36.0 | 44.0 | 44.0 | 44.0 | 39.6 |
| Direct Model | Gemini-3.1-Pro | frames-only | 40.0 | 26.0 | 44.0 | 33.0 | 40.0 | 48.0 | 37.4 |
| AVP | Gemini-3-Flash | frames-only | 34.0 | 42.0 | 31.0 | 27.0 | 38.0 | 34.0 | 34.0 |
| Best Prior | - | - | 46.0 | 50.0 | 44.0 | 44.0 | 50.0 | 48.0 | 39.6 |
| VideoJSON (Ours) | DeepSeek | caption-only | 53.0 | 32.0 | 86.0 | 43.0 | 50.0 | 44.0 | 52.2 |
| Setting | EgoLifeQA | Week | Day | Month | Cost/q (US¢) |
|---|---|---|---|---|---|
| Minimal Harness | 79.00 | 59.75 | 64.75 | 49.50 | 1.52 |
| + video_qa | 77.00 | 60.50 | 67.25 | 53.75 | 3.57 |
| + Decision API | 77.00 | 58.50 | 66.25 | 52.25 | 1.58 |
| + Hourly Caption | 78.50 | 59.75 | 64.50 | 51.75 | 1.50 |
| w/ MAGIC Index | 71.50 | 50.25 | 27.00 | 47.50 | 1.64 |
| Dense Caption Only | 77.50 | 52.00 | 66.50 | 45.00 | 1.58 |
| Key | EgoLifeQA | Week | Day | Month | Ego-R1-Bench | Avg. |
|---|---|---|---|---|---|---|
| clip_id | 83.8 | 89.8 | 87.4 | 93.1 | 91.6 | 89.2 |
| dense_caption | 59.6 | 60.3 | 56.7 | 66.3 | 61.7 | 60.9 |
| start_time | 91.2 | 88.3 | – | – | 92.1 | 54.3 |
| transcription | 56.1 | 47.5 | 30.8 | 51.3 | 64.8 | 50.1 |
| day | 72.1 | 66.0 | – | – | 74.1 | 42.5 |
| events | 36.4 | 32.6 | 30.3 | 34.0 | 32.0 | 33.1 |
| Tool | Share (%) |
|---|---|
| exec | 99.28 |
| exec_qa | 0.72 |
| Method | Captioning Model | EgoLifeQA | Week | Day | Month | Ego-R1-Bench |
|---|---|---|---|---|---|---|
| MAGIC-Video | EgoLife captions + GPT-OSS-120B | 72.50 | 41.25 | – | – | 64.00 |
| MAGIC-Video | Qwen-3.8-Flash-Next | 61.50 | 37.50 | 10.50 | 30.50 | – |
| VideoJSON (Ours) | Qwen-3.8-Flash-Next | 77.00 | 58.00 | 61.00 | 49.25 | 80.00 |
| VideoJSON (Ours) | Qwen-3.5-Flash | 74.50 | 57.75 | 49.00 | 48.00 | 74.00 |
| Model | Week | Day | Month |
|---|---|---|---|
| Qwen-3.5-Flash | 38.50 | 31.50 | 34.35 |
| + SFT | 46.75 | 34.75 | 39.73 |
| +8.25 | +3.25 | +5.38 | |
| 95% CI | [1.25, 15.25] | [ 3.00, 9.50] | [1.85, 8.91] |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| EgoLifeQA | Week | Day | Month | Ego-R1-Bench | |
| Score (%) | |||||
| With exec_qa | 76.84 | 57.90 | 65.55 | 49.17 | 79.20 |
| Without exec_qa | 78.20 | 61.25 | 64.75 | 48.15 | 74.00 |
| Cost/q (US¢) | |||||
| With exec_qa | 1.38 | 1.50 | 1.68 | 1.45 | 1.21 |
| Without exec_qa | 1.38 | 1.40 | 1.65 | 1.34 | 1.26 |
| Dataset | First | Mean | Std | Range |
|---|---|---|---|---|
| EgoLifeQA | 77.40 | 76.84 | 1.43 | 75.00–78.80 |
| Week | 59.75 | 57.90 | 1.39 | 55.75–59.75 |
| Day | 64.75 | 65.55 | 2.27 | 62.50–69.50 |
| Month | 48.39 | 49.17 | 0.75 | 48.31–50.24 |
| Ego-R1-Bench | 78.00 | 79.20 | 2.71 | 76.00–84.00 |
| Run 1 | Run 2 | Run 3 | Run 4 | Run 5 | Mean | Std | |
|---|---|---|---|---|---|---|---|
| Bilingual | 75.40 | 76.80 | 77.00 | 78.80 | 77.80 | 77.16 | 1.13 |
| Chinese | 77.40 | 75.00 | 78.80 | 75.40 | 77.60 | 76.84 | 1.43 |
Long-Video QA
Long-video question answering develops methods for finding and reasoning over relevant visual and audio evidence across extended recordings.
See all 105 papers