Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,109 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-4.0
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-4.0
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
# SixthView Benchmark
|
| 6 |
+
|
| 7 |
+
SixthView evaluates spatial reasoning by asking models to predict a withheld
|
| 8 |
+
face of a block assembled from interlocking cube pieces. Each example includes
|
| 9 |
+
text and image inputs together with the underlying 3D structure and answer.
|
| 10 |
+
|
| 11 |
+
| file | rows | what |
|
| 12 |
+
|---|---|---|
|
| 13 |
+
| `benchmark/inputs.jsonl` | 604 | the exact model input for every arm, keyed by `id` |
|
| 14 |
+
| `benchmark/golden.jsonl` | 604 | the real 3D structure and the expected model output, keyed by `id` |
|
| 15 |
+
| `benchmark/images/<id>/` | 11,634 PNGs | every image referenced by `inputs.jsonl` |
|
| 16 |
+
|
| 17 |
+
## Usage
|
| 18 |
+
|
| 19 |
+
Clone this repository to download the benchmark:
|
| 20 |
+
|
| 21 |
+
```bash
|
| 22 |
+
git clone https://github.com/facebookresearch/sixthview_benchmark.git
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
Read `benchmark/inputs.jsonl` and resolve its image paths relative to `benchmark/`.
|
| 26 |
+
Join examples with `benchmark/golden.jsonl` by `id` for evaluation.
|
| 27 |
+
|
| 28 |
+
## inputs.jsonl
|
| 29 |
+
|
| 30 |
+
```
|
| 31 |
+
id, n, k, level, held_out
|
| 32 |
+
arms: {
|
| 33 |
+
arm1: {arm_name: "text", prompt_text, images: []}
|
| 34 |
+
arm2: {arm_name: "multiple images", prompt_text, images: [6 faces + 2 renders per piece]}
|
| 35 |
+
arm3: {arm_name: "text + multiple images", prompt_text, images: [same as arm2]}
|
| 36 |
+
arm4: {arm_name: "single image", prompt_text, images: [merged sheet]}
|
| 37 |
+
}
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
`prompt_text` is byte-identical to what was sent (`prompt_sha` is included for
|
| 41 |
+
verification). Images are sent in the listed order; paths are relative to
|
| 42 |
+
`benchmark/`. The held-out face image is the `PREDICT THIS` placeholder, never the
|
| 43 |
+
real face — this folder contains no answer-revealing images.
|
| 44 |
+
|
| 45 |
+
## golden.jsonl
|
| 46 |
+
|
| 47 |
+
| field | |
|
| 48 |
+
|---|---|
|
| 49 |
+
| `structure_3d` | the real internal structure, an n×n×n array indexed **`[z][y][x]`**, z = 0 at the bottom. Each cell is the letter of the piece occupying it, or `"."` for empty. |
|
| 50 |
+
| `pieces` | the same structure per piece: `{letter: [[x, y, z], ...]}` in block coordinates |
|
| 51 |
+
| `held_out` | which face is withheld (`+X -X +Y -Y +Z -Z`); the camera sits on that side and looks inward |
|
| 52 |
+
| `answer_grid` | the withheld face: list of n strings, top row first, leftmost character first. Letter = first piece the ray meets, `"."` = see-through. |
|
| 53 |
+
| `expected_output` | the output we expect from the model, i.e. the JSON object the prompt asks for. The prompt also asks for a free-text `"reason"` key, which is recorded but not scored. Scoring is an exact match on `answer`. |
|
| 54 |
+
| `majority_baseline`, `opposite_baseline` | cell accuracy from always guessing the most common letter, and from mirroring the opposite face |
|
| 55 |
+
|
| 56 |
+
Screen axes of each face (right, up): `+X`(+Y,+Z) `-X`(-Y,+Z) `+Y`(-X,+Z)
|
| 57 |
+
`-Y`(+X,+Z) `+Z`(+X,+Y) `-Z`(-X,+Y). Ray-casting `structure_3d` from `held_out`
|
| 58 |
+
with these axes reproduces `answer_grid` exactly. This was checked on all 604 rows.
|
| 59 |
+
|
| 60 |
+
## Validation
|
| 61 |
+
|
| 62 |
+
With Python 3.10 or newer, run:
|
| 63 |
+
|
| 64 |
+
```bash
|
| 65 |
+
python scripts/check_benchmark.py
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
The check verifies example IDs, prompt hashes, image references, PNG headers,
|
| 69 |
+
piece coordinates, and answers computed from the 3D structures. GitHub Actions
|
| 70 |
+
runs this check on pushes and pull requests.
|
| 71 |
+
|
| 72 |
+
## Documentation
|
| 73 |
+
|
| 74 |
+
The documentation site is at
|
| 75 |
+
https://facebookresearch.github.io/sixthview_benchmark/ once GitHub Pages is enabled.
|
| 76 |
+
To build it locally with Node.js 22 or newer:
|
| 77 |
+
|
| 78 |
+
```bash
|
| 79 |
+
cd website
|
| 80 |
+
npm ci
|
| 81 |
+
npm run build
|
| 82 |
+
```
|
| 83 |
+
|
| 84 |
+
CI validates the benchmark and builds the site. The separate **Documentation
|
| 85 |
+
Pages** workflow deploys after CI succeeds on `main`.
|
| 86 |
+
|
| 87 |
+
A repository admin must set **Settings → Pages → Source → GitHub Actions**.
|
| 88 |
+
After enabling Pages, a maintainer can trigger deployment with:
|
| 89 |
+
|
| 90 |
+
```bash
|
| 91 |
+
gh workflow run pages.yml --repo facebookresearch/sixthview_benchmark --ref main
|
| 92 |
+
```
|
| 93 |
+
|
| 94 |
+
## Contributing
|
| 95 |
+
|
| 96 |
+
See [CONTRIBUTING.md](CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
|
| 97 |
+
Release changes are recorded in [CHANGELOG.md](CHANGELOG.md).
|
| 98 |
+
|
| 99 |
+
## License
|
| 100 |
+
|
| 101 |
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 102 |
+
|
| 103 |
+
This repository, including the benchmark data, images, documentation, and
|
| 104 |
+
validation script, is licensed under the
|
| 105 |
+
[Creative Commons Attribution-NonCommercial 4.0 International license
|
| 106 |
+
(CC BY-NC 4.0)](https://creativecommons.org/licenses/by-nc/4.0/).
|
| 107 |
+
You may share and adapt the material for noncommercial purposes with appropriate
|
| 108 |
+
attribution and an indication of changes. Commercial use is not permitted under
|
| 109 |
+
this license. See [LICENSE](LICENSE) for the full terms.
|