docs: new dataset card for r3b_v1 layout
Browse files
README.md
CHANGED
|
@@ -1,86 +1,116 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
size_categories:
|
| 5 |
-
- n
|
| 6 |
tags:
|
| 7 |
-
- benchmark
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
-
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
# R3-Bench
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
> packaged as gzip'd tar files. Use the download + extraction instructions
|
| 18 |
-
> below — do **not** use `datasets.load_dataset()` on this repo.
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|---|---|---|---|
|
| 26 |
-
| `alive.tar.gz` | `alive/` | 10.7 kB | 1 |
|
| 27 |
-
| `backup_bin.tar.gz.part_{aa..ae}` | `backup_bin/` | ~193 GB | 5 |
|
| 28 |
-
| `compare_methods_OmniVerifier_data.tar.gz` | `compare_methods/OmniVerifier/` | 2.09 GB | 1 |
|
| 29 |
-
| `compare_methods_Step1X-Edit.tar.gz` | `compare_methods/Step1X-Edit/` | 6.23 GB | 1 |
|
| 30 |
-
| `compare_methods_Step1X-Editv2.tar.gz` | `compare_methods/Step1X-Editv2/` | 129 MB | 1 |
|
| 31 |
-
| `elo_human_eval.tar.gz` | `elo_human_eval/` | 146 MB | 1 |
|
| 32 |
-
| `eval.tar.gz` | `eval/` | 3.02 GB | 1 |
|
| 33 |
-
| `exps.tar.gz.part_{aa..ac}` | `exps/` | ~103 GB | 3 |
|
| 34 |
-
| `images.tar.gz` | `images/` | 725 MB | 1 |
|
| 35 |
-
| `iterative_ablation_output.tar.gz` | `iterative_ablation_output/` | 1.94 GB | 1 |
|
| 36 |
-
| `logs.tar.gz` | `logs/` | 121 kB | 1 |
|
| 37 |
-
| `output.tar.gz` | `output/` | 6.58 GB | 1 |
|
| 38 |
-
| `paper_case.tar.gz` | `paper_case/` | 5.62 GB | 1 |
|
| 39 |
|
| 40 |
-
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
|
| 45 |
-
# 1. Install the HF client
|
| 46 |
-
pip install -U huggingface_hub
|
| 47 |
-
|
| 48 |
-
# 2. Download everything to a local directory
|
| 49 |
-
huggingface-cli download xiaomoguhzz/R3-Bench-data \
|
| 50 |
-
--repo-type dataset \
|
| 51 |
-
--local-dir R3-Bench-data/
|
| 52 |
-
cd R3-Bench-data/
|
| 53 |
-
|
| 54 |
-
# 3. Merge split shards back into monolithic tarballs
|
| 55 |
-
cat backup_bin.tar.gz.part_* > backup_bin.tar.gz
|
| 56 |
-
cat exps.tar.gz.part_* > exps.tar.gz
|
| 57 |
-
rm backup_bin.tar.gz.part_* exps.tar.gz.part_*
|
| 58 |
-
|
| 59 |
-
# 4. Extract each tarball
|
| 60 |
-
for f in *.tar.gz; do
|
| 61 |
-
echo "extracting $f ..."
|
| 62 |
-
tar xzf "$f"
|
| 63 |
-
done
|
| 64 |
-
```
|
| 65 |
|
| 66 |
-
|
| 67 |
|
| 68 |
-
```
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
```
|
| 73 |
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
-
|
| 79 |
|
| 80 |
-
##
|
| 81 |
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
## License
|
| 85 |
|
| 86 |
-
Released under **
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-to-text
|
| 5 |
+
- visual-question-answering
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
size_categories:
|
| 9 |
+
- n<1K
|
| 10 |
tags:
|
| 11 |
+
- benchmark
|
| 12 |
+
- reflection
|
| 13 |
+
- rectification
|
| 14 |
+
- text-to-image
|
| 15 |
+
- visual-reasoning
|
| 16 |
+
- image-editing
|
| 17 |
+
pretty_name: R3-Bench
|
| 18 |
---
|
| 19 |
|
| 20 |
+
# R3-Bench: Reason-Reflect-Rectify Benchmark
|
| 21 |
|
| 22 |
+
**Code**: [github.com/xiaomoguhz/R3-Bench](https://github.com/xiaomoguhz/R3-Bench)
|
| 23 |
+
**Paper**: *Benchmarking and Evolving Reason-Reflect-Rectify for Reflective Visual Generation* (ICML 2026, under review).
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
R³-Bench evaluates **reflective visual generation**: given a generated image and the original prompt, a model must (i) reason about whether the image matches the prompt, (ii) explain any discrepancy, and (iii) propose a rectification action. The benchmark measures two complementary scores:
|
| 26 |
|
| 27 |
+
- **S_ref** — Reflective Verdict Score (verdict + explanation correctness, judged by an LLM)
|
| 28 |
+
- **S_rect** — Rectification Score (normalised VQA-alignment gain after applying the proposed edit)
|
| 29 |
|
| 30 |
+
## Contents
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
+
| File | Description |
|
| 33 |
+
|---|---|
|
| 34 |
+
| `images.tar.gz` | 670 source images (PNG, ~717 MB), organised as `images/{category}/{verdict}/r3b_{idx:06d}.png` |
|
| 35 |
|
| 36 |
+
The 670-sample **prompt + ground-truth JSONL** ships with the code repository at [`r3bench/data/r3bench.jsonl`](https://github.com/xiaomoguhz/R3-Bench/blob/main/r3bench/data/r3bench.jsonl) — labels travel with the eval code so version drift is captured by git.
|
| 37 |
|
| 38 |
+
## Schema
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
+
Each JSONL record:
|
| 41 |
|
| 42 |
+
```json
|
| 43 |
+
{
|
| 44 |
+
"idx": 0,
|
| 45 |
+
"original_prompt": "a black candle and a white holder",
|
| 46 |
+
"bad_image": "images/color/false/r3b_000000.png",
|
| 47 |
+
"answer": false,
|
| 48 |
+
"explanation": "The white object is a candle, not a holder as specified in the prompt.",
|
| 49 |
+
"category": "color",
|
| 50 |
+
"generated_qa": {
|
| 51 |
+
"yn_question_list": ["Is there a candle in the image?", "..."]
|
| 52 |
+
}
|
| 53 |
+
}
|
| 54 |
```
|
| 55 |
|
| 56 |
+
| Field | Type | Description |
|
| 57 |
+
|---|---|---|
|
| 58 |
+
| `idx` | int | Unique sample id (0–669) |
|
| 59 |
+
| `original_prompt` | str | The text-to-image prompt |
|
| 60 |
+
| `bad_image` | str | Image path relative to the data root |
|
| 61 |
+
| `answer` | bool | Ground-truth verdict: does the image match the prompt? (`false` = mismatch) |
|
| 62 |
+
| `explanation` | str | Ground-truth discrepancy description (used as S_ref reference) |
|
| 63 |
+
| `category` | str | Error dimension: color · object · numeracy · spatial · shape · texture · complex · non |
|
| 64 |
+
| `generated_qa.yn_question_list` | list[str] | Yes/no VQA probes used by the S_rect rectification scorer |
|
| 65 |
+
|
| 66 |
+
## Category & verdict distribution (670 total)
|
| 67 |
+
|
| 68 |
+
| Category | false (mismatch) | true (match) | Total |
|
| 69 |
+
|---|---:|---:|---:|
|
| 70 |
+
| color | 71 | 26 | 97 |
|
| 71 |
+
| complex | 46 | 48 | 94 |
|
| 72 |
+
| non | 7 | 42 | 49 |
|
| 73 |
+
| numeracy | 73 | 23 | 96 |
|
| 74 |
+
| object | 54 | 17 | 71 |
|
| 75 |
+
| shape | 72 | 20 | 92 |
|
| 76 |
+
| spatial | 76 | 25 | 101 |
|
| 77 |
+
| texture | 49 | 21 | 70 |
|
| 78 |
+
| **Sum** | **448** | **222** | **670** |
|
| 79 |
+
|
| 80 |
+
`non` = "no error" probe samples (image matches prompt) used to calibrate false-positive reflection.
|
| 81 |
+
|
| 82 |
+
## Usage
|
| 83 |
|
| 84 |
+
```bash
|
| 85 |
+
# 1. Download images
|
| 86 |
+
hf download xiaomoguhzz/R3-Bench-data images.tar.gz \
|
| 87 |
+
--repo-type dataset --local-dir /path/to/r3bench-data
|
| 88 |
+
cd /path/to/r3bench-data && tar -xzf images.tar.gz
|
| 89 |
+
# → /path/to/r3bench-data/images/{category}/{true,false}/r3b_{idx:06d}.png
|
| 90 |
+
|
| 91 |
+
# 2. Run the 4-step pipeline (clone the code repo first)
|
| 92 |
+
git clone https://github.com/xiaomoguhz/R3-Bench && cd R3-Bench
|
| 93 |
+
export R3BENCH_DATA_DIR=/path/to/r3bench-data
|
| 94 |
+
|
| 95 |
+
bash scripts/run_reflection.sh 8 qwen2.5vl # Step 1 — reflection
|
| 96 |
+
bash scripts/run_edit.sh 8 qwen2.5vl qwen_image_2511 # Step 2 — editing
|
| 97 |
+
bash scripts/eval_reflection.sh qwen2.5vl # Step 3 — S_ref
|
| 98 |
+
bash scripts/eval_edit.sh qwen2.5vl qwen_image_2511 # Step 4 — S_rect
|
| 99 |
+
```
|
| 100 |
|
| 101 |
+
See the [code repo README](https://github.com/xiaomoguhz/R3-Bench) for full pipeline details, supported backends, and how to plug in a custom reflection / editor model.
|
| 102 |
|
| 103 |
+
## Citation
|
| 104 |
|
| 105 |
+
```bibtex
|
| 106 |
+
@article{r3bench2026,
|
| 107 |
+
title={Benchmarking and Evolving Reason-Reflect-Rectify for Reflective Visual Generation},
|
| 108 |
+
author={Anonymous},
|
| 109 |
+
journal={ICML (under review)},
|
| 110 |
+
year={2026}
|
| 111 |
+
}
|
| 112 |
+
```
|
| 113 |
|
| 114 |
## License
|
| 115 |
|
| 116 |
+
Released under the **Apache 2.0** license. Source prompts adapted from T2I-CompBench, GenEval++, and GEdit-Bench under their respective licenses; see the code repository for full attribution.
|