Datasets:
Dataset card: file tree and evaluation guide
Browse filesFiles changed (3)
- README.md+213-231
- assets/pipeline.jpgAdded
- assets/teaser.jpgAdded
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290---license: apache-2.0pretty_name: Video-Arenatask_categories:- video-text-to-texttags:- video-understanding- games- benchmark- agenticsize_categories:- n<1K---# Video-Arena**Can a model watch a match and know who is winning?**Video-Arena asks a model to watch one long, HUD-free recording of a real game and reconstructwhat happened *and* what it meant. 180 cases across 9 games — board, card, FPS, MOBA, RTS, andsports — 15,278 reference tuples, 74 hours of video, one deterministic scorer per game and noLLM judge anywhere in the loop.The hidden quantity is a **game state variable** $V_t = f(S_t)$: a win probability, a net-worthadvantage, a score. It is never drawn on screen. Every scoreboard, clock, evaluation bar, killfeed, name, and counter is removed by the rendering contract, so the only way to report $V_t$ isto have tracked the whole match.For each critical event $e_i$ the model must produce one complete tuple $y_i = (e_i, u_i, s_i)$:| Tier | Name | What it asks ||---|---|---|| **T1** | Perceive | **What happened, when, and to whom** — event type, timestamp, entities || **T2** | Interpret | **What it changed** — the update to $V_t$ associated with the event || **T3** | Track | **Where that leaves the match** — the state of $V_t$ *after* the event |A tuple scores only if **all three tiers are right at once**. Spotting a teamfight and guessingwho came out ahead earns nothing.---## Quick start```bashgit clone <this repo> && cd Video-Arena-Benchmarkpython tools/va_core.py # corpus self-check: 9 games x 20 cases, every file presentpython tools/score.py --oracle # scorer self-check: 180/180 cells at 1.0 -> PASSpython tools/score.py --empty # the floor: 180/180 cells at 0.0 -> PASS```Pure Python 3.8+, standard library only. No install, no dependencies, no network. (`ffmpeg` isneeded only to *run* Protocol A, not to score.)Then score your own answers:```bashpython tools/score.py --answers path/to/answerspython tools/score.py --answers path/to/answers --game cs2 --per-case````answers/` mirrors the corpus — `answers/<game>/<case_id>.json`, one file per case, in the schemathe task's `instruction.md` specifies.---## The nine environments| Game | Regime | Len (min) | $n_y$/case | Video | T1 event | T2 update | T3 state ||---|---|---|---|---|---|---|---|| Gomoku | board | 3.2 ± 1.5 | 40 ± 9 | 504² 25fps | move | win-rate swing (Rapfi) | leader after || Go | board | 31.8 ± 17.2 | 276 ± 67 | 612² 25fps | move, capture | win-rate swing (KataGo) | leader after || Chess | board | 31.0 ± 21.5 | 88 ± 23 | 548² 1fps | ply, capture | win-rate swing (Stockfish) | leader after || Doudizhu | card | 4.4 ± 0.9 | 21 ± 4 | 1280×720 24fps | non-pass play, combo, count | win-rate swing (hidden-hand PIMC) | leader after || CS2 | FPS | 38.9 ± 8.9 | 185 ± 35 | 768² 15fps | kill, elimination, plant, defuse, explode, save | round winner | cumulative score after the round || DOTA 2 | MOBA | 47.8 ± 15.4 | 30 ± 11 | 768² 15fps | first blood, tower, barracks, Roshan, teamfight, ancient | minute-level net-worth change | net-worth leader at interval end || SC2 | RTS | 19.4 ± 3.1 | 68 ± 22 | 1536² 5.6fps | battle, building destroyed | resource-value swing | resource-value leader after || GFootball | sports | 25.0 ± 6.2 | 20 ± 9 | 1280×720 24fps | goal (side, scorer) | goal-differential shift | exact score pair after || Badminton | sports | 19.9 ± 2.6 | 35 ± 3 | 1280×720 15fps | point (side, landing zone) | score-differential shift | exact score pair after |20 cases per game, stratified so the corpus holds matches that are hard for different reasons.Eight of the nine games stratify by trajectory shape — **blowout** (one side ahead throughout), **tense**(repeated lead changes), **reversal** (the eventual winner trailed; CS2 and DOTA 2 label this class`comeback`). SC2 is the exception: resource-equivalent value rarely reverses inside a game, so itbalances on **which side led** instead, 10 A-led and 10 B-led. Each game's `CASE_TYPES.json` carriesits per-case label, and its `instruction.md` the $V_t$ definition in full; the rule that assigns the label isper-environment, because the shape of $V_t$ decides which class is the fragile one to detect.**Ground truth comes from the game, not from annotators.** Five environments use a **parser**(CS2 demos, DOTA 2 replays + OpenDota, SC2 tracker events, GFootball engine traces, ShuttleSetstroke records); four use a pinned **evaluator** (KataGo, Stockfish, Rapfi, and a hidden-handPIMC estimator for Doudizhu). There is no human labelling step and no model in the loop, whichis why fresh held-out cases can be generated on demand.---## ScoringThe headline metric is **strict tuple F1**. A prediction matches a reference tuple when **every non-temporal field is exactly equal** and the predicted time is **within ±3 s**. Matching is one-to-one: each reference tuple pairs with at most one prediction, and the judge takes the **largest** set of such pairs — of those, the one with the least total time error.**Row order does not affect any score.** Every judge solves the pairing as a whole — a maximum one-to-one matching of predicted to reference rows with the same event identity, the least total |Δt| among the maximum ones, and at equal |Δt| the fewest disagreeing fields (CS2 needs no such tie-break: its T2/T3 are read per round, not off matched rows) — so the timestamp, not the position in the list, is what localizes an event, and no row can lose its partner to a row listed before it. There is no ordering penalty, and `idx` is a readability field that no judge reads. Measured: feeding ground truth back **reversed** and **shuffled** scores 1.0000 on the headline and on T1, T2, and T3 in all 360 of those cells, and on 72 noisy answers (8 per game: rows dropped, duplicated, time-jittered by up to ±3.5 s, and relabelled) the forward, reversed, and shuffled lists score identically.Two places where order still shows up, none of them a penalty for answering out of sequence:- `score_after` is **cumulative**, so one early score error propagates to every later row thatcarries it (GFootball, Badminton, CS2).- Badminton's T3 self-consistency diagnostic sorts your rows by time before accumulating them.The **T2/T3 diagnostics** pair rows on the T1 key alone, which is weaker than the strict key: where two same-type events sit in the same place within ±3 s, that key cannot tell them apart, and the judge falls back on the least total |Δt| and then the fewest disagreeing labels. That is deterministic and independent of row order, but it is a rule rather than an identity. Only SC2 has this densely enough to measure — its 3×3 region grid puts up to 75 such pairs in one case. Under the earlier row-by-row greedy matcher, reversing ground truth moved SC2's T2 from 1.0000 to 0.9656; it now reads 1.0000 forward, reversed, and shuffled. The headline was never affected, because the strict key includes the T2 field.Answering in chronological order is the sane default — it just is not what the matcher keys on.Three diagnostics explain a low score rather than replacing it:- **T1** — event localization F1 (type + entity, same ±3 s)- **T2** — accuracy of the update label, macro-averaged over that game's classes- **T3** — accuracy of the resulting state> **Read T2/T3 as macro accuracy.** A constant answer collapses to chance, where raw accuracy> would have read 0.7–0.9 on a skewed environment (Go's T2 is 87% `equal`). Chance itself differs> by game, because T2's vocabulary is whatever a change in that $V_t$ can be: three classes on a> win probability (0.333), four on a score differential — `taken` / `extended` / `levelled` /> `narrowed` (0.25) — and two on a CS2 round winner (0.5). T3's metric varies by design too:> board/card/MOBA/RTS score a class label, while GFootball, Badminton, and CS2 score an **exact> integer score pair** — all three answer "did it track the state", so `score.py` puts them in> one column and each judge records which it computed.Each game's scorer is a single self-contained `judge.py` with one CLI:```bashpython tasks/<game>/judge.py --answer ANSWER.json --gt tasks/<game>/gt/<case_id>_gt.json \--out reward.json --tol 3.0```**Every game uses the same root key**, `events`, so an answer file is`{"events": [ ...one complete tuple per row... ]}` in all nine. Two scorer families remain, andthey differ only in where the tier block lands in `reward.json` and whether the judge takes`--primary`; `tools/score.py` handles both, and `cases.json` records which is which:| Family | Games | Root key | Tier block | `--primary` ||---|---|---|---|---|| F1 | go, chess, gomoku, doudizhu, gfootball, badminton | `events` | `reward["tiers"]` | `strict` || F2 | cs2, dota2, sc2 | `events` | `reward["detail"]` | not accepted |Both self-checks are assertions with exit codes, not reports: `--oracle` feeds ground truth backthrough the full path (answer extraction, judge subprocess, aggregation) and **every one of the180 cells must read exactly 1.0**; `--empty` feeds the shipped answer seeds and every cell mustread 0.0. A scorer that cannot hit both fixed points is not measuring anything.---## Two protocolsThe same 180 cases, asked two ways. The **task text is identical** — one `instruction.md` pergame serves both, with the delivery-specific lines marked `<!-- A-ONLY -->` / `<!-- B-ONLY -->`and rendered per protocol by `va_core.instruction_for()`. Only the *delivery* differs, which iswhat makes the two numbers comparable.**Protocol A — video understanding.** One chat call. The video is reduced to a uniform frame gridand handed over with the instruction in a single user turn; the reply must contain one JSONobject. No tools, no filesystem, no second turn.> **One sampling grid for every model and every game:** 1 FPS, capped at 256 frames spread> uniformly over the whole match, longest side 768 px, never upscaled. A per-model frame budget> would make every row of a results table a different measurement. 1 FPS because these are real> matches that sit idle between events — sampling denser than the event cadence returns duplicate> stills. No upscaling because several boards render below 768 px (Go 612, Chess 548, Gomoku 504)> and enlarging them doubles the token cost for zero added information.```bashexport VA_API_KEY=...python tools/run_protocol_a.py --model MODEL --base-url https://.../v1 \--game all --out runs/mymodel-Apython tools/score.py --answers runs/mymodel-A/answers```**Protocol B — agentic.** The whole video goes into a sandbox with a coding agent, which works for many turns: sample frames however it likes, write its own parsers, and build up `answer.json` incrementally. The sandbox is a fresh folder with a random name under the system temp dir — outside the repo, so the ground truth is not one relative path away, and never reused — and it holds exactly three files: `match.mp4`, `instruction.md`, and a pre-seeded `answer.json` (a byte-for-byte copy of the game's `answer_seed.json`: the root key and an empty list).```bashpython tools/run_protocol_b.py --game all --out runs/agentX-B \--agent-cmd "your-agent -p @PROMPT_FILE@ --max-turns 200"````run_protocol_b.py` builds the sandbox and runs *your* agent command in it — every coding agenthas its own CLI, so bundling one would make the reference useless for the rest.**On [Harbor](https://github.com/harbor-framework/harbor).** `tools/make_harbor.py` packages thesame 180 cells as a Harbor dataset: the same three sandbox files, the same budget, the same judges,and the ground truth only in a separate verifier container. The sandbox there is offline, withffmpeg and a Python video stack pre-installed. `--protocol A` packages Protocol A the same way,run with the bundled `protocol_a_agent` (same grid, same single request). See[`docs/HARBOR.md`](docs/HARBOR.md).**The budget is 200 turns and 120 minutes per cell** — the runner's defaults (`--max-turns 200 --timeout-min 120`), both stated to the agent in its turn-1 prompt. The runner enforces the wall clock itself, killing the agent's whole process tree at the limit; the turn cap can only be enforced by your agent's own flag, so pass it the same number, as above.> **Why `answer.json` is pre-seeded.** It makes "never answered" measurable. If the final bytes still hash to the seed, the agent never wrote an answer — a budget or behaviour failure, not an answer that scored 0.0 — and `run.json` records which of `wrote` / `never_wrote` / `deleted` happened. It still **scores** 0.0 and stays in the mean: the runner exports the untouched seed for `never_wrote` and `deleted`, because leaving them out would let an agent that never answers post a higher mean than one that answers badly.> **The no-network rule is audited, not enforced.** The prompt forbids installs, downloads, and> looking the match up. No sandbox can enforce that while the agent's own brain is an HTTPS call,> so a serious evaluation scans the agent's transcript afterwards. Claiming isolation would not> be true; the audit belongs in your harness, next to your transcript format. (The Harbor> packaging does enforce it at the network level, because there the model call leaves from the> host, or through an allow-list of one API host. See `docs/HARBOR.md`.)Both runners are **reference implementations**: they fix the parts that must not vary betweensystems — the sampling grid, the single turn, the sandbox contents, the answer extraction — andleave out retries, rate limiting, concurrency, and cost accounting. Bring your own.### Reporting a number- **Quote the denominator.** `score.py` prints `n_scored/n_cases` next to every mean. A cell that never ran — a call that never got a reply, an agent that never started — is reported as `missing`, never as 0.0: "did not run" and "ran and got nothing" are different measurements. A cell that ran and left no answer (Protocol B `never_wrote` / `deleted`, Protocol A `no_answer`) is the model's result: it scores 0.0, stays in the mean, and is counted in `score.py`'s `0-row` column so it stays visible.- **The overall row is the mean of the nine environment means**, not of 180 cases, so oneunscored cell cannot silently reweight the games against each other.- **Protocol B is not reproducible cell-by-cell.** The agent's trajectory is a random variable:the same cell run twice under identical conditions has measured 0.0645 and 0.0323 (T1 stable at1.0, all the movement in T2/T3). Cite environment means with n, not single cells.- **On long matches Protocol A's grid caps T1 recall below 1** at `min(1, 2·TOL/spacing)`,independent of the model. `run_protocol_a.py` records `t1_recall_ceiling` per cell so a low T1can be read as "no frame was close enough" rather than "the model missed the event".---## Layout```tasks/<game>/instruction.md the task: event vocabulary, conventions, V definition, answer schemaanswer_seed.json empty answer skeleton (Protocol B pre-seeds the sandbox with this)judge.py the deterministic scorer, self-contained, standard library onlycases.json the frozen 20 case ids, in orderCASE_TYPES.json per-case stratification label, and the thresholds or class counts behind itmedia/<case_id>.mp4 the video — the only model inputgt/<case_id>_gt.json reference tuples — OFFLINE SCORER ONLY, never shown to a modeltools/va_core.py the corpus contract: resolve, instruction_for, extract_answer, run_judgescore.py score an answers directory; --oracle / --empty self-checksrun_protocol_a.py minimal video-understanding runner (uniform frames, one chat call)run_protocol_b.py minimal agentic runner (sandbox + your agent command)make_harbor.py Protocol B (or --protocol A) as a Harbor dataset; see docs/HARBOR.mdharbor/ the offline sandbox image (Dockerfile), validate_harbor.py, andprotocol_a_agent.py (the Harbor agent for Protocol A)docs/PROTOCOLS.md the two protocols in full, and what a comparable run requiresGROUND_TRUTH.md per-environment source, GT mechanism, and V definitionHARBOR.md running both protocols on Harbor: image, datasets, network modes```The release is the benchmark and its evaluation: the 180 videos, their ground truth and judges,and the native and Harbor runners. The case-building pipelines (renderers, replay parsers,evaluator drivers) are not part of it; `docs/GROUND_TRUTH.md` documents how every label wasproduced and which engine and budget it was pinned to.Case ids are permanent. They appear in published results, so a case is never renamed — a newrender gets a new id.**Ground truth ships in the clear.** `gt/` is right there in the repo, because a benchmark whosescorer cannot be inspected cannot be trusted. Keep it out of prompts and out of Protocol Bsandboxes; `va_core.resolve()` hands the GT path to the offline scorer and nothing else. Every`instruction.md` and `_gt.json` carries a `CANARY` line for contamination detection — pleasedon't train on them.---## Citation```bibtex@misc{videoarena2026,title = {Video-Arena: An INFINITE Agentic Video Benchmark for SpatiotemporalTracking and Understanding},author = {Zhang, Chi and Chen, Yukun and Yang, Zhihao and Luo, Run and Tan, Taoand Su, Yue and Du, Enjun and Chen, Zirong and Wu, Xiangnanand Zheng, Yinhe and Li, Yiming},year = {2026},note = {Preprint},}```## License and attributionBenchmark code, ground truth, and renders are released under **Apache-2.0**. The renders areinformation-reduced derivatives: no player names, portraits, faces, avatars, ranks, or audio, andno personal data.Upstream sources keep their own terms, and two require a notice that travels with the data:- **Badminton** derives from **ShuttleSet** (CoachAI-Projects, MIT, © 2022 Wei-Yao Wang). Thefull notice and citation are in `tasks/badminton/ATTRIBUTION.md` and must accompany anyredistribution of those renders.- **CS2, DOTA 2, SC2** derive from publicly published professional demos and replays; the gamecontent remains the property of its publishers.See `docs/GROUND_TRUTH.md` for every environment's source, accessed date, and engine version.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272---license: apache-2.0pretty_name: Video-Arenalanguage:- entask_categories:- video-text-to-texttags:- video-understanding- long-video- games- agentic- spatiotemporal-reasoning- benchmarksize_categories:- n<1Kviewer: false---<div align="center"><h1 align="center" style="font-size:3.2em;line-height:1.1;margin:0.2em 0 0.15em;">Video-Arena</h1><h2 align="center" style="font-size:1.5em;line-height:1.3;font-weight:600;margin:0 0 0.9em;border:none;">A Scalable Agentic Video Benchmark for Spatiotemporal Capability</h2><p align="center" style="font-size:1.08em;line-height:1.8;"><b>Kuan Zhang</b><sup>1,2,*,‡</sup> <b>Yukun Chen</b><sup>1,3,*,‡</sup> <b>Zhihao Yang</b><sup>1,3,*,‡</sup> Yue Su<sup>4</sup> Xiangnan Wu<sup>3</sup><br>Zirong Chen<sup>2</sup> Run Luo<sup>1,5,‡</sup> Tao Tan<sup>1</sup> <b>Yinhe Zheng</b><sup>1,†</sup> <b>Yiming Li</b><sup>2,†</sup></p><p align="center" style="line-height:1.75;"><sup>1</sup>miHoYo Honkai AI R&D Team · <sup>2</sup>College AI, Tsinghua University<br><sup>3</sup>University of Chinese Academy of Sciences · <sup>4</sup>MMLab, The University of Hong Kong · <sup>5</sup>National University of Singapore</p><p align="center" style="font-size:0.9em;"><sup>*</sup>Equal contribution <sup>†</sup>Corresponding author <sup>‡</sup>Work done while interning at miHoYo</p><p align="center"><a href="https://videoarena-bench.github.io" style="display:inline-block;margin:2px;"><img src="https://img.shields.io/badge/Project-Page-1f6feb?style=for-the-badge&logo=googlechrome&logoColor=white" alt="Project Page" style="display:inline-block;vertical-align:middle;margin:0;"></a><a href="https://videoarena-bench.github.io/assets/paper.pdf" style="display:inline-block;margin:2px;"><img src="https://img.shields.io/badge/Paper-PDF-b31b1b?style=for-the-badge&logo=adobeacrobatreader&logoColor=white" alt="Paper" style="display:inline-block;vertical-align:middle;margin:0;"></a><a href="https://videoarena-bench.github.io" style="display:inline-block;margin:2px;"><img src="https://img.shields.io/badge/arXiv-coming%20soon-lightgrey?style=for-the-badge&logo=arxiv&logoColor=white" alt="arXiv (coming soon)" style="display:inline-block;vertical-align:middle;margin:0;"></a><a href="https://huggingface.co/datasets/THUSI-Lab/Video-Arena" style="display:inline-block;margin:2px;"><img src="https://img.shields.io/badge/%F0%9F%A4%97%20Dataset-THUSI--Lab%2FVideo--Arena-ffcc4d?style=for-the-badge" alt="Dataset" style="display:inline-block;vertical-align:middle;margin:0;"></a><a href="https://www.apache.org/licenses/LICENSE-2.0" style="display:inline-block;margin:2px;"><img src="https://img.shields.io/badge/License-Apache%202.0-2ea44f?style=for-the-badge" alt="License: Apache 2.0" style="display:inline-block;vertical-align:middle;margin:0;"></a></p></div><p align="center"><img src="https://huggingface.co/datasets/THUSI-Lab/Video-Arena/resolve/main/assets/teaser.jpg" alt="Video-Arena: perceive, interpret and track a hidden game state from video" width="100%"></p><p align="center"><i>Watch one long, HUD-free match and report, for every critical event, what happened (T1), how it changed the hidden game state (T2), and where that leaves the match (T3).</i></p>## OverviewVideo-Arena asks a model to watch a full recording of a real game and reconstruct a **hidden gamestate variable** $V_t$ (a win probability, a net-worth lead, a score) that is never drawn on screen.Scoreboards, clocks, evaluation bars, kill feeds and names are removed when the video is rendered,so the only way to report $V_t$ is to have followed the whole match.- **180 cases, 9 games, 6 genres**: Go, Chess and Gomoku (board), Doudizhu (card), CS2 (FPS),DOTA 2 (MOBA), StarCraft II (RTS), and Google Research Football and Badminton (sports). There are 20 cases pergame, about 74 hours of video and 15,278 reference tuples.- **Ground truth from the game, not from annotators.** Replay and demo parsers, engine traces,and pinned evaluators (KataGo, Stockfish, Rapfi, a hidden-hand PIMC estimator).- **One deterministic judge per game.** Strict tuple F1 (all three tiers right, time within±3 s); no LLM judge anywhere.- **Two protocols, two runtimes.** Protocol A (single-request video understanding) and Protocol B(an agent in a sandbox with the video, ffmpeg and Python), each runnable natively or on[Harbor](https://github.com/harbor-framework/harbor).This repository is the complete release: the videos, the ground truth, the judges and theevaluation code. The case-building pipelines are not released; `docs/GROUND_TRUTH.md` documentshow every label was produced and which engine and budget it was pinned to.<p align="center"><img src="https://huggingface.co/datasets/THUSI-Lab/Video-Arena/resolve/main/assets/pipeline.jpg" alt="Video-Arena pipeline: data supply, per-game adapters, golden set, two protocols and one judge" width="100%"></p>## Files on Hugging Face```textVideo-Arena/|-- README.md this card|-- LICENSE Apache-2.0|-- docs/| |-- PROTOCOLS.md the two protocols in full, and what a comparable run requires| |-- HARBOR.md running both protocols on Harbor: image, datasets, network modes| `-- GROUND_TRUTH.md per-game source, GT mechanism, V definition, engine versions|-- tools/| |-- va_core.py the corpus contract: resolve, instruction_for, extract_answer, run_judge| |-- score.py score an answers/ directory; --oracle / --empty self-checks| |-- run_protocol_a.py native Protocol A runner (frame grid + one chat call)| |-- run_protocol_b.py native Protocol B runner (sandbox + your agent command)| |-- make_harbor.py build the Harbor dataset (Protocol B, or --protocol A)| `-- harbor/| |-- Dockerfile the offline sandbox image (ffmpeg + Python video stack)| |-- protocol_a_agent.py the Harbor agent for Protocol A| `-- validate_harbor.py offline check of a generated Harbor dataset`-- tasks/|-- go/ chess/ gomoku/ doudizhu/ cs2/ dota2/ sc2/ gfootball/ badminton/`-- <game>/|-- instruction.md the task: event vocabulary, V definition, answer schema|-- answer_seed.json the empty answer {"events": []}|-- judge.py the deterministic scorer (standard library only)|-- cases.json the frozen 20 case ids, in order|-- CASE_TYPES.json per-case stratification label|-- media/<case_id>.mp4 the video, the only model input`-- gt/<case_id>_gt.json reference tuples, for the offline scorer only````tasks/badminton/` additionally holds `ATTRIBUTION.md` (the ShuttleSet notice).| Game | Genre | Cases | Video | Avg. length (min) | Size ||---|---|---:|---|---:|---:|| Go | board | 20 | 612² · 25 fps | 31.8 | 5.4 MB || Chess | board | 20 | 548² · 1 fps | 31.0 | 2.3 MB || Gomoku | board | 20 | 504² · 25 fps | 3.2 | 1.0 MB || Doudizhu | card | 20 | 1280×720 · 24 fps | 4.4 | 48 MB || CS2 | FPS | 20 | 768² · 15 fps | 38.9 | 369 MB || DOTA 2 | MOBA | 20 | 768² · 15 fps | 47.8 | 813 MB || StarCraft II | RTS | 20 | 1536² · 5.6 fps | 19.4 | 2.5 GB || GFootball | sports | 20 | 1280×720 · 24 fps | 25.0 | 7.2 GB || Badminton | sports | 20 | 1280×720 · 15 fps | 19.9 | 271 MB || **Total** | | **180** | | | **≈ 11.8 GB** |## Getting Started**1. Download** the whole release, or only the code plus the games you need:```bashhf download THUSI-Lab/Video-Arena --repo-type dataset --local-dir Video-Arena# e.g. code + the three board games only (a few MB)hf download THUSI-Lab/Video-Arena --repo-type dataset --local-dir Video-Arena \--include "tools/*" "docs/*" "tasks/go/*" "tasks/chess/*" "tasks/gomoku/*"```**2. Self-check the corpus and the scorer.** Python 3.8+, standard library only, no network:```bashcd Video-Arenapython tools/va_core.py # corpus check: 9 games x 20 cases, every file presentpython tools/score.py --oracle # ground truth fed back: all 180 cells must read 1.0python tools/score.py --empty # the empty seed: all 180 cells must read 0.0````ffmpeg` is needed only to run Protocol A natively; Harbor needs Docker and `harbor` (Python 3.11+).## Running the EvaluationThe same 180 cases are asked two ways, with identical task text: one `instruction.md` per game isrendered per protocol by `va_core.instruction_for()`. Every runner writes`<out>/answers/<game>/<case_id>.json`, which `tools/score.py` scores.| | Protocol A · video understanding | Protocol B · agentic ||---|---|---|| Model input | 1 FPS frame grid, at most 256 frames, longest side 768 px, explicit timestamps | the full `match.mp4` in a sandbox, plus `instruction.md` and a seeded `answer.json` || Interaction | one request, one reply holding one JSON object; no tools | a coding agent over many turns; samples frames and writes its own tools || Budget | one call | 200 turns and 120 min per cell || Native | `tools/run_protocol_a.py` | `tools/run_protocol_b.py --agent-cmd ...` || Harbor | `make_harbor.py --protocol A` + `protocol_a_agent` | `make_harbor.py` + any Harbor agent |### Native Protocol AAny OpenAI-compatible `/chat/completions` endpoint that accepts images:```bashexport VA_API_KEY=...python tools/run_protocol_a.py --model <model> --base-url https://<endpoint>/v1 \--game all --out runs/<model>-A --workers 5python tools/score.py --answers runs/<model>-A/answers```Useful flags: `--game <name>` (repeatable), `--limit N` (first N cases per game),`--reasoning-effort`, `--extra-body '{"chat_template_kwargs": {"enable_thinking": true}}'` (e.g. aQwen model on vLLM), and `--jpeg-q` for gateways with a request-body cap (the frame grid neverchanges; `run.json` records the quality used).### Native Protocol BThe runner builds a fresh sandbox per cell (outside the repo, holding only the three files) andruns your agent CLI inside it. The placeholders are `@PROMPT_FILE@`, `@PROMPT@` and `@SANDBOX@`.```bashpython tools/run_protocol_b.py --game all --out runs/<agent>-B --workers 3 \--agent-cmd "claude -p @PROMPT_FILE@ --max-turns 200"python tools/score.py --answers runs/<agent>-B/answers```The runner enforces the wall clock (`--timeout-min 120`). Pass the same turn cap(`--max-turns 200`) to your agent's own flag. The native runner does not enforce isolation: the prompt forbidsnetwork use, so audit the agent transcript afterwards, or use Harbor.### Harbor (Protocol A and B)On Harbor the sandbox is offline at the network level, and the ground truth lives only in a separateverifier container. The generated datasets hold task folders only; the videos are mounted from thisrepository.```bash# the sandbox imagedocker build -t video-arena/base:latest tools/harborexport VA_MEDIA_ROOT="$PWD/tasks" # each task mounts $VA_MEDIA_ROOT/<game>/media/<case_id>.mp4# Protocol Bpython tools/make_harbor.py --out harbor/video-arenapython tools/harbor/validate_harbor.py harbor/video-arenaharbor run -p harbor/video-arena -a oracle # must score 1.0 on all 180 trialsharbor run -p harbor/video-arena -a terminus-2 -m <provider/model> --ak max_turns=200 -n 3# Protocol Apython tools/make_harbor.py --out harbor/video-arena-a --protocol APYTHONPATH=tools/harbor harbor run -p harbor/video-arena-a \-a protocol_a_agent:ProtocolA -m openai/<model> -n 5 --ak reasoning_effort=high```Agents that run inside the container (`claude-code`, `codex`, ...) need the model API reachableduring the agent phase only. Generate with `--net phase` and add `--allow-agent-host <api host>`.On Docker hosts without Harbor egress control, use `--net docker`. The agent runs as theunprivileged user `agent`. [`docs/HARBOR.md`](docs/HARBOR.md) has the full details, including theProtocol A agent options.## Answer Format and ScoringEvery game uses the same root key: an answer is `{"events": [ ... ]}`, one complete tuple perrow, in the schema given by that game's `instruction.md`. Each judge has one CLI:```bashpython tasks/<game>/judge.py --answer ANSWER.json --gt tasks/<game>/gt/<case_id>_gt.json \--out reward.json --tol 3.0```- **Headline: strict tuple F1.** A predicted row matches a reference row when every non-temporalfield is equal and the time is within ±3 s. Matching is one-to-one and independent of row order.- **Diagnostics:** T1 event-localization F1, T2 update accuracy and T3 state accuracy (macro-averaged).- **Reporting:** the overall number is the mean of the nine game means. Quote `n_scored/n_cases`.A cell that never ran is `missing`; a cell that ran and left no answer scores 0.0 and staysin the mean. Protocol B trajectories are stochastic, so cite game means rather than single cells.See [`docs/PROTOCOLS.md`](docs/PROTOCOLS.md) for the complete rules of a comparable run.## Data HygieneThe ground truth ships in the clear so that the scorer can be inspected. Keep `gt/` out of promptsand out of Protocol B sandboxes; `va_core.resolve()` hands the GT path only to the offline scorer.Every `instruction.md` and `_gt.json` carries a `CANARY` line. **Please do not train on thisbenchmark.** Case ids are permanent: a case is never renamed, and a new render gets a new id.## LicenseCode, ground truth and renders are released under **Apache-2.0** for **non-commercial researchuse**. The renders are information-reduced derivatives with no player names, faces, avatars, ranks,audio or other personal data. Game content remains the property of its publishers, in particularBlizzard Entertainment (StarCraft II) and Valve Corporation (Dota 2, Counter-Strike 2). Badmintonderives from [ShuttleSet](https://arxiv.org/abs/2306.04948) (MIT, © 2022 Wei-Yao Wang), and its noticein `tasks/badminton/ATTRIBUTION.md` must accompany any redistribution of those renders.`docs/GROUND_TRUTH.md` lists the sources, access dates and engine versions for every game.## Citation```bibtex@article{zhang2026videoarena,title = {Video-Arena: A Scalable Agentic Video Benchmark for Spatiotemporal Capability},author = {Zhang, Kuan and Chen, Yukun and Yang, Zhihao and Su, Yue and Wu, Xiangnan andChen, Zirong and Luo, Run and Tan, Tao and Zheng, Yinhe and Li, Yiming},journal = {arXiv preprint},year = {2026}}```
README.md+213-231
assets/pipeline.jpgAdded

Large File Pointer Details
- SHA256: 21aa8bf8d39c7b75786de541944cd00785842706c0560bdb669853890100b31f
- Pointer size: 131 Bytes
- Size of remote file: 611 kB
assets/teaser.jpgAdded

Large File Pointer Details
- SHA256: a0ad615f2549d887d81ac062398fed5706a2db2eb38c81d4e7ced7d6ece5f54b
- Pointer size: 131 Bytes
- Size of remote file: 513 kB