File size: 10,426 Bytes
1bbed0c 433de61 1bbed0c 433de61 1bbed0c 433de61 1bbed0c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | ---
pretty_name: ProWM-Bench
license: other
license_name: apache-2.0-code-upstream-data
license_link: https://huggingface.co/datasets/simonlqy/ProWM-Bench/blob/main/LICENSE.code
language:
- en
task_categories:
- other
tags:
- arxiv:2612.04946
- coding-agents
- world-models
- software-engineering
- multimodal
- benchmark
- swe-bench
size_categories:
- n<1K
viewer: false
---
# ProWM-Bench
**Product-Level World Model Benchmark for Coding Agents**
Official benchmark release for **"Predict the Product, Not the Observation: Product-Level World Models for Coding Agents"** (**PreVision**).
- **Paper:** [arXiv:2612.04946](https://arxiv.org/abs/2612.04946) ([HF Papers](https://huggingface.co/papers/2612.04946))
- **Code & full pipeline:** [github.com/SIMONLQY/PreVision](https://github.com/SIMONLQY/PreVision)
- **Benchmark dataset:** [huggingface.co/datasets/simonlqy/ProWM-Bench](https://huggingface.co/datasets/simonlqy/ProWM-Bench)
- **Schema version:** `prowm-bench-release.v1` (v1.0.0)
## Overview
**ProWM-Bench** evaluates product-level world modeling on real software engineering trajectories. Given the initial repository state $s_0$, the issue description (including issue screenshots), the public agent trajectory up to an action (tool calls and observations, without private reasoning), and a target action, a model predicts **without tools**:
1. **`observation_repository`**: the next tool output text and repository change.
2. **`official_tests`**: whether the hidden official tests resolve the issue and the pass/fail status of each opaque official test oracle.
3. **`render_product`**: the rendered behavior of the software product measured by a fixed per-issue render probe (decision-relevant fields and DOM changes).
This release packages the **frozen, label-free model inputs**, **verified ground-truth targets**, **per-issue render probes**, **frozen reference predictions**, and a **zero-dependency Python loader and deterministic scorer** (`prowm_bench`, Python 3.9+ standard library only; no `datasets` SDK, Docker, or GPU required to load or score).
## Dataset Statistics
| Subset | Source | Split | Tasks | Items | Branch Prompts | Input Images | Additional Gold Images | Render Probes |
|---|---|---|---:|---:|---:|---:|---:|---:|
| `swemm` | SWE-bench Multimodal (dev, render-eligible) | `test` | 96 | 369 | 1,107 | 234 | 92 | 96 |
| `rs` | SWE-rebench V2 + ScaleSWE (held-out repos) | `test` | 200 | 200 | 600 | 229 | 116 | 200 |
| **Total** | | | **296** | **569** | **1,707** | **463** | **208** | **296** |
### Five Paper Metrics & Denominators
All metrics are reported on a `0` to `1` scale in JSON output (multiply by `100` for paper percentages):
| Metric | Definition | `swemm` Eligible ($n$) | `rs` Eligible ($n$) |
|---|---|---:|---:|
| **Obs EM** | Conservatively normalized tool-output exact match over all items | 369 | 200 |
| **Test Resolved** | Boolean accuracy on whether official tests resolve the issue | 369 | 200 |
| **Test All-EM** | Exact match across all scoreable official-test statuses in an item | 369 | 200 |
| **Render Field-EM** | Exact match across all declared scoreable probe decision fields | 359 | 200 |
| **Render DOM-$\Delta$F1** | Macro F1 of DOM change events relative to $s_0$ (items with DOM changes) | 31 | 21 |
## Quickstart
### 1. Download the release
```bash
hf download simonlqy/ProWM-Bench --repo-type dataset --local-dir ProWM-Bench
cd ProWM-Bench
```
Or via Python (`huggingface_hub`):
```python
from huggingface_hub import snapshot_download
snapshot_download(
repo_id="simonlqy/ProWM-Bench",
repo_type="dataset",
local_dir="ProWM-Bench",
)
```
### 2. Verify checksums, reconstructed prompts, and scorer
All commands below use only the Python standard library (Python 3.9+):
```bash
# Verify SHA-256 checksums of all 996 packaged files and all 1,707 reconstructed prompts
python3 -B -m prowm_bench verify
# Re-score frozen reference predictions (Qwen3.6-27B base) and verify exact match to paper Table 1
python3 -B -m prowm_bench selfcheck
# Run offline unit tests (15 tests)
python3 -B -m unittest discover -s tests -v
```
### 3. Evaluate a model
Run against any OpenAI-compatible `/v1/chat/completions` endpoint that supports base64 PNG data URLs:
```bash
# Evaluate on SWE-bench Multimodal (replace swemm with rs for SWE-rebench V2 + ScaleSWE)
python3 -B examples/run_model.py \
--subset swemm \
--base-url http://localhost:8000/v1 \
--model YOUR_MODEL \
--output predictions_swemm.jsonl
python3 -B -m prowm_bench score \
--subset swemm \
--predictions predictions_swemm.jsonl \
--output scores_swemm.json
```
Or export label-free chat requests directly and score your own prediction JSONL:
```bash
python3 -B -m prowm_bench export --subset swemm --output requests_swemm.jsonl
```
Python API (strictly label-free: never reads targets, probes, or post-action images):
```python
from prowm_bench import load_dataset, score
ds = load_dataset("swemm")
for req in ds.requests():
# req = {"item_id": ..., "branch": ..., "messages": [...]}
# Send req["messages"] to your model without tools.
...
```
Each prediction row in `predictions.jsonl` has the format:
```json
{"item_id": "...", "branch": "official_tests", "response": "{\"resolved\": true, ...}", "finish_reason": "stop"}
```
(Alternatively, provide `"prediction": {...}`.)
## Evaluation Protocol
Defined formally in `evaluation_protocol.json`:
- **Context & output budget:** 131,072-token context window and 32,768-token output budget. Prompts exceeding `131072 - 32768` tokens are counted as unsubmitted zeros with no extra truncation.
- **Tool-free, single-shot:** `tools_available = false`. One completion per `(item_id, branch)`; transport retries only, with no correctness filtering or best-of-$N$ resampling.
- **Full frozen denominator:** Missing, truncated (`finish_reason == "length"`), or schema-invalid branch predictions receive `0`.
- **Response format:** One final raw JSON object per branch. Markdown ```` ```json ```` fences are rejected by default; pass `--allow-json-fences` to `score` to record an explicit alternative evaluation.
- **Data-leakage contract:** Only frozen `messages` and `data/<subset>/images/` are model inputs. `targets.jsonl`, `gold_images/`, `probes/`, and `examples/reference_predictions/` are scoring and audit material only.
## Reference Results (Paper Table 1)
Cumulative product-level world-model metrics (%) on ProWM-Bench (SWE / R+S):
| Model | Obs EM | Test Resolved | Test All-EM | Render Field-EM | Render DOM-$\Delta$F1 |
|---|---:|---:|---:|---:|---:|
| Qwen3.8-Flash-Next | 15.7 / 7.5 | 77.0 / 78.0 | 75.1 / 61.0 | 63.5 / 64.0 | 48.6 / 44.6 |
| DeepSeek-V4.1-Flash | 10.8 / 14.5 | 67.5 / 60.0 | 66.7 / 51.0 | 60.7 / 54.0 | 19.8 / 15.4 |
| Kimi-K2.7-Code | 7.9 / 6.0 | 67.2 / 57.5 | 66.1 / 49.5 | 65.2 / 71.0 | 45.9 / 49.6 |
| Kimi-K2.6 | 9.5 / 8.0 | 72.4 / 68.0 | 71.3 / 56.0 | 62.7 / 66.0 | 41.4 / 45.6 |
| Qwen3.8-27B (teacher) | 8.1 / 8.5 | 79.4 / 75.5 | 77.2 / 57.5 | 66.6 / 71.5 | 47.2 / 44.1 |
| Qwen3.6-27B (base, `selfcheck` ref) | 6.5 / 5.5 | 63.7 / 59.5 | 61.5 / 49.0 | 55.2 / 53.0 | 30.7 / 23.8 |
| Agent-SFT | 6.2 / 6.5 | 75.1 / 69.5 | 72.9 / 57.5 | 68.8 / 64.5 | 27.6 / 35.6 |
| WM-Mix | 7.6 / 7.5 | 78.0 / 75.0 | 75.9 / 59.0 | 64.4 / 68.5 | 32.8 / 42.3 |
| **PreVision (ours)** | **7.9 / 7.5** | **77.5 / 77.0** | **75.6 / 59.0** | **70.2 / 71.0** | **35.0 / 45.9** |
## Repository Structure
```text
ProWM-Bench/
├── manifest.json # Release metadata, subset populations, and CLI usage
├── checksums.json # SHA-256 digests and sizes for all 996 packaged files
├── evaluation_protocol.json # Frozen inference and scoring protocol
├── source_provenance.json # Provenance hashes linking to the paper artifacts
├── swemm_scoring_amendments.json # Audited label amendments on two Chart.js items
├── LICENSE.code # Apache-2.0 license (applies to packaged code only)
├── prowm_bench/ # Zero-dependency Python loader, verifier, and scorer
├── examples/
│ ├── run_model.py # Runnable HTTP chat-completions evaluation client
│ ├── reference_metrics.json # Expected deterministic selfcheck metrics
│ └── reference_predictions/ # Frozen Qwen3.6-27B predictions for selfcheck
├── tests/ # 15 offline verification and contract tests
└── data/
├── swemm/ # 369 items (96 SWE-bench Multimodal tasks)
│ ├── items.jsonl # Public item metadata and protocol specification
│ ├── prompts.jsonl # Frozen model input messages (3 branches/item)
│ ├── images/ # 234 input PNGs referenced by prompts
│ ├── targets.jsonl # Ground-truth scoring targets (scoring/audit only)
│ ├── gold_images/ # 92 additional post-action PNGs (audit only)
│ ├── probes/ # 96 per-issue render probes (audit only)
│ └── {evidence,provenance,probes,gold_images}.jsonl
└── rs/ # 200 items (200 held-out SWE-rebench V2 + ScaleSWE tasks)
```
*Note on HF Dataset Viewer:* The auto-generated Hugging Face Dataset Viewer is intentionally disabled (`viewer: false`) because this package contains multiple distinct JSONL schemas, PNG image directories, Python render probes, and a checksum-verified offline loader. Use `prowm_bench` after downloading the repository snapshot.
## License & Data Rights
- **Code** (`prowm_bench/`, `examples/run_model.py`, `tests/`): released under the [Apache-2.0](LICENSE.code) license.
- **Upstream Data**: issue descriptions, repository excerpts, and screenshots derive from SWE-bench Multimodal, SWE-rebench V2, and ScaleSWE and retain their original upstream rights; source identifiers and URLs are preserved in each item.
## Citation
```bibtex
@article{li2026prevision,
title = {Predict the Product, Not the Observation: Product-Level World Models for Coding Agents},
author = {Li, Qingyao and Dai, Xinyi and Yin, Di and Sun, Xing and Liu, Weiwen and Zhang, Weinan and Yu, Yong},
journal = {arXiv preprint arXiv:2612.04946},
year = {2026}
}
```
|