Datasets:
Upload 3 files
Browse files
LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
RefBench v1.0
|
| 2 |
+
|
| 3 |
+
Data (data/, runs/, results/, README.md): Creative Commons Attribution 4.0 International (CC BY 4.0).
|
| 4 |
+
https://creativecommons.org/licenses/by/4.0/legalcode
|
| 5 |
+
Copyright (c) 2026 Randy Xian
|
| 6 |
+
|
| 7 |
+
Source videos are not included. They remain the property of their owners; video_url only links to them.
|
| 8 |
+
|
| 9 |
+
score.py: MIT License
|
| 10 |
+
|
| 11 |
+
Copyright (c) 2026 Randy Xian
|
| 12 |
+
|
| 13 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
| 14 |
+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
| 15 |
+
the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
|
| 16 |
+
permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
| 17 |
+
|
| 18 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
| 19 |
+
the Software.
|
| 20 |
+
|
| 21 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
| 22 |
+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
| 23 |
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
| 24 |
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
pretty_name: RefBench
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
- zh
|
| 7 |
+
task_categories:
|
| 8 |
+
- visual-question-answering
|
| 9 |
+
tags:
|
| 10 |
+
- benchmark
|
| 11 |
+
- evaluation
|
| 12 |
+
- sports
|
| 13 |
+
- refereeing
|
| 14 |
+
- football
|
| 15 |
+
- ice-hockey
|
| 16 |
+
size_categories:
|
| 17 |
+
- n<1K
|
| 18 |
+
configs:
|
| 19 |
+
- config_name: items
|
| 20 |
+
data_files: data/items.jsonl
|
| 21 |
+
default: true
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# RefBench v1.0
|
| 25 |
+
|
| 26 |
+
**Can a model referee?** RefBench asks frontier models to make 299 real refereeing calls in football and ice hockey from a few seconds of broadcast frames. The answer key for every item is the official ruling body's verdict on that incident.
|
| 27 |
+
|
| 28 |
+
Write-up: [randyxian.com/blog/refbench](https://www.randyxian.com/blog/refbench) · Data: [GitHub](https://github.com/randyxian08/refbench) and [Hugging Face](https://huggingface.co/datasets/Randyxian/refbench)
|
| 29 |
+
|
| 30 |
+
## Leaderboard (run 2)
|
| 31 |
+
|
| 32 |
+
Balanced accuracy (BA) on 299 items, with 95% cluster-bootstrap intervals over source videos. BA is the mean of the accuracy on "yes" items and on "no" items, so answering the same thing every time scores 0.5.
|
| 33 |
+
|
| 34 |
+
| Model | BA | 95% CI | Accuracy | Says "yes" |
|
| 35 |
+
|---|---|---|---|---|
|
| 36 |
+
| gpt-6.2-sol | **0.590** | 0.532–0.645 | 0.589 | 61% |
|
| 37 |
+
| gpt-6.1-sol | 0.563 | 0.508–0.617 | 0.562 | 64% |
|
| 38 |
+
| claude-opus-5-5 | 0.542 | 0.485–0.599 | 0.542 | 51% |
|
| 39 |
+
| claude-sonnet-5-5 | 0.502 | 0.444–0.559 | 0.502 | 48% |
|
| 40 |
+
| grok-4.3 | 0.500 | 0.447–0.551 | 0.498 | 63% |
|
| 41 |
+
| grok-4.7 | 0.474 | 0.419–0.529 | 0.475 | 39% |
|
| 42 |
+
| *Same question, no frames (all models)* | 0.486–0.493 | | | |
|
| 43 |
+
| *Constant answer* | 0.500 | | | |
|
| 44 |
+
|
| 45 |
+
- **Run settings:** medium reasoning effort, provider-default temperature, no tools, one answer per item.
|
| 46 |
+
- **Significance:** after Holm correction over 15 pairs, only gpt-6.2-sol and gpt-6.1-sol beat grok-4.7.
|
| 47 |
+
- **Run 1** (three models, same items and prompts) gives gpt-6.2-sol 0.600, claude-sonnet-5-5 0.478 and grok-4.3 0.476. Run-to-run answer agreement is 76–92%.
|
| 48 |
+
|
| 49 |
+
## The items
|
| 50 |
+
|
| 51 |
+
| Call | Sport | Items | Yes / No | Question |
|
| 52 |
+
|---|---|---|---|---|
|
| 53 |
+
| Penalty | football | 78 | 33 / 45 | Should a penalty be given? |
|
| 54 |
+
| Red card | football | 60 | 36 / 24 | Should a red card be shown? |
|
| 55 |
+
| Handball | football | 37 | 22 / 15 | Is this a handball offence? |
|
| 56 |
+
| Foul before a goal | football | 17 | 10 / 7 | Did the attacking team foul, so the goal should not count? |
|
| 57 |
+
| Offside interference | football | 12 | 7 / 5 | Did the attacker in an offside position interfere? |
|
| 58 |
+
| Goaltender interference | ice hockey | 65 | 26 / 39 | Should this goal count? |
|
| 59 |
+
| Distinct kicking motion | ice hockey | 30 | 14 / 16 | Should this goal count? |
|
| 60 |
+
| **All** | | **299** | **148 / 151** | |
|
| 61 |
+
|
| 62 |
+
Labels come from six official sources:
|
| 63 |
+
|
| 64 |
+
| Source | Ruling body and material | Items |
|
| 65 |
+
|---|---|---|
|
| 66 |
+
| NHL | NHL Situation Room review results | 95 |
|
| 67 |
+
| Ligue 1 | FFF refereeing debriefs | 60 |
|
| 68 |
+
| PRO | Professional Referee Organization video-review explainers (MLS, NWSL) | 54 |
|
| 69 |
+
| Clear Line | UEFA refereeing guidance clips | 52 |
|
| 70 |
+
| RFEF | Spanish federation referee-analysis programme (*Tiempo de Revisión*) | 33 |
|
| 71 |
+
| Mic'd Up | Premier League *Match Officials Mic'd Up* | 5 |
|
| 72 |
+
|
| 73 |
+
Where a ruling body says the call on the field was wrong, the label is the opposite of that call. For NHL items, "yes" means the goal counts.
|
| 74 |
+
|
| 75 |
+
**What the model sees.**
|
| 76 |
+
- One or two camera angles: 211 items have one, 88 have two.
|
| 77 |
+
- Each angle is 3 seconds at 8 fps, so 25 frames.
|
| 78 |
+
- Where the source video shows the decision, every window ends at least 0.5 s before it.
|
| 79 |
+
- Score bars, broadcaster graphics and other identifying text are blacked out. There is no audio.
|
| 80 |
+
- Football questions are asked in Chinese, with 是 = yes and 否 = no.
|
| 81 |
+
- NHL questions state the on-ice call and the review standard: change the call only on conclusive video evidence (Rule 38.1).
|
| 82 |
+
|
| 83 |
+
## Files
|
| 84 |
+
|
| 85 |
+
```
|
| 86 |
+
data/items.jsonl 299 items: label, question, source video, time windows, exact prompts
|
| 87 |
+
runs/run2/{main,text,probe}/ 6 models: answer, p_yes, stated reason, reasoning tokens
|
| 88 |
+
runs/run1/{main,text,probe}/ 3 models, same format
|
| 89 |
+
results/run{1,2}_summary.json the frozen scorer's full output (intervals, pairwise tests, strata, probe)
|
| 90 |
+
score.py recomputes the leaderboard from the files above (standard library only)
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
**Arms.**
|
| 94 |
+
- `main`: frames plus the question. This is the leaderboard.
|
| 95 |
+
- `text`: the same question with no frames, as a prior-only baseline.
|
| 96 |
+
- `probe`: the same frames, asking which match this is and whether the model remembers the incident.
|
| 97 |
+
|
| 98 |
+
**Item fields.**
|
| 99 |
+
|
| 100 |
+
| Field | Meaning |
|
| 101 |
+
|---|---|
|
| 102 |
+
| `id` | item id |
|
| 103 |
+
| `sport`, `source`, `domain`, `call_type` | where the item comes from and what call it asks for |
|
| 104 |
+
| `label` | `yes` or `no`, from the official verdict |
|
| 105 |
+
| `question` | the question exactly as asked |
|
| 106 |
+
| `on_field_call` | the call on the field or ice, where the source states it (NHL; Clear Line) |
|
| 107 |
+
| `views[]` | `start_s`, `end_s`, `fps` (8), `frames` (25): the frame times in the source video |
|
| 108 |
+
| `video_url` | the public source video (YouTube, nhl.com, or the UEFA Clear Line page) |
|
| 109 |
+
| `video_title` | the clip title on the Clear Line page |
|
| 110 |
+
| `ruling_url`, `ruling_text` | the NHL Situation Room ruling, where we have the page (49 of 95) |
|
| 111 |
+
| `nhl_review_result` | `confirmed` or `overturned` |
|
| 112 |
+
| `date`, `date_kind` | game, broadcast or upload date, where known |
|
| 113 |
+
| `source_video` | groups items from the same video, used for the bootstrap |
|
| 114 |
+
| `clear_tag` | a frozen covariate from an earlier clarity check that was dropped as a gate |
|
| 115 |
+
| `prompts` | the exact `main`, `text` and `probe` prompts |
|
| 116 |
+
|
| 117 |
+
## Frames are not distributed
|
| 118 |
+
|
| 119 |
+
The frames come from broadcast footage we do not have the right to redistribute, so this release contains no images or video. To rebuild an item, open `video_url` and take 25 frames at 8 fps starting at each view's `start_s`. Because the masks and crops are not included, frames rebuilt this way will differ slightly from the ones the models saw.
|
| 120 |
+
|
| 121 |
+
## Scoring
|
| 122 |
+
|
| 123 |
+
```
|
| 124 |
+
python3 score.py # run 2, frames + question
|
| 125 |
+
python3 score.py --arm text # no-frames baseline
|
| 126 |
+
python3 score.py --run run1
|
| 127 |
+
```
|
| 128 |
+
|
| 129 |
+
A missing or unparseable answer counts as wrong. `score.py` reproduces the BA and accuracy in `results/` exactly. Its bootstrap uses a different random generator, so interval ends can differ in the third decimal.
|
| 130 |
+
|
| 131 |
+
## How it was built, and known limits
|
| 132 |
+
|
| 133 |
+
- **Frozen before evaluation.** The item list, labels, frames, prompts and analysis plan were hashed before any model was evaluated. v1.0 was frozen on 2026-11-28.
|
| 134 |
+
- **AI-only verification.** Every quality gate was run by Claude or GPT reviewers, with no human spot check: locating the incident, checking that both angles show the same moment, masking, and checking for leaks.
|
| 135 |
+
- Claude reviewed most items with the old "clear" tag; GPT reviewed most of the others. Results split by reviewer family are in `results/`.
|
| 136 |
+
- Neither family scores higher on the items it reviewed.
|
| 137 |
+
- **Leak gate not validated for overlays.** Some items may still show team banners, stadium names or sponsor boards.
|
| 138 |
+
- **Memory.** All incidents were public before evaluation.
|
| 139 |
+
- The `probe` arm measures how often a model names the match. With the score bar hidden, gpt-6.2-sol names both teams on 73% of the items where this can be checked.
|
| 140 |
+
- The 52 Clear Line clips were uploaded after the models' training cutoffs, but gpt-6.2-sol still claims to remember 24 of them.
|
| 141 |
+
- **No answerability check.** Some items may not be decidable from 3 seconds of frames. A human baseline is the most useful next addition.
|
| 142 |
+
- **Fixed by design.** On Clear Line the on-field call is the opposite of the label for every item. On NHL items, always keeping the on-ice call scores BA 0.588.
|
| 143 |
+
- **One relay.** All calls went through one OpenAI-compatible API relay. The relay attached a web-search tool definition to Grok requests with `tool_choice: none`; no answer used a tool.
|
| 144 |
+
- **Missing answers.**
|
| 145 |
+
- grok-4.7 has 3 main-arm items with no answer after nine attempts; they are scored wrong.
|
| 146 |
+
- Probe answers are missing for 6 grok-4.7 items and 1 gpt-6.2-sol item.
|
| 147 |
+
|
| 148 |
+
## License
|
| 149 |
+
|
| 150 |
+
- **Annotations, prompts, model outputs and results:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
|
| 151 |
+
- **`score.py`:** MIT.
|
| 152 |
+
- **Source videos:** not included. They belong to their owners, and `video_url` only points to them.
|
| 153 |
+
|
| 154 |
+
## Citation
|
| 155 |
+
|
| 156 |
+
```
|
| 157 |
+
@misc{xian2026refbench,
|
| 158 |
+
title = {RefBench: Can a Model Referee?},
|
| 159 |
+
author = {Randy Xian},
|
| 160 |
+
year = {2026},
|
| 161 |
+
url = {https://github.com/randyxian08/refbench}
|
| 162 |
+
}
|
| 163 |
+
```
|
score.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Score RefBench v1.0 runs from the released files only (standard library).
|
| 3 |
+
|
| 4 |
+
python3 score.py # run 2, main arm, all models
|
| 5 |
+
python3 score.py --run run1 --arm text
|
| 6 |
+
|
| 7 |
+
Balanced accuracy (BA) = mean of accuracy on "yes" items and on "no" items, so a constant answer scores 0.5.
|
| 8 |
+
A missing or unparseable answer counts as wrong. 95% intervals: cluster bootstrap over source videos, 10,000 resamples.
|
| 9 |
+
BA and accuracy reproduce results/<run>_summary.json exactly; the bootstrap uses a different random generator,
|
| 10 |
+
so interval ends can differ in the third decimal."""
|
| 11 |
+
import argparse, json, random
|
| 12 |
+
from collections import defaultdict
|
| 13 |
+
from pathlib import Path
|
| 14 |
+
|
| 15 |
+
H = Path(__file__).resolve().parent
|
| 16 |
+
ap = argparse.ArgumentParser(); ap.add_argument("--run", default="run2"); ap.add_argument("--arm", default="main", choices=["main", "text"])
|
| 17 |
+
ap.add_argument("--boot", type=int, default=10000); a = ap.parse_args()
|
| 18 |
+
items = [json.loads(l) for l in open(H / "data/items.jsonl")]
|
| 19 |
+
lab = {x["id"]: x["label"] for x in items}
|
| 20 |
+
clusters = defaultdict(list)
|
| 21 |
+
for x in items: clusters[x["source_video"]].append(x["id"])
|
| 22 |
+
|
| 23 |
+
def ba(ids, pred):
|
| 24 |
+
pos = [i for i in ids if lab[i] == "yes"]; neg = [i for i in ids if lab[i] == "no"]
|
| 25 |
+
if not pos or not neg: return None
|
| 26 |
+
return (sum(pred[i] == "yes" for i in pos) / len(pos) + sum(pred[i] == "no" for i in neg) / len(neg)) / 2
|
| 27 |
+
|
| 28 |
+
rng = random.Random(0); keys = sorted(clusters)
|
| 29 |
+
boots = [[i for c in (rng.choice(keys) for _ in keys) for i in clusters[c]] for _ in range(a.boot)]
|
| 30 |
+
rows = []
|
| 31 |
+
for f in sorted((H / "runs" / a.run / a.arm).glob("*.jsonl")):
|
| 32 |
+
pred = {}
|
| 33 |
+
for l in open(f):
|
| 34 |
+
o = json.loads(l); ans = o.get("answer") if o.get("ok") else None
|
| 35 |
+
pred[o["id"]] = ans if ans in ("yes", "no") else ("no" if lab[o["id"]] == "yes" else "yes")
|
| 36 |
+
ids = list(lab); v = sorted(x for x in (ba(s, pred) for s in boots) if x is not None)
|
| 37 |
+
rows.append((ba(ids, pred), f.stem, sum(pred[i] == lab[i] for i in ids) / len(ids), v[int(.025 * len(v))], v[int(.975 * len(v)) - 1]))
|
| 38 |
+
print(f"{'model':<20}{'BA':>7}{'95% CI':>17}{'acc':>8}")
|
| 39 |
+
for b, m, acc, lo, hi in sorted(rows, reverse=True): print(f"{m:<20}{b:>7.3f} [{lo:.3f}, {hi:.3f}]{acc:>8.3f}")
|