UncleStrawberryBear commited on
Commit
eeab0f4
·
verified ·
1 Parent(s): 60f26f9

Add Figure 5 Ant flat-ground and maze experiments

Browse files
README.md CHANGED
@@ -6,39 +6,50 @@ tags:
6
  - reinforcement-learning
7
  - drosophila
8
  - simulation
9
- pretty_name: FlyControl paper records — Figures 2–4 and S3–S6
10
  ---
11
- # FlyControl — paper data and provenance
12
 
13
- This is a private, author-review snapshot for **A Drosophila connectome prior enables adaptable embodied control**. It covers Figure 2, Figure 3, Figure 4, and Supplementary Figures S3–S6 from the final manuscript supplied on 2026-11-02. Figure 5 and Figure 6 are outside this snapshot.
14
 
15
- The manuscript identity is SHA-256 `cb7dac9a2c20305f6228c98766d7d0f361ce59c058e1e13b88bee59d38152a30`. The manuscript itself is not distributed here. The corresponding code is [FlyControl](https://github.com/THU-NeuroML/FlyControl/tree/1a49c33bf1e6eab17cb2953123e02ecc2549a5f4), revision `1a49c33bf1e6eab17cb2953123e02ecc2549a5f4`.
16
 
17
- Seven figure-specific archives contain numerical source tables, included episode results and traces, mechanism-analysis records, exact derived graphs, effective protocols, and the visual source assets needed by the main-figure panels. Large collections of small files are bundled without changing their contents. Checkpoints and loading instructions are in [FlyControl-models](https://huggingface.co/UncleStrawberryBear/FlyControl-models).
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
- | Paper item | Evidence / task | Checkpoint files |
20
- |---|---|---:|
21
- | Figure 2 | Terrain; Adult, MLP and ER, 20 seeds each | 60 |
22
- | Figure 3 | Turning; Adult/MLP, 24 seeds each, plus 24 Adult initial states | 72 |
23
- | Figure 4 | Speed; Adult/MLP, 20 seeds each | 40 |
24
- | S3 | Developmental direction; Adult/Larva, 6 seeds each | 12 |
25
- | S4 | Developmental speed; Adult/Larva, 6 seeds each | 12 |
26
- | S5 | BANC descending/motor readouts, 6 seeds each, initial and final | 24 |
27
- | S6 | BANC regional recovery, 3 seeds per readout | 6 |
28
 
29
- `archive_index.json` records each archive's size, SHA-256 and member count. `manifests/<figure>.jsonl` records every extracted path, size, SHA-256 and original local source. `figure_map.csv` maps the final paper numbering to historical directories: final S5/S6 correspond to historical `s06`/`s07`. No standalone S1/S2 archive is included in this requested snapshot.
30
 
31
- ## Contents and statistical units
32
 
33
- - Figures 2–4 retain the plot inputs, episode/seed tables, full comparison-family summaries, perturbation grids and selected mechanism histories. Figure 2 also includes the final corrected axis/surface and ER comparison tables. Figure 3 preserves the broader registered comparison data while checkpoint coverage is restricted to the plotted Adult/MLP cohort and the necessary initial Adult states.
34
- - S3 contains direction episodes and the full 22-comparison seed-level inference family, including the jointly corrected terrain endpoints. These supplemental policies are distinct from the main Figure 3 cohort.
35
- - S4 contains the full speed endpoint/seed tables and all 240 stored step/sine traces used by the displayed developmental analyses. Other rows in the endpoint table can reference historical trajectories outside this selected trace subset; `plot_trace_manifest.csv` enumerates the included traces.
36
- - S5 contains before/after BANC class sensitivity, per-window/per-state records, neuron annotations, and the 32 exact observed common histories. It does not require publishing all policies that originally generated those histories.
37
- - S6 contains all 1,890 analyzed stable recovery branch traces, 54 matched branch snapshots, unpushed neural references, the probe records, regional masks/edge fractions, and recorded quality-control summaries. The six recovery policies are supplied in the model repository.
38
 
39
- Training seed identifies the policy-level unit; evaluation seed identifies a repeated rollout or reset. Do not treat repeated trajectories as independent trained models. Preserve failure flags, partial durations and missing windows. Original raw and multiplicity-adjusted statistics are retained; use the stated family rather than recomputing correction over only significant/displayed rows.
40
 
41
- Column names retain the original units: `_s` seconds, `_mm` millimetres, `_mm_s` millimetres per second, `_rad` radians, `_deg` degrees, and `_hz` hertz. Statistics tables may contain an explicit `unit` field that takes precedence. Blank/NaN fields can mean unavailable or inapplicable measurements and must not be replaced by zero. NPZ contents and protocol JSON files retain the original task-specific variable names; this is a research archive, not a uniform supervised-learning table.
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  ## Download and extract
44
 
@@ -46,18 +57,12 @@ Column names retain the original units: `_s` seconds, `_mm` millimetres, `_mm_s`
46
  from huggingface_hub import snapshot_download
47
  data = snapshot_download(
48
  'UncleStrawberryBear/FlyControl-data', repo_type='dataset',
49
- allow_patterns=['README.md', 'archive_index.json', 'manifests/figure2.jsonl',
50
- 'archives/figure2.tar.gz', 'extract_data.py'])
51
  ```
52
 
53
  ```bash
54
- python /path/to/data-snapshot/extract_data.py --figure figure2 --output ./paper-data
55
  ```
56
 
57
- The extractor verifies the archive and every member checksum, rejects unsafe members, and preserves the recorded relative layout. Multiple figure archives can be extracted into the same directory. See `data/figure2/source_data`, `data/figure3/source_data`, and `data/figure4/source_data` for main-figure source tables. Supplemental locations appear in `figure_map.csv`; additional raw S5/S6 records live under `research/outputs/nmi_unified/`.
58
-
59
- Historical absolute paths inside original CSV/JSON records are provenance, not required machine locations. Use manifest paths after extraction; match trajectories or models by their SHA-256 identities. `source_aliases.jsonl` maps additional known original supplementary paths to included archive members. `plot_trace_manifest.csv` supplies the portable S4 trace paths. A historical path to an omitted exploratory run does not imply that run belongs in this snapshot.
60
-
61
- The archives retain exact FlyWire/Larva/BANC derived inputs; the upstream version manifests under `external_inputs/` identify their public sources. Use BANC release 626, as verified by the code's reproduction notes, rather than inferring a release from historical folder names. See `RIGHTS.md`.
62
-
63
- This is a private archival upload. Hash and coverage checks do not constitute a new full simulator reproduction of the paper. No DOI or public-release claim is made.
 
6
  - reinforcement-learning
7
  - drosophila
8
  - simulation
9
+ pretty_name: FlyControl paper data
10
  ---
11
+ # FlyControl data
12
 
13
+ Research records for **A Drosophila connectome prior enables adaptable embodied control**.
14
 
15
+ Code: [FlyControl](https://github.com/THU-NeuroML/FlyControl/tree/1a49c33bf1e6eab17cb2953123e02ecc2549a5f4).
16
 
17
+ | Figure | Experiment | Models |
18
+ |---|---|---|
19
+ | Figure 2 | Fly terrain locomotion | Adult, MLP and ER; 20 seeds each |
20
+ | Figure 3 | Fly turning control | Adult and MLP; 24 seeds each |
21
+ | Figure 4 | Fly speed control | Adult and MLP; 20 seeds each |
22
+ | Figure 5b–d, S7 | Ant flat ground and floor friction | Adult and MLP; 20 seeds each |
23
+ | Figure 5e | Ant U-Maze, Medium Maze and Large Maze | Seven controller families; 20 seeds per maze and family |
24
+ | Figure 5f–j | Ant Medium Maze trajectories and navigation | Adult and MLP; 20 seeds each |
25
+ | S3 | Developmental direction control | Adult and Larva; 6 seeds each |
26
+ | S4 | Developmental speed control | Adult and Larva; 6 seeds each |
27
+ | S5 | BANC descending and motor readouts | 6 seeds per readout; initial and final states |
28
+ | S6 | BANC regional recovery | 3 seeds per readout |
29
+ | S8 | Ant Large Maze trajectories, speed and route complexity | Seven controller families; 20 seeds each |
30
 
 
 
 
 
 
 
 
 
 
31
 
32
+ The seven Ant maze controller families are Adult connectome, MLP, GRU, LSTM, Transformer, Reservoir and Reservoir+RO. The Ant flat-ground MLP uses two 1,378-unit ReLU hidden layers.
33
 
34
+ The archives contain episode records, trajectories, figure source tables, statistical summaries and experimental inputs. Corresponding policies are in [FlyControl-models](https://huggingface.co/UncleStrawberryBear/FlyControl-models).
35
 
36
+ ## Figure 5, S7 and S8
 
 
 
 
37
 
38
+ `archives/figure5.tar.gz` contains:
39
 
40
+ - Ant flat ground: 4,000 evaluation episodes, motion endpoints and displacement trajectories from 40 policies.
41
+ - Floor friction: 4,000 episodes across four friction coefficients, with seed summaries for S7.
42
+ - Ant mazes: 42,000 evaluation episodes from 420 policies across U-Maze, Medium and Large mazes.
43
+ - Medium Maze: example trajectories, deadline curves, geodesic efficiency, route-turn groups and physical-failure records.
44
+ - Large Maze: seven example trajectories and speed records, route-stratified metrics and seed summaries for S8.
45
+ - Statistical source tables, including the 26- and 29-comparison families.
46
+ - Teacher-labelled training samples and an index mapping them to maze, controller, optimization seed and training stage.
47
+
48
+ Extracted files are under `data/figure5/`. Start with `experiment_map.csv`, `model_index.json`, `maze/episodes.csv`, `source_data/`, `S7/`, `S8/` and `training_labels_index.json`. Identical training-label files are stored once and referenced by checksum.
49
+
50
+ Maze training labels were generated using the GoalAnt teacher from [Farama-Antmaze-Dataset-Generation](https://github.com/LukaszSawala/Farama-Antmaze-Dataset-Generation/tree/fb253c9efbe2fa5ec256a6fc3f983ba33192d706), checkpoint SHA-256 `1b835cc5185756c5af8cd0720dae0e4895efcec48ee577c450d4a5a633fb953e`.
51
+
52
+ Optimization seed identifies the policy replicate; reset seed identifies an evaluation episode. Trajectory distances are in metres, time in seconds and velocity in metres per second. Each source table retains its original field names and units.
53
 
54
  ## Download and extract
55
 
 
57
  from huggingface_hub import snapshot_download
58
  data = snapshot_download(
59
  'UncleStrawberryBear/FlyControl-data', repo_type='dataset',
60
+ allow_patterns=['README.md', 'archive_index.json', 'extract_data.py',
61
+ 'manifests/figure5.jsonl', 'archives/figure5.tar.gz'])
62
  ```
63
 
64
  ```bash
65
+ python /path/to/data-snapshot/extract_data.py --figure figure5 --output ./paper-data
66
  ```
67
 
68
+ Use `figure2`, `figure3`, `figure4`, `S3`, `S4`, `S5` or `S6` to extract the other archives. `archive_index.json` lists archive sizes and checksums; `manifests/` lists member paths, source paths and SHA-256 values. The extractor verifies these checksums. `figure_map.csv` maps paper figures to their archived records. Source and licensing information is in `RIGHTS.md`.
 
 
 
 
 
 
archive_index.json CHANGED
@@ -6,7 +6,10 @@
6
  "S3",
7
  "S4",
8
  "S5",
9
- "S6"
 
 
 
10
  ],
11
  "archives": [
12
  {
@@ -57,6 +60,18 @@
57
  "bytes": 3406429927,
58
  "sha256": "7717995396c90d3da544aa0c510a46b918a8846ed834c006e2b06147ce6d8ab0",
59
  "members": 2092
 
 
 
 
 
 
 
 
 
 
 
 
60
  }
61
  ]
62
  }
 
6
  "S3",
7
  "S4",
8
  "S5",
9
+ "S6",
10
+ "figure5",
11
+ "S7",
12
+ "S8"
13
  ],
14
  "archives": [
15
  {
 
60
  "bytes": 3406429927,
61
  "sha256": "7717995396c90d3da544aa0c510a46b918a8846ed834c006e2b06147ce6d8ab0",
62
  "members": 2092
63
+ },
64
+ {
65
+ "paper_item": "figure5",
66
+ "includes": [
67
+ "Figure 5",
68
+ "Figure S7",
69
+ "Figure S8"
70
+ ],
71
+ "path": "archives/figure5.tar.gz",
72
+ "bytes": 974876471,
73
+ "sha256": "f15bd986490ef05016d166c0c6995161d74c599ca16c8d32335e69c927eb3440",
74
+ "members": 1709
75
  }
76
  ]
77
  }
archives/figure5.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f15bd986490ef05016d166c0c6995161d74c599ca16c8d32335e69c927eb3440
3
+ size 974876471
figure5_validation.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "maze_models": 420,
3
+ "maze_episodes": {
4
+ "umaze": 14000,
5
+ "medium": 14000,
6
+ "large": 14000
7
+ },
8
+ "flat_models": 40,
9
+ "flat_native_episodes": 4000,
10
+ "friction_episodes": 4000,
11
+ "unique_training_label_files": 162,
12
+ "archive_members": 1709,
13
+ "archive_verified": true,
14
+ "all_member_checksums_verified": true,
15
+ "S8_replay_models_verified": 7
16
+ }
figure_map.csv CHANGED
@@ -6,3 +6,6 @@ S3,archives/S3.tar.gz,S3/,12,data/supplementary/development
6
  S4,archives/S4.tar.gz,S4/,12,data/supplementary/development
7
  S5,archives/S5.tar.gz,S5/,24,data/supplementary/s06
8
  S6,archives/S6.tar.gz,S6/,6,data/supplementary/s07
 
 
 
 
6
  S4,archives/S4.tar.gz,S4/,12,data/supplementary/development
7
  S5,archives/S5.tar.gz,S5/,24,data/supplementary/s06
8
  S6,archives/S6.tar.gz,S6/,6,data/supplementary/s07
9
+ figure5,archives/figure5.tar.gz,figure5/,460,data/figure5
10
+ S7,archives/figure5.tar.gz,figure5/flat/,40,data/figure5/S7
11
+ S8,archives/figure5.tar.gz,figure5/large/,140,data/figure5/S8
manifests/figure5.jsonl ADDED
The diff for this file is too large to render. See raw diff