The connectome is the policy

Freeze the fly's wiring.
Train nothing inside.
Watch it walk.

THE CONNECTOME, WALKING · 2.0 CM/S COMMAND · UNSEEN POSTURE · 10 S · NO SELECTION
THE BODY · MuJoCo flybody59 torques at 25 Hz
closed loop · a new reference snippet every 3 s
THE BRAIN · live neuron activity4,179 FlyWire cells
drag to rotate · click then scroll to zoom · double-click resets
backdrop 45,000 of 139,255 neurons · descending pulses to a sketched VNC
cell state
frame 000/600 · 0.00 s · snippet 1/8
COLOUR NEURONS BY
SHOW
reference drive (fwd · lat · yaw)
…
forward drive command
vfwdtrace
population |Δstate|
…
tracking return, cumulative
…
59 joint torques this frame · head, abdomen, halteres, six legsread from 1,303 DN cells through one linear map

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.

BANC · 22,688 NEURONS · sensory → brain → descending → VNC → motorhover any neuron
OBSERVATION
POPULATIONS

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.

Central Complex · input side
2,876

cells with cell_class = CX, spanning 230 cell types. Every observation is written here and nowhere else.

Descending Neurons · output side
1,303

cells with super_class = descending. They receive no observation. Their state is the only input to the torque readout.

340,348 signed synapses, by block
blocksynapsesexcitatoryinhibitory
CX → CX300,464163,493136,971
CX → DN the bridge784657127
DN → CX35833721
DN → DN38,74225,78212,960
total340,348190,269150,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 CX-DN SUBGRAPH in the whole FlyWire braindrag to rotate
teal CX 2,876 · amber DN 1,303 · lines: 15,000 strongest of 340,348 synapses, teal excitatory, red inhibitory
positions: FlyWire soma coordinates, 4 nm × 4 nm × 40 nm voxels

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.

observation 137-D per step type-tied read-in one map per CX type frozen CX-DN connectome CX · 2,876 DN · 1,303 340,348 signed synapses · K = 4 rounds readout W linear, no ReLU DN state → torque 59 torques MuJoCo flybody closed loop TRAINED TRAINED FROZEN

Forward pass

1
Mk[v] = Σu→v Wuv Hk[u]
Gather. Each cell sums the states of its presynaptic cells, weighted by the frozen signed synapse. One sparse multiply over 340,348 edges.
2
ck[v] = fψ( Mk[v], ηv )
Propose. A small MLP, shared by every cell, turns the message and the cell's own descriptor ηv into a candidate state.
3
zk[v] = σ( gψ( Mk[v], ηv, Hk[v] ) )
Gate. A linear gate decides how much of the candidate to accept.
4
Hk+1[v] = (1 − zk[v]) ⊙ Hk[v] + zk[v] ⊙ ck[v]
Update. Old state and candidate are mixed, then the encoded observation is re-injected into the CX cells. Repeat for K = 4 rounds.
5
â = Wo · pool( HK[DN] ) + bo
Read out. Each DN cell's C channels pool to one number, and one linear map turns the 1,303 numbers into 59 torques. No nonlinearity anywhere in the readout.

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.

Where the 226,857 base parameters live

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.

ONE OBSERVATION, FOUR HOPS · frame 60 of the rolloutround 0
watch the state leave the CX block and reach the DN cells one synapse per round
ROUND colour: cell state after that round · lines: 15,000 strongest synapses

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.

N = 10k · Superfly vs random null
−0.023 ± 0.004
paired gap in val MSE, 5 of 5 seeds, p < 0.001
N = 10k · means
MLP 0.139 · SF 0.179 · null 0.201
± 0.012 · ± 0.023 · ± 0.019
N = 30k · means
MLP 0.112 · SF 0.151 · null 0.164
± 0.010 · ± 0.022 · ± 0.016 · wiring ahead in 3 of 5 seeds
Paired difference per seed, random null minus Superfly

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.

TUNING MAPS on the trained checkpoint · 6,000 frames of the walking datasetdrag to rotate
hover a cell for its tuning

POPULATION RASTER · the same 600-frame rollout as the replayclick to seek
yaw command
CX · 420 most dynamic cells, grouped by typeDN · 240 most dynamic cells

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.

Superfly · CX-DN wiringreturn … · val MSE 0.126
MLP · hidden 244return … · val MSE 0.055
random subgraph nullreturn … · val MSE 0.131
no message passing nullreturn … · val MSE 0.978

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.

59 ACTUATORS OVER 600 FRAMES · Superfly rolloutclick to seek
forward drive

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.