The connectome is the policy
Freeze the fly's wiring.
Train nothing inside.
Watch it walk.
The whole pipeline, tagged
Pick an observation. Watch it enter the nervous system and reach the legs.
All 22,688 neurons of the Brain and Nerve Cord connectome at their real positions — the brain at one end, the ventral nerve cord with its three leg segments at the other. Every neuron carries its own tag: cell type, population, side, segment. Pulses run along the real population pathways, with traffic proportional to the measured synapse counts. Drag to rotate, scroll to zoom.
Positions and tags come from the BANC annotations; recipient counts from the model's 28 anatomical input routes; pulse traffic between populations is proportional to the measured synapse-count matrix over 2,222,379 edges, and pulse brightness follows the checkpoint's probe response at a full yaw command.
The circuit
Two measured populations, one narrow bridge.
The graph is an unedited subgraph of the FlyWire FAFB v783 reconstruction, fixed from biology before training. The Central Complex estimates heading. Descending neurons carry brain-to-leg commands. Cells in both causally affect walking and turning.
cells with cell_class = CX, spanning 230 cell types. Every observation is written here and nowhere else.
cells with super_class = descending. They receive no observation. Their state is the only input to the torque readout.
| block | synapses | excitatory | inhibitory |
|---|---|---|---|
| CX → CX | 300,464 | 163,493 | 136,971 |
| CX → DN the bridge | 784 | 657 | 127 |
| DN → CX | 358 | 337 | 21 |
| DN → DN | 38,742 | 25,782 | 12,960 |
| total | 340,348 | 190,269 | 150,079 |
Signs follow the (Nexc − Ninh) convention, weights range from −343 to +322. Only 784 synapses cross from CX into DN, so every torque the fly produces passes through that bridge. Block counts are computed from the frozen edge list that ships with the checkpoint.
The policy
Only two interfaces are learned. The wiring in between is the fly's.
A 137-D observation enters the CX cells through a type-tied read-in. State propagates for four rounds of gated message passing over the frozen adjacency. A linear readout of the DN cells emits 59 joint torques. The frozen graph is a pretrained backbone whose connectivity and signs come from the animal, not from the task.
Forward pass
Because the readout never sees the observation, any input signal that reaches the torques must pass through the frozen connections. With message passing off, the DN states are exactly zero, the readout emits a constant, and validation MSE is 0.9777, the variance of the targets. With it on, at the same read-in and budget, MSE is 0.1656, a 5.9× reduction attributable to the wiring alone.
Table 4 of the paper. The headline model swaps the observation encoder for the type-tied read-in, landing at 218,882. The frozen adjacency holds 1,020,696 numbers that are never trained.
The read-in follows the fly's cell types. Broadcasting erases them.
Cells of one fly neuron type share shape and connections across individuals. We therefore learn one projection from the 137-D observation for each of the 230 CX types and share it across all cells of that type. Broadcasting assigns every input cell the same encoded vector. The graph is still used, but the input interface ignores the type labels. Restoring the distinction is the single largest architectural lever we found.
Where the prior pays
The measured wiring beats a size-matched random wiring in every seed when data are scarce.
A structural prior should matter most when supervision is thin. We fixed a leakage bug in the low-data split: shuffling before subsampling had put near-identical frames from one sequence in both training and validation. We then re-ran five seeds. Within each seed, Superfly and both baselines used identical training and validation sets.
Best validation MSE per seed. Bars are mean ± s.d. over five seeds. N = 10k is the rebuttal table; N = 30k is the same protocol from runs/lowdata_v2. Only within-N comparisons are meaningful, since each N has its own validation split and budget.
The dense MLP remains the most accurate model at every N, and its margin grows with data. We read the sweep as evidence that the CX-DN graph is a useful low-data prior within the graph-policy family, not that it is globally superior to dense policies.
What the cells encode
A global speed gain, a localized hDelta steering code, and a turn signal that reaches the output without being handed to it.
We correlate each cell's activation with forward velocity, lateral velocity, and yaw command, under a control for input leakage. CX cells receive the observation, which contains the yaw command, so their turn tuning is partly trivial. DN cells receive no direct input, so their tuning is the clean test.
Forward speed is a diffuse gain.
Whole-network activation magnitude correlates about 0.46 with forward velocity, and roughly a third of all cells track it. There is no single speed population.
Lateral and yaw form a localized CX code.
Among 230 cell types under Benjamini-Hochberg FDR, the hDelta and fan-shaped-body families pass at q < 0.05 for lateral velocity and yaw, with |r| about 0.3.
The DN turn signal is computed, not echoed.
DN cells are more turn-tuned than the input-receiving CX cells (mean |r| 0.075 vs 0.055), the opposite of what leakage predicts. The signal is distributed across DNp20, DNp17, DNb07, and DNg families (|r| 0.23 to 0.28).
The textbook steering circuit is not recovered.
A permutation test against 3,000 size-matched random cell groups finds no stronger turn tuning in EPG, PFL3, or DNa02 than chance. A random 50-cell control correlates with yaw more strongly (0.075) than PFL3 (0.003) or EPG (0.040).
All probe analyses are correlational. They show which signals the representations carry, not that lesioning a cell changes behavior.
Rows are cells, columns are frames, colour is each cell's z-scored state (inferno, ±2.5 s.d.). Vertical bands that cross both blocks are population events; the yaw trace above them shows the turns they line up with. The vertical seams are snippet changes. The cursor follows the replay.
Closed loop
Four policies, eight held-out snippets, the same 600 steps.
Every model below starts from the same eight reference snippets, three seconds each, with different starting poses, speeds, and turns. Each policy drives its own next observation. Rendered on the CPU from the released checkpoints at 25 Hz; returns are the tracking reward summed over the 600 steps shown, one rollout each.
Eight snippets are a small sample: on the paper's three evaluation snippets the MLP has the higher mean return (68.1 vs 24.4, table above), so read these clips as a look at behaviour, not as a ranking. A cloned policy tracks the reference for one to two seconds and then drifts, which is why each snippet is cut at 3 s: closed-loop deployment is where covariate shift compounds, and on-policy fine-tuning is future work.
Each row is one joint torque the linear readout emits from the 1,303 DN cells, teal negative and amber positive. The horizontal banding is the rhythmic leg drive, periodic and phase-locked across actuators; the vertical seams are snippet changes. We do not claim a clean alternating tripod.
Compute is a substrate question, not a FLOPs question.
On parameters, the connectome reaches its accuracy with 220K trainable weights against 17M for the dense whole-brain graph model. On dense-GPU compute it is not cheaper, because four rounds over 340K edges dominate. Biological and neuromorphic hardware pay per sparse synaptic event, not per dense multiply-accumulate; the counts below measure the cost of our GPU simulation, not of the circuit.
All runs on one NVIDIA RTX 5090. Superfly trains at roughly 7 min per epoch in fp32; the MLP at roughly 40 s per epoch.