PraLak commited on
Commit
964892f
·
verified ·
1 Parent(s): c5ffa4d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +155 -1
README.md CHANGED
@@ -1,3 +1,157 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - time-series-forecasting
5
+ - other
6
+ tags:
7
+ - physics
8
+ - pde
9
+ - ode
10
+ - simulation
11
+ - world-models
12
+ - neural-surrogate
13
+ - trust-signal
14
+ - reaction-diffusion
15
+ - euler-equations
16
+ - rigid-body
17
+ pretty_name: Hybrid Neural World Models
18
+ size_categories:
19
+ - 10K<n<100K
20
  ---
21
+
22
+ # Hybrid Neural World Models — datasets
23
+
24
+ Training, validation, test, and out-of-distribution (OOD) trajectories for the
25
+ three physical systems used in **Hybrid Neural World Models** (Pranav Lakshmanan,
26
+ Paras Chopra). The accompanying code, checkpoints, and paper define a single
27
+ neural surrogate that predicts states at any horizon plus a *step-doubling*
28
+ trust signal that flags when its forecasts can be trusted.
29
+
30
+ This repo contains the raw trajectory data only. Models / training code live
31
+ separately.
32
+
33
+ ## What's inside
34
+
35
+ ```
36
+ .
37
+ ├── oregonator/ reaction-diffusion PDE (Belousov-Zhabotinsky)
38
+ │ ├── oregonator_train.h5 1200 traj × 201 steps × 2 ch × 256 × 256
39
+ │ ├── oregonator_val.h5 150 traj
40
+ │ ├── oregonator_test.h5 150 traj
41
+ │ ├── oregonator_ood_near.h5 250 traj (mild parameter shift)
42
+ │ ├── oregonator_ood_far.h5 250 traj (stronger parameter shift)
43
+ │ └── dataset_config.json
44
+ ├── euler2d/ compressible flow PDE
45
+ │ ├── euler2d_v2_train.h5
46
+ │ ├── euler2d_v2_val.h5
47
+ │ ├── euler2d_v2_test.h5
48
+ │ ├── euler2d_v2_ood_near.h5
49
+ │ └── euler2d_v2_ood_far.h5
50
+ └── ball3d/ rigid-body bouncing ODE (MuJoCo)
51
+ ├── ball3d_train.h5 1000 traj × 101 steps × 9 dims
52
+ ├── ball3d_val.h5
53
+ ├── ball3d_test.h5
54
+ ├── ball3d_ood_near.h5
55
+ └── ball3d_ood_far.h5
56
+ ```
57
+
58
+ ## Environments
59
+
60
+ ### 1. Reaction-diffusion fronts (Oregonator / BZ)
61
+
62
+ Two-variable Tyson Oregonator in non-dimensional units (D = 1, ε = 0.05,
63
+ q = 0.002, f = 2.0) integrated on a 256 × 256 periodic grid with explicit-FV
64
+ spatial stencils and Strang splitting. Each trajectory captures 201 saved
65
+ frames (Δt_save = 0.05, total time = 10.0) of the two chemical concentrations
66
+ (`u`, `v`). Initial conditions are a mix of spiral, target-pattern, and
67
+ random superpositions — see `oregonator/dataset_config.json` for ratios and
68
+ seed offsets.
69
+
70
+ State shape per saved frame: `(2, 256, 256)` float32.
71
+
72
+ ### 2. Compressible gas flow (Euler 2D)
73
+
74
+ 2D compressible Euler equations solved with an MUSCL-Hancock + HLLC scheme on
75
+ a 128 × 128 grid. Initial conditions cover Schulz-Rinne Riemann
76
+ configurations and shock-interaction setups. Each trajectory: 100 saved frames
77
+ of `(ρ, ρvx, ρvy, E)` — i.e. four conservative fields stored flattened to
78
+ `16 384` per timestep (reshape to `(128, 128, 4)` if you want per-channel
79
+ imagery).
80
+
81
+ ### 3. Rigid-body bouncing (Ball 3D)
82
+
83
+ MuJoCo simulation of a single ball bouncing inside a 1 × 1 × 0.6 m box with
84
+ elastic-ish contact. State is a 9-vector per frame:
85
+
86
+ | dim | quantity |
87
+ |-------|------------------------|
88
+ | 0–2 | position `(x, y, z)` |
89
+ | 3–5 | linear velocity |
90
+ | 6–8 | angular velocity |
91
+
92
+ Trajectories: 101 frames at fixed Δt.
93
+
94
+ ## OOD splits
95
+
96
+ - `*_ood_near.h5` — parameters drawn from a moderately shifted distribution
97
+ relative to `train`. Used to test robustness in the paper's "OOD-near" cells.
98
+ - `*_ood_far.h5` — stronger shift. Used in "OOD-far" cells. Errors are larger;
99
+ the trust signal stays informative (AUROC ≥ 0.65) and is the main argument
100
+ for the trust-gated fallback (Mode 2).
101
+
102
+ ## Quick start
103
+
104
+ ```python
105
+ import h5py
106
+
107
+ with h5py.File("oregonator/oregonator_test.h5", "r") as f:
108
+ states = f["states"] # (N, T, 2, 256, 256), float32
109
+ params = f["params"] # (N, 4) IC + physics params
110
+ seeds = f["seeds"] # (N,)
111
+ ic_types= f["ic_types"] # (N,) spiral / target / random
112
+ print(states.shape, states.dtype)
113
+ snapshot_u = states[0, 40, 0] # u-concentration of traj 0 at t=40
114
+
115
+ with h5py.File("ball3d/ball3d_test.h5", "r") as f:
116
+ states = f["states"][:] # (200, 101, 9)
117
+ ```
118
+
119
+ Euler trajectories live under per-trajectory groups inside the file; iterate
120
+ keys to enumerate.
121
+
122
+ ## Reproducing splits
123
+
124
+ Each split is defined by a base seed offset (see `dataset_config.json`) so
125
+ splits don't share initial conditions and can be regenerated bit-for-bit:
126
+
127
+ | split | seed offset |
128
+ |----------|------------:|
129
+ | train | 0 |
130
+ | val | 100 000 |
131
+ | test | 200 000 |
132
+ | ood_near | 300 000 |
133
+ | ood_far | 400 000 |
134
+
135
+ ## Intended use
136
+
137
+ - Benchmarking neural surrogates that predict any horizon in a single forward
138
+ pass.
139
+ - Studying label-free uncertainty / trust-signal methods for physics models.
140
+ - Cross-system generalization studies (one set of trajectories per env, same
141
+ splits across all three).
142
+
143
+ ## Citation
144
+
145
+ If you use these datasets please cite:
146
+
147
+ ```
148
+ @misc{hybrid_neural_world_models_2026,
149
+ title = {Hybrid Neural World Models for Physical Dynamics},
150
+ author = {Lakshmanan, Pranav and Chopra, Paras},
151
+ year = {2026},
152
+ }
153
+ ```
154
+
155
+ ## Contact
156
+
157
+ [lossfunk](https://x.com/lossfunk) — open an issue on the repo or DM on X.