A fruit fly's brain answers Spanish questions, and I check whether its wiring is what matters.

The thing choosing the answers is the real MaleCNS v1.0 connectome: 166,700 neurons and 25,582,938 directed edges, published by FlyEM. The prompt is stepped through that measured wiring, and the answer is read out of the activity of the fly's own neurons. Then the same experiment runs three times more on graphs that are not the fly's, to see if any of it matters.

166,700 neurons 25,582,938 edges 124,177,617 contacts 167 tests passing

The answer

The fly learns the task. Take the edges away and it cannot, which says the recurrence is doing real work. But swapping in a shuffled or random graph of the same size changes nothing measurable, so the specific wiring of this fly is not what carries the information.

arm score spread final epoch
intact (the real connectome) 87.7% 1.8% 78.1%
shuffled relabelling 88.2% 2.3% 80.2%
degree matched random graph 87.0% 1.9% 81.4%
no edges 21.6% 0.0% 21.6%

40 epochs, 5 seeds, paired per seed, score is the mean of the last 10 epochs. The majority class baseline is 26.8%, so the edge free control sits below it and every connected arm sits far above.

Read the per control numbers, not the best of. Against each control separately the real connectome is inside the noise: 0.5 points behind the shuffle and 0.7 points ahead of the random graph, against spreads of 2.1 and 1.7. It led the best control on 0 of 5 seeds. The best control column is a maximum over two noisy arms, so it is biased against intact, and being behind it is not evidence that the real wiring is worse.

Watch it run

Both views below are live in your browser, and both drive themselves. They run on synthetic drive at the measured magnitudes, because the brain service that steps the real connectome is a Python process and cannot be hosted here. The full local setup runs the real thing.

The fly reads the question, picks a card, flies to the one it chose and plants its forelegs on it. Four questions loop.
All 166,700 neurons at their measured positions. Cyan is a soma. Amber is a neuron firing in the current frame.

139,668 of the 166,700 points are measured soma positions from the annotations. The rest are filled from a group centroid, and the view says so rather than implying every point is measured.

What this is not

How it works

Choosing

Four answer pools are disjoint groups of real neurons. The prompt is encoded, the connectome is settled for six recurrent steps, and the answer is whichever pool scores highest, each pool's score being a learned weighted sum over its own neurons. There is no classifier outside the brain.

Learning

117,800 real connectome edges carry a multiplicative scale on their anatomical weight. Those scales are the trained parameters, so the synapses that change are real synapses onto real neurons. The readout is weighted rather than averaged because an equal weight mean over a pool measured only 37.1% linearly separable against 100% for the same neurons read with learned weights.

Two readouts

A second, older readout keeps the graph frozen and learns in a layer beside it. It reaches 100% on the 97 challenges and it is the honest control for this one: in the frozen design the readout can absorb any weakness in the wiring, so the wiring question can only be asked once the learning is inside the connectome.

Compute

The recurrence runs on the GPU, 26x faster than the CPU path at 5.2 ms per six step settle against 136 ms. The accelerator is gated against the CPU reference before any figure is read, which is how a defect in it was found rather than published.

Get it

The notebook downloads the connectome from the public Source Coop bucket, checks the source digests, builds the graph, gates the accelerator, and runs the four arm comparison. It reuses the project's own modules rather than a copy, so the numbers it reports come from the code the test suite covers.

Honest about the middle

Three things went wrong here and all three are in the repository rather than tidied away. The first wiring claim came from a readout too weak to see the answer, so the comparison was measuring the readout. The second came from reading a single epoch of a single seed, where the same run says the opposite if you stop at epoch 10, 20 or 30 instead of 15. The third was a real bug in the accelerated path: a cupyx sparse matvec was renumbering the uploaded control matrix in place, and because the trainer writes weights by position, the GPU trained a matrix the CPU never had. It agreed to 3e-07 on an untrained brain and diverged by 6e-01 after six steps, so it passed the obvious test and corrupted exactly the comparison being run. That one is fixed, pinned by a test that fails on the old code, and the equivalence gate now runs before any number is read.