Datasets:
Publish the arXiv dataset card and media loader
Browse files- README.md +39 -33
- prepare_media.py +11 -4
README.md
CHANGED
|
@@ -8,14 +8,17 @@ tags:
|
|
| 8 |
- physics
|
| 9 |
- vision-language
|
| 10 |
- abductive-reasoning
|
|
|
|
| 11 |
size_categories:
|
| 12 |
- 10K<n<100K
|
| 13 |
configs:
|
| 14 |
- config_name: episodes
|
| 15 |
default: true
|
| 16 |
data_files:
|
| 17 |
-
- split:
|
| 18 |
-
path: episodes/
|
|
|
|
|
|
|
| 19 |
- split: test
|
| 20 |
path: episodes/test.jsonl
|
| 21 |
- config_name: questions
|
|
@@ -30,19 +33,17 @@ configs:
|
|
| 30 |
|
| 31 |
# CaveBench: Benchmarking Abductive Physical Reasoning from Internal Observations
|
| 32 |
|
| 33 |
-
CaveBench
|
| 34 |
|
| 35 |
-
|
| 36 |
-
- [Code and evaluation](https://github.com/PIER-Lab/CaveBench)
|
| 37 |
-
- [Paper](https://pier-lab.github.io/CaveBench/papers/CaveBench.pdf) · [Supplement](https://pier-lab.github.io/CaveBench/papers/Supplement.pdf)
|
| 38 |
-
|
| 39 |
-
## News
|
| 40 |
-
|
| 41 |
-
- 🔥 [2026-11-23] Explore the [20 apparatuses](https://github.com/PIER-Lab/CaveBench/blob/main/docs/assets/cases/README.md) and watch the [research film](https://pier-lab.github.io/CaveBench/#film).
|
| 42 |
|
| 43 |
## Load Dataset
|
| 44 |
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
```python
|
| 48 |
from datasets import load_dataset
|
|
@@ -51,6 +52,8 @@ repo = "linguanxin/CaveBench"
|
|
| 51 |
questions = load_dataset(repo, "questions", split="test")
|
| 52 |
answers = load_dataset(repo, "answers", split="test")
|
| 53 |
episodes = load_dataset(repo, "episodes", split="test")
|
|
|
|
|
|
|
| 54 |
|
| 55 |
question = questions[0]
|
| 56 |
reference = next(row for row in answers if row["id"] == question["id"])
|
|
@@ -69,15 +72,18 @@ From the [code repository](https://github.com/PIER-Lab/CaveBench), run the follo
|
|
| 69 |
python prepare_media.py --repo linguanxin/CaveBench --data ./dataset
|
| 70 |
```
|
| 71 |
|
| 72 |
-
Each path in `question["images"]` is relative to `./dataset`. Use `--scene S11` for one apparatus
|
| 73 |
|
| 74 |
| Configuration | Split | Rows | Contents |
|
| 75 |
| --- | --- | ---: | --- |
|
| 76 |
-
| `episodes` | `
|
|
|
|
| 77 |
| `episodes` | `test` | 200 | The same media and annotations for the fixed evaluation episodes |
|
| 78 |
| `questions` | `test` | 1,180 | Full evaluated prompts, permitted controls and ordered input image paths |
|
| 79 |
| `answers` | `test` | 1,180 | Reference event lists keyed by question ID |
|
| 80 |
|
|
|
|
|
|
|
| 81 |
### Episode Identities
|
| 82 |
|
| 83 |
`paper_scene` uses the published S01–S20 order. `scene` and the `scene_XX` prefix in `id` preserve the original generator number. For example, S11 (dielectric response) is generator scene 13. Each apparatus contributes 510 episodes, including ten fixed evaluation episodes.
|
|
@@ -90,8 +96,6 @@ Each path in `question["images"]` is relative to `./dataset`. Use `--scene S11`
|
|
| 90 |
| Acoustics | S13 Standing waves · S14 Wave scattering · S15 Doppler response · S16 Two-source ripples |
|
| 91 |
| Optics | S17 Photoelastic load · S18 Double reflection · S19 Graded refraction · S20 Double-slit fringes |
|
| 92 |
|
| 93 |
-
The development file contains 9,000 training episodes and 1,000 validation episodes. The test file contains 200 episodes.
|
| 94 |
-
|
| 95 |
## Usage
|
| 96 |
|
| 97 |
Each question supplies one user message. Send `prompt` verbatim, followed by the text `Frame F0` and its image, then `Frame F1` and its image, continuing through `Frame Fk`. The text includes the apparatus description, allowed control combinations and final answer contract. The video shows both views for inspection. Models receive the listed interior frames.
|
|
@@ -100,7 +104,7 @@ The expected response is a JSON object with one field, `operations`. Its `k` ent
|
|
| 100 |
|
| 101 |
## Leaderboard
|
| 102 |
|
| 103 |
-
The table reports exact
|
| 104 |
|
| 105 |
| Model | Six-event exact match (%) | Type |
|
| 106 |
| --- | ---: | --- |
|
|
@@ -108,40 +112,42 @@ The table reports exact matches on the 200 six-event sequences. [Scores at all s
|
|
| 108 |
| GPT-6.1 Terra | 65.0 | Proprietary |
|
| 109 |
| GPT-6 Luna | 28.5 | Proprietary |
|
| 110 |
| Gemini 3.8 Flash | 21.5 | Proprietary |
|
|
|
|
| 111 |
| GPT-5.6 Luna | 19.5 | Proprietary |
|
| 112 |
| Gemini 3.6 Flash | 17.0 | Proprietary |
|
| 113 |
-
| Claude Sonnet 5.5 | 16.5 | Proprietary |
|
| 114 |
-
| Qwen3.8 Flash | 14.0 | Proprietary |
|
| 115 |
| Claude Haiku 5.5 | 13.5 | Proprietary |
|
| 116 |
-
|
|
| 117 |
| Qwen3.7 Plus | 11.5 | Proprietary |
|
| 118 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
| GLM 5.3 Flash | 9.0 | Open-weight |
|
|
|
|
| 120 |
| DeepSeek V4.1 Flash | 6.5 | Open-weight |
|
| 121 |
-
| Seed-2.0-Lite | 5.5 | Proprietary |
|
| 122 |
| MiniMax M3 | 5.0 | Open-weight |
|
| 123 |
| Gemma 4 31B | 4.5 | Open-weight |
|
| 124 |
-
| Seed 2.1 Turbo | 4.0 | Proprietary |
|
| 125 |
| Kimi K2.6 | 3.5 | Open-weight |
|
| 126 |
-
| Claude Sonnet 5 | 3.0 | Proprietary |
|
| 127 |
-
| Seed-2.0-Mini | 3.0 | Proprietary |
|
| 128 |
-
| GLM 5V Turbo | 2.5 | Proprietary |
|
| 129 |
| Kimi K2.5 | 2.0 | Open-weight |
|
| 130 |
-
| Gemini 3.5 Flash Lite | 1.0 | Proprietary |
|
| 131 |
-
| DeepSeek V4 Flash | 0.5 | Open-weight |
|
| 132 |
| Llama 4 Maverick | 0.5 | Open-weight |
|
| 133 |
| Qwen3.5-9B | 0.5 | Open-weight |
|
| 134 |
-
|
|
| 135 |
|
| 136 |
## Citation
|
| 137 |
|
| 138 |
```bibtex
|
| 139 |
@misc{lin2026cavebench,
|
| 140 |
-
title
|
| 141 |
-
author
|
| 142 |
-
year
|
| 143 |
-
|
|
|
|
|
|
|
|
|
|
| 144 |
}
|
| 145 |
```
|
| 146 |
|
| 147 |
-
Tsinghua University. Guanxin Lin and Chen Yang contributed equally.
|
|
|
|
| 8 |
- physics
|
| 9 |
- vision-language
|
| 10 |
- abductive-reasoning
|
| 11 |
+
- arxiv:2611.32251
|
| 12 |
size_categories:
|
| 13 |
- 10K<n<100K
|
| 14 |
configs:
|
| 15 |
- config_name: episodes
|
| 16 |
default: true
|
| 17 |
data_files:
|
| 18 |
+
- split: train
|
| 19 |
+
path: episodes/train.jsonl
|
| 20 |
+
- split: validation
|
| 21 |
+
path: episodes/validation.jsonl
|
| 22 |
- split: test
|
| 23 |
path: episodes/test.jsonl
|
| 24 |
- config_name: questions
|
|
|
|
| 33 |
|
| 34 |
# CaveBench: Benchmarking Abductive Physical Reasoning from Internal Observations
|
| 35 |
|
| 36 |
+
CaveBench evaluates abductive physical reasoning from internal observations. Given an apparatus description and an ordered sequence of interior images, a model infers the external controls applied at each event. The dataset contains 10,200 simulated episodes from 20 apparatus scenes in five physical domains: 9,000 training episodes, 1,000 validation episodes and 200 test episodes. The test episodes yield 1,180 questions spanning one to six events.
|
| 37 |
|
| 38 |
+
[Paper (arXiv:2611.32251)](https://arxiv.org/abs/2611.32251) · [Project page](https://pier-lab.github.io/CaveBench/) · [Code and evaluation](https://github.com/PIER-Lab/CaveBench)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
## Load Dataset
|
| 41 |
|
| 42 |
+
Install the dataset loader and access the episode, question and answer configurations.
|
| 43 |
+
|
| 44 |
+
```bash
|
| 45 |
+
python -m pip install datasets huggingface_hub
|
| 46 |
+
```
|
| 47 |
|
| 48 |
```python
|
| 49 |
from datasets import load_dataset
|
|
|
|
| 52 |
questions = load_dataset(repo, "questions", split="test")
|
| 53 |
answers = load_dataset(repo, "answers", split="test")
|
| 54 |
episodes = load_dataset(repo, "episodes", split="test")
|
| 55 |
+
train = load_dataset(repo, "episodes", split="train")
|
| 56 |
+
validation = load_dataset(repo, "episodes", split="validation")
|
| 57 |
|
| 58 |
question = questions[0]
|
| 59 |
reference = next(row for row in answers if row["id"] == question["id"])
|
|
|
|
| 72 |
python prepare_media.py --repo linguanxin/CaveBench --data ./dataset
|
| 73 |
```
|
| 74 |
|
| 75 |
+
Each path in `question["images"]` is relative to `./dataset`. Use `--scene S11` for one apparatus or `--all` for all three episode splits and their dual-view videos. The archive manifests record file counts, byte sizes and SHA-256 digests.
|
| 76 |
|
| 77 |
| Configuration | Split | Rows | Contents |
|
| 78 |
| --- | --- | ---: | --- |
|
| 79 |
+
| `episodes` | `train` | 9,000 | Seven interior images, a dual-view video and six reference events per episode |
|
| 80 |
+
| `episodes` | `validation` | 1,000 | Episode metadata, media paths and reference events for validation |
|
| 81 |
| `episodes` | `test` | 200 | The same media and annotations for the fixed evaluation episodes |
|
| 82 |
| `questions` | `test` | 1,180 | Full evaluated prompts, permitted controls and ordered input image paths |
|
| 83 |
| `answers` | `test` | 1,180 | Reference event lists keyed by question ID |
|
| 84 |
|
| 85 |
+
The paper uses 100 of the 1,000 validation episodes for preference-training checkpoint selection.
|
| 86 |
+
|
| 87 |
### Episode Identities
|
| 88 |
|
| 89 |
`paper_scene` uses the published S01–S20 order. `scene` and the `scene_XX` prefix in `id` preserve the original generator number. For example, S11 (dielectric response) is generator scene 13. Each apparatus contributes 510 episodes, including ten fixed evaluation episodes.
|
|
|
|
| 96 |
| Acoustics | S13 Standing waves · S14 Wave scattering · S15 Doppler response · S16 Two-source ripples |
|
| 97 |
| Optics | S17 Photoelastic load · S18 Double reflection · S19 Graded refraction · S20 Double-slit fringes |
|
| 98 |
|
|
|
|
|
|
|
| 99 |
## Usage
|
| 100 |
|
| 101 |
Each question supplies one user message. Send `prompt` verbatim, followed by the text `Frame F0` and its image, then `Frame F1` and its image, continuing through `Frame Fk`. The text includes the apparatus description, allowed control combinations and final answer contract. The video shows both views for inspection. Models receive the listed interior frames.
|
|
|
|
| 104 |
|
| 105 |
## Leaderboard
|
| 106 |
|
| 107 |
+
The table reports six-event exact-match accuracy on 200 test episodes. Table 2 of the [paper](https://arxiv.org/abs/2611.32251) reports results for all six question lengths.
|
| 108 |
|
| 109 |
| Model | Six-event exact match (%) | Type |
|
| 110 |
| --- | ---: | --- |
|
|
|
|
| 112 |
| GPT-6.1 Terra | 65.0 | Proprietary |
|
| 113 |
| GPT-6 Luna | 28.5 | Proprietary |
|
| 114 |
| Gemini 3.8 Flash | 21.5 | Proprietary |
|
| 115 |
+
| Claude Sonnet 5.5 | 16.5 | Proprietary |
|
| 116 |
| GPT-5.6 Luna | 19.5 | Proprietary |
|
| 117 |
| Gemini 3.6 Flash | 17.0 | Proprietary |
|
|
|
|
|
|
|
| 118 |
| Claude Haiku 5.5 | 13.5 | Proprietary |
|
| 119 |
+
| Qwen3.8 Flash | 14.0 | Proprietary |
|
| 120 |
| Qwen3.7 Plus | 11.5 | Proprietary |
|
| 121 |
+
| Seed-2.0-Lite | 5.5 | Proprietary |
|
| 122 |
+
| Claude Sonnet 5 | 3.0 | Proprietary |
|
| 123 |
+
| Seed 2.1 Turbo | 4.0 | Proprietary |
|
| 124 |
+
| GLM 5V Turbo | 2.5 | Proprietary |
|
| 125 |
+
| Seed-2.0-Mini | 3.0 | Proprietary |
|
| 126 |
+
| Gemini 3.5 Flash Lite | 1.0 | Proprietary |
|
| 127 |
+
| MiniMax M3.1 Flash | 12.5 | Open-weight |
|
| 128 |
| GLM 5.3 Flash | 9.0 | Open-weight |
|
| 129 |
+
| Qwen3.8 27B | 10.5 | Open-weight |
|
| 130 |
| DeepSeek V4.1 Flash | 6.5 | Open-weight |
|
|
|
|
| 131 |
| MiniMax M3 | 5.0 | Open-weight |
|
| 132 |
| Gemma 4 31B | 4.5 | Open-weight |
|
|
|
|
| 133 |
| Kimi K2.6 | 3.5 | Open-weight |
|
|
|
|
|
|
|
|
|
|
| 134 |
| Kimi K2.5 | 2.0 | Open-weight |
|
|
|
|
|
|
|
| 135 |
| Llama 4 Maverick | 0.5 | Open-weight |
|
| 136 |
| Qwen3.5-9B | 0.5 | Open-weight |
|
| 137 |
+
| DeepSeek V4 Flash | 0.5 | Open-weight |
|
| 138 |
|
| 139 |
## Citation
|
| 140 |
|
| 141 |
```bibtex
|
| 142 |
@misc{lin2026cavebench,
|
| 143 |
+
title = {{CaveBench}: Benchmarking Abductive Physical Reasoning from Internal Observations},
|
| 144 |
+
author = {Lin, Guanxin and Yang, Chen and Zeng, Shenxiang and Zhu, Honghui and Li, Xin and Deng, Wenbo and Fan, Jiansheng and Wang, Chen},
|
| 145 |
+
year = {2026},
|
| 146 |
+
eprint = {2611.32251},
|
| 147 |
+
archivePrefix = {arXiv},
|
| 148 |
+
primaryClass = {cs.CV},
|
| 149 |
+
url = {https://arxiv.org/abs/2611.32251}
|
| 150 |
}
|
| 151 |
```
|
| 152 |
|
| 153 |
+
Tsinghua University. Guanxin Lin and Chen Yang contributed equally. Chen Wang is the corresponding author.
|
prepare_media.py
CHANGED
|
@@ -5,6 +5,7 @@ import json
|
|
| 5 |
import shutil
|
| 6 |
import tempfile
|
| 7 |
import zipfile
|
|
|
|
| 8 |
from pathlib import Path
|
| 9 |
|
| 10 |
|
|
@@ -23,10 +24,16 @@ def unpack(archive_path, data):
|
|
| 23 |
target = (data / relative).resolve()
|
| 24 |
if relative.parts[:1] != ("media",) or not target.is_relative_to(data):
|
| 25 |
raise ValueError(f"Unexpected archive path: {entry.filename}")
|
| 26 |
-
if
|
| 27 |
-
|
| 28 |
-
raise ValueError(f"Existing file differs in size: {target}")
|
| 29 |
continue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
target.parent.mkdir(parents=True, exist_ok=True)
|
| 31 |
with tempfile.NamedTemporaryFile(dir=target.parent, delete=False) as output:
|
| 32 |
temp = Path(output.name)
|
|
@@ -60,7 +67,7 @@ def main():
|
|
| 60 |
for name in ("questions.jsonl","labels.jsonl"):
|
| 61 |
obtain(name)
|
| 62 |
if args.all:
|
| 63 |
-
for name in ("episodes/
|
| 64 |
obtain(name)
|
| 65 |
manifest = "media_manifest.json" if args.all else "test_frames_manifest.json"
|
| 66 |
items = json.loads(obtain(manifest).read_text(encoding="utf-8"))
|
|
|
|
| 5 |
import shutil
|
| 6 |
import tempfile
|
| 7 |
import zipfile
|
| 8 |
+
import zlib
|
| 9 |
from pathlib import Path
|
| 10 |
|
| 11 |
|
|
|
|
| 24 |
target = (data / relative).resolve()
|
| 25 |
if relative.parts[:1] != ("media",) or not target.is_relative_to(data):
|
| 26 |
raise ValueError(f"Unexpected archive path: {entry.filename}")
|
| 27 |
+
if entry.is_dir():
|
| 28 |
+
target.mkdir(parents=True, exist_ok=True)
|
|
|
|
| 29 |
continue
|
| 30 |
+
if target.is_file() and target.stat().st_size == entry.file_size:
|
| 31 |
+
checksum = 0
|
| 32 |
+
with target.open("rb") as existing:
|
| 33 |
+
for chunk in iter(lambda: existing.read(1024 * 1024), b""):
|
| 34 |
+
checksum = zlib.crc32(chunk, checksum)
|
| 35 |
+
if checksum == entry.CRC:
|
| 36 |
+
continue
|
| 37 |
target.parent.mkdir(parents=True, exist_ok=True)
|
| 38 |
with tempfile.NamedTemporaryFile(dir=target.parent, delete=False) as output:
|
| 39 |
temp = Path(output.name)
|
|
|
|
| 67 |
for name in ("questions.jsonl","labels.jsonl"):
|
| 68 |
obtain(name)
|
| 69 |
if args.all:
|
| 70 |
+
for name in ("episodes/train.jsonl", "episodes/validation.jsonl", "episodes/test.jsonl"):
|
| 71 |
obtain(name)
|
| 72 |
manifest = "media_manifest.json" if args.all else "test_frames_manifest.json"
|
| 73 |
items = json.loads(obtain(manifest).read_text(encoding="utf-8"))
|