File size: 3,001 Bytes
4bb3e66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: cc-by-4.0
pretty_name: Spatial relation categorization (Davidson, Orhan & Lake, 2024)
tags:
  - spatial-relations
  - developmental
  - representation-evaluation
  - egolearn
size_categories:
  - 1K<n<10K
---

# Spatial relation categorization

Evaluation data for the spatial relation categorization benchmark from
Davidson, Orhan & Lake (2024), as used by
[EgoLearn](https://github.com/egolearn/egolearn)'s
`spatial_relations` probe. Each trial asks which of two candidates preserves the
anchor's spatial relation (above/below, between/outside), using cosine
similarity of frozen image embeddings.

## Contents

| Path | Domain | Trials | Images |
| --- | --- | ---: | ---: |
| `monitoring/2d-stimuli/` | Abstract 2D scenes (paper's Exp. 1) | 768 | 2,304 |
| `monitoring/3d-stimuli/` | Rendered 3D scenes (paper's Exp. 3) | 512 | 768 |

Folder names describe the stimuli. Inside the files, the paper's experiment
numbers are kept: `"experiment": "exp1"` / `"exp3"` in each manifest and the
`exp1/…` / `exp3/…` prefixes on trial and group IDs. The paper's Exp. 2
(rotations) and Exp. 4 (containment) are not included.

Each directory has `manifest.json` (image inventory with SHA-256, condition
counts, and source provenance), `trials.jsonl`, `audit.json` and `images/`.

- **`2d-stimuli/` (Exp. 1)** images were regenerated with the paper's
  [stimulus generator](https://github.com/guydav/simple-relational-reasoning)
  (seed 33). They are not a pixel-exact recovery of the paper's images.
- **`3d-stimuli/` (Exp. 3)** images are copied byte-for-byte from the authors' Blender renders.
  How those renders were originally produced has not been independently verified.
- **Subset selection** used seed 33. For the 2D stimuli it took 64 trials per
  renderer × relation × condition cell, balanced across the correct candidate
  position. For the 3D stimuli it kept 16 shared scene configurations with all objects
  and conditions.

Each subset manifest records the SHA-256 of its parent full dataset. `monitoring/`
holds the fixed subsets used for training-time monitoring; the full datasets are
not hosted yet (`full/` is reserved for them). `checksums.sha256` lists the
SHA-256 of every payload file.

## Usage

```yaml
probes:
  - _target_: "probe:spatial_relations"
    name: spatial_relations_monitoring
    abstract_2d_manifest: hf://datasets/egolearn/spatial-relation-categorization@v1/monitoring/2d-stimuli/manifest.json
    rendered_3d_manifest: hf://datasets/egolearn/spatial-relation-categorization@v1/monitoring/3d-stimuli/manifest.json
```

## License and attribution

Released under CC BY 4.0 with the authors' permission. Please cite:

```bibtex
@article{davidson2024spatial,
  title   = {Spatial relation categorization in infants and deep neural networks},
  author  = {Davidson, Guy and Orhan, A. Emin and Lake, Brenden M.},
  journal = {Cognition},
  volume  = {245},
  pages   = {105690},
  year    = {2024},
  doi     = {10.1016/j.cognition.2023.105690}
}
```