Anonumous commited on
Commit
7285553
·
verified ·
1 Parent(s): 671f54a

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +163 -0
  2. manifest.json +53 -0
  3. train/avalanche.tar.gz +3 -0
  4. train/basketball.tar.gz +3 -0
  5. train/billiards.tar.gz +3 -0
  6. train/breakout.tar.gz +3 -0
  7. train/bridge.tar.gz +3 -0
  8. train/chain.tar.gz +3 -0
  9. train/conveyor.tar.gz +3 -0
  10. train/dominos.tar.gz +3 -0
  11. train/explosion.tar.gz +3 -0
  12. train/funnel.tar.gz +3 -0
  13. train/head_on.tar.gz +3 -0
  14. train/jenga.tar.gz +3 -0
  15. train/marble_run.tar.gz +3 -0
  16. train/orbit.tar.gz +3 -0
  17. train/pendulum.tar.gz +3 -0
  18. train/pinball.tar.gz +3 -0
  19. train/plinko.tar.gz +3 -0
  20. train/projectile.tar.gz +3 -0
  21. train/pyramid.tar.gz +3 -0
  22. train/pyramid/0001681/scene_01681086.jsonl +0 -0
  23. train/pyramid/0001681/scene_01681100.jsonl +0 -0
  24. train/pyramid/0001681/scene_01681175.jsonl +0 -0
  25. train/pyramid/0001681/scene_01681209.jsonl +0 -0
  26. train/pyramid/0001681/scene_01681234.jsonl +0 -0
  27. train/pyramid/0001681/scene_01681308.jsonl +0 -0
  28. train/pyramid/0001681/scene_01681345.jsonl +0 -0
  29. train/pyramid/0001681/scene_01681365.jsonl +0 -0
  30. train/pyramid/0001681/scene_01681381.jsonl +0 -0
  31. train/pyramid/0001681/scene_01681426.jsonl +0 -0
  32. train/pyramid/0001681/scene_01681429.jsonl +0 -0
  33. train/pyramid/0001681/scene_01681433.jsonl +0 -0
  34. train/pyramid/0001681/scene_01681438.jsonl +0 -0
  35. train/pyramid/0001681/scene_01681730.jsonl +0 -0
  36. train/pyramid/0001681/scene_01681754.jsonl +0 -0
  37. train/pyramid/0001681/scene_01681824.jsonl +0 -0
  38. train/pyramid/0001681/scene_01681834.jsonl +0 -0
  39. train/pyramid/0001681/scene_01681877.jsonl +0 -0
  40. train/pyramid/0001681/scene_01681920.jsonl +0 -0
  41. train/pyramid/0001681/scene_01681939.jsonl +0 -0
  42. train/pyramid/0001687/scene_01687000.jsonl +0 -0
  43. train/pyramid/0001687/scene_01687001.jsonl +0 -0
  44. train/pyramid/0001687/scene_01687002.jsonl +0 -0
  45. train/pyramid/0001687/scene_01687003.jsonl +0 -0
  46. train/pyramid/0001687/scene_01687004.jsonl +0 -0
  47. train/pyramid/0001687/scene_01687005.jsonl +0 -0
  48. train/pyramid/0001687/scene_01687006.jsonl +0 -0
  49. train/pyramid/0001687/scene_01687007.jsonl +0 -0
  50. train/pyramid/0001687/scene_01687008.jsonl +0 -0
README.md ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ - ru
5
+ license: apache-2.0
6
+ task_categories:
7
+ - text-generation
8
+ tags:
9
+ - physics
10
+ - simulation
11
+ - 2d-physics
12
+ - rigid-body
13
+ - pymunk
14
+ - synthetic
15
+ - scene-generation
16
+ size_categories:
17
+ - 1M<n<10M
18
+ ---
19
+
20
+ # Physics Generalization Dataset
21
+
22
+ **1,000,020 diverse 2D rigid body physics simulation scenes** for training and evaluating LLMs on physics prediction tasks.
23
+
24
+ ## Overview
25
+
26
+ This dataset contains procedurally generated physics simulations across **30 distinct scenario types** organized in 6 categories. Unlike typical physics datasets that only feature random objects falling in a box, this dataset covers a wide range of physical phenomena: collisions, stacking, ramps, pendulums, constraints, and mini-game-inspired physics.
27
+
28
+ Each scene is a 200-frame simulation at 1/60s timestep using the Pymunk (Chipmunk2D) physics engine, exported in JSONL format with rich metadata.
29
+
30
+ ## Dataset Structure
31
+
32
+ ### Splits
33
+
34
+ | Split | Scenes | Scenario Types | Purpose |
35
+ |-------|--------|----------------|---------|
36
+ | **train** | 900,000 | 24 (seen only) | Training |
37
+ | **val** | 100,020 | 30 (seen + unseen) | Evaluation |
38
+
39
+ ### Unseen Scenarios (held out from training)
40
+
41
+ 6 scenario types appear **only in val**, enabling out-of-distribution generalization evaluation:
42
+
43
+ | Difficulty | Scenario | Description |
44
+ |-----------|----------|-------------|
45
+ | Simple | `pong` | Ball bouncing between two paddles (zero gravity) |
46
+ | Simple | `bowling` | Heavy ball rolling toward arranged pins |
47
+ | Simple | `ramp_roll` | Objects rolling down an inclined plane |
48
+ | Complex | `angry_birds` | Projectile launched at multi-layer block structure |
49
+ | Complex | `hourglass` | Objects falling through narrow gap between chambers |
50
+ | Complex | `newtons_cradle` | Balls suspended by pin joints, momentum transfer |
51
+
52
+ ### Seen Scenarios (in both train and val)
53
+
54
+ 24 scenario types with 37,500 samples each in train:
55
+
56
+ **Collision & Ballistics:** `billiards`, `breakout`, `explosion`, `head_on`, `projectile`
57
+
58
+ **Stacking & Structural:** `bridge`, `dominos`, `jenga`, `pyramid`, `tower`
59
+
60
+ **Ramps & Terrain:** `funnel`, `marble_run`, `plinko`, `ski_jump` (+ unseen `ramp_roll`)
61
+
62
+ **Pendulums & Constraints:** `chain`, `pendulum`, `seesaw`, `wrecking_ball` (+ unseen `newtons_cradle`)
63
+
64
+ **Mini-game Physics:** `basketball`, `pinball` (+ unseen `angry_birds`, `bowling`, `pong`)
65
+
66
+ **Complex & Chaotic:** `avalanche`, `conveyor`, `orbit`, `wind` (+ unseen `hourglass`)
67
+
68
+ ## Data Format
69
+
70
+ Each scene is a JSONL file (1 header line + 200 frame lines).
71
+
72
+ ### Header (line 1)
73
+ ```json
74
+ {
75
+ "type": "scene_header",
76
+ "seed": 1315353,
77
+ "scenario_type": "explosion",
78
+ "scenario_category": "collision",
79
+ "difficulty": 4,
80
+ "description": "Explosion: 25 objects flying outward from center.",
81
+ "object_count": 25,
82
+ "gravity": {"x": 0.0, "y": -981.0},
83
+ "timestep": 0.016666666666666666,
84
+ "static_geometry": [...],
85
+ "constraints": [...],
86
+ "objects": [
87
+ {
88
+ "id": 0, "type": "circle",
89
+ "position": {"x": 401.23, "y": 302.45},
90
+ "material": {"mass": 2.5, "friction": 0.6, "elasticity": 0.7},
91
+ "radius": 15.3
92
+ }
93
+ ]
94
+ }
95
+ ```
96
+
97
+ ### Frame (lines 2-201)
98
+ ```json
99
+ {
100
+ "frame": 1,
101
+ "description": "Frame 1: All objects are in motion.",
102
+ "objects": [
103
+ {
104
+ "id": 0, "type": "circle",
105
+ "position": {"x": 415.67, "y": 318.90},
106
+ "velocity": {"x": 280.5, "y": 320.1},
107
+ "angle": 0.052,
108
+ "angular_velocity": 0.003,
109
+ "material": {"mass": 2.5, "friction": 0.6, "elasticity": 0.7}
110
+ }
111
+ ]
112
+ }
113
+ ```
114
+
115
+ ## Key Features
116
+
117
+ - **30 scenario types** with qualitatively different physics (not just parameter variation)
118
+ - **Difficulty scaling** (1-5) per scenario: controls object count, velocity, structural complexity
119
+ - **Deterministic** generation via seed-based RNG
120
+ - **Constraints/Joints**: PinJoint, PivotJoint for pendulums, seesaws, chains, Newton's cradle
121
+ - **Custom static geometry**: ramps, funnels, peg grids, bumpers, hourglass chambers, basketball hoops
122
+ - **Rich text descriptions** for each scene (useful as LLM context)
123
+ - **Zero gravity** scenarios: billiards, pong, orbit
124
+ - **Initial velocities**: projectiles, explosions, head-on collisions (not just "objects at rest")
125
+ - **Clean train/unseen split** for generalization evaluation
126
+
127
+ ## Physics Engine
128
+
129
+ - **Pymunk** (Python wrapper for Chipmunk2D)
130
+ - Scene: 800×600 pixels
131
+ - Fixed timestep: 1/60s
132
+ - Elasticity always < 1.0 (energy conservation, no Pymunk instability)
133
+ - Threading disabled (determinism)
134
+
135
+ ## Generation
136
+
137
+ Generated using 22 CPU cores in ~29 minutes at ~578 scenes/sec.
138
+
139
+ ```bash
140
+ python scripts/generate_scenarios_dataset.py --split all --workers 22
141
+ ```
142
+
143
+ ## File Organization
144
+
145
+ ```
146
+ data_scenarios/
147
+ ├── manifest.json # Split config, seen/unseen lists
148
+ ├── train/
149
+ │ ├── avalanche/ # 37,500 scenes
150
+ │ ├── basketball/
151
+ │ ├── ... # 24 scenario type directories
152
+ │ └── wrecking_ball/
153
+ └── val/
154
+ ├── angry_birds/ # 3,334 scenes (UNSEEN)
155
+ ├── avalanche/
156
+ ├── bowling/ # 3,334 scenes (UNSEEN)
157
+ ├── ... # 30 scenario type directories
158
+ └── wind/
159
+ ```
160
+
161
+ ## Citation
162
+
163
+ Part of a research project on training LLMs to predict 2D rigid body physics.
manifest.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "seen_scenarios": [
3
+ "avalanche",
4
+ "basketball",
5
+ "billiards",
6
+ "breakout",
7
+ "bridge",
8
+ "chain",
9
+ "conveyor",
10
+ "dominos",
11
+ "explosion",
12
+ "funnel",
13
+ "head_on",
14
+ "jenga",
15
+ "marble_run",
16
+ "orbit",
17
+ "pendulum",
18
+ "pinball",
19
+ "plinko",
20
+ "projectile",
21
+ "pyramid",
22
+ "seesaw",
23
+ "ski_jump",
24
+ "tower",
25
+ "wind",
26
+ "wrecking_ball"
27
+ ],
28
+ "unseen_scenarios": [
29
+ "angry_birds",
30
+ "bowling",
31
+ "hourglass",
32
+ "newtons_cradle",
33
+ "pong",
34
+ "ramp_roll"
35
+ ],
36
+ "unseen_simple": [
37
+ "pong",
38
+ "bowling",
39
+ "ramp_roll"
40
+ ],
41
+ "unseen_complex": [
42
+ "angry_birds",
43
+ "hourglass",
44
+ "newtons_cradle"
45
+ ],
46
+ "train_per_type": 37500,
47
+ "val_per_type": 3334,
48
+ "train_total": 900000,
49
+ "val_total": 100020,
50
+ "num_frames": 200,
51
+ "seed_base_train": 1000000,
52
+ "seed_base_val": 5000000
53
+ }
train/avalanche.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd8f956d86829d6bae531318572875bd08d4dc1046ddbd124bd8da0f80a87eba
3
+ size 135
train/basketball.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68b37b125945ee65fe30b8d3a5cda256c15740b32766e92e7eeb026ccd2b2403
3
+ size 134
train/billiards.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1f4e43ab6416c26dc07c931ef4247319e94326eb4715a52c69c7c3b426e9b3e
3
+ size 135
train/breakout.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43d82c2c8f988176ba138e634cd6a6c055f530ea24766049b6889d89dc521e66
3
+ size 135
train/bridge.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7dba377c06b7eb5eaec8712817456dd53f46d2093664228195d4af8b85eb397f
3
+ size 135
train/chain.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9076e36a399609f940db429c5e2a57e455fee6a3d0b0cc213157fbc2aa1cf59f
3
+ size 135
train/conveyor.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e75e0e1383bd8154b6ab08c8348c2cbec1839366c698d5d63406b42ad9398ef
3
+ size 134
train/dominos.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba332a0c777a0ae8e76fbdc6a2721c316a03e3bc1bdb9984ec060a674fb4dbb8
3
+ size 135
train/explosion.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0927e6d602a3aa996df7772134d01d3802796f16c474671bb341c1786e193b5
3
+ size 135
train/funnel.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb2254b4d476894194f48e3bca29f813589cf02f2c9fee1cbb9f764e0e971db0
3
+ size 135
train/head_on.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbd25f6d9356e2a204647a6fea1aa586697668613d6738573f4462239ac578eb
3
+ size 135
train/jenga.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:95bd8cb998ad86beffdcfd6e0abefa0703069bc5e83c73a1169c9b16116b5f2d
3
+ size 135
train/marble_run.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf363aaa9329eb1b8d833b79fb08435550d5b45cb22cfa8c3b6b732aff2b3baf
3
+ size 134
train/orbit.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df12f2c3d45eae7d16dd8fc7eda9ff9eea89ccff8e9ad2379afaa7a9a45fd8a4
3
+ size 135
train/pendulum.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e56b843545a6ec733577b8d75580250580e3d20e8c4ba396f73bd27130550ea
3
+ size 134
train/pinball.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2f80011c8e64c858489492944638932a0ec67f999be45661c74988a1c604c19
3
+ size 134
train/plinko.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:917683d860423f42f80f73ef035f750560a18b80092dfec7f6b04f2c5c307097
3
+ size 134
train/projectile.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0c9bab93e5f7d1598ca598fa710b158cc5ac8e5924472ae093934a493291c3e
3
+ size 135
train/pyramid.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7d8e87e9502f629f005b2b57215bd7c804d2ca7a8f31302cf6f920def65ff99
3
+ size 135
train/pyramid/0001681/scene_01681086.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681100.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681175.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681209.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681234.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681308.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681345.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681365.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681381.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681426.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681429.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681433.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681438.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681730.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681754.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681824.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681834.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681877.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681920.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001681/scene_01681939.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001687/scene_01687000.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001687/scene_01687001.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001687/scene_01687002.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001687/scene_01687003.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001687/scene_01687004.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001687/scene_01687005.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001687/scene_01687006.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001687/scene_01687007.jsonl ADDED
The diff for this file is too large to render. See raw diff
 
train/pyramid/0001687/scene_01687008.jsonl ADDED
The diff for this file is too large to render. See raw diff