Datasets:
Dataset card
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290---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.
---
## Scoring
The 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 that carries 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 protocols
The 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 one unscored 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 at 1.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 T1 can 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 schema answer_seed.json empty answer skeleton (Protocol B pre-seeds the sandbox with this) judge.py the deterministic scorer, self-contained, standard library only cases.json the frozen 20 case ids, in order CASE_TYPES.json per-case stratification label, and the thresholds or class counts behind it media/<case_id>.mp4 the video — the only model input gt/<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_judge score.py score an answers directory; --oracle / --empty self-checks run_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.md harbor/ the offline sandbox image (Dockerfile), validate_harbor.py, and protocol_a_agent.py (the Harbor agent for Protocol A)docs/ PROTOCOLS.md the two protocols in full, and what a comparable run requires GROUND_TRUTH.md per-environment source, GT mechanism, and V definition HARBOR.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 Spatiotemporal Tracking and Understanding}, author = {Zhang, Chi and Chen, Yukun and Yang, Zhihao and Luo, Run and Tan, Tao and Su, Yue and Du, Enjun and Chen, Zirong and Wu, Xiangnan and Zheng, Yinhe and Li, Yiming}, year = {2026}, note = {Preprint},}```
## License and attribution
Benchmark 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). The full notice and citation are in `tasks/badminton/ATTRIBUTION.md` and must accompany any redistribution of those renders.- **CS2, DOTA 2, SC2** derive from publicly published professional demos and replays; the game content remains the property of its publishers.
See `docs/GROUND_TRUTH.md` for every environment's source, accessed date, and engine version.README.mdAdded+290