Take a slice of real wiring from a fruit fly's brain - mapped connection by connection - and use it as the scaffold for a neural network. It beats a size-matched random network only at what that brain region evolved to do. Pick a region, pick a task, and watch it happen.
Evolution spent hundreds of millions of years wiring circuits that solve hard problems with tiny nervous systems. We convert those wiring diagrams directly into recurrent networks - one neuron per unit, one synapse per allowed connection - and ask a sharp question the field had skipped: does the specific biological wiring beat a random wiring of the same size, in the same model, on the same task?
Each biological neuron becomes one recurrent unit; each directed synapse becomes an allowed connection in Wrec. The state evolves as a recurrent update - the connectome is the substrate; only the input, output and (sometimes) the edge weights are trained.
Every connectome result is matched against a network with the same neurons, same edge count, same optimizer, same everything - only the wiring is randomized. That isolates the biology from recurrence, density and parameter count.
A recurrent ring that holds "which way am I facing" and integrates self-motion into a home vector.
Sparse Kenyon-cell coding binds a stimulus to a value and recalls it later without interference.
Layered motion detectors turn a swarm of moving pixels into a clean estimate of self-motion.
This is the whole thesis in one control. Choose a brain region, choose a task, and run the head-to-head: the connectome versus a size-matched random network. The bars and the verdict are the real logged results. The advantage lights up green on the native diagonal and goes flat or red everywhere else.
real logged data Numbers are read from the project's result files; every cell reports the real connectome-vs-random advantage and raw scores from the project's result files (published as Figure 1).
The central complex is a ring of neurons where a single bump of activity marks heading, sweeping around the ring as the fly turns. Take the controls below: steer a fly, watch the bump rotate and a home vector accumulate - then scramble the wiring and watch the compass drift.
Hold ← → to turn, ↑ to walk (or drag on the arena). Both a connectome ring and a random ring track your heading - watch their estimates of "home" drift apart.
We froze the connectome's recurrent circuit and let only its inputs and outputs learn, so any advantage has to come from the wiring itself. On path integration - the exact job this circuit evolved to do - the real connectome tracked heading to about 1.09° and beat every degree-matched control, with all six rewirings strictly worse and zero overlap. Shuffling connections while keeping each neuron's partner-count destroys the gain, pinning the advantage on topology, not cell counts.
The mushroom body learns "this smell meant food, that one meant a shock." Feed the network stimulus→value pairs, then quiz it. A network wired like a real fly recalls faster and clings to old memories more stubbornly than a same-sized random tangle.
Bind each key to a value, then click a key to query. Both models must return the value they were shown. The connectome peaks sharply on the right answer; the random control is fuzzier and sometimes wrong.
On the standard associative-recall benchmark used to explain the attention-vs-recurrent gap, the full mushroom body (14,025 neurons) reaches 0.995 - essentially the attention ceiling - and beats size-matched random by ~9 points. Shuffling the weights barely dents it; randomizing which neurons connect erases it. The advantage is the topology.
An odor is paired with reward. Midway, the rule flips - the same odor now signals punishment. A good associative memory must update the association, not just memorize the first label. Press play and watch the connectome re-learn the reversal.
Learn five odor→valence tasks in sequence, with no replay. Every model learns each task perfectly at first - the question is how much it forgets as new tasks pile on. A frozen connectome holds a stable, low-interference representation that a random matrix can't.
The optic lobe turns a swarm of moving pixels into a clean sense of which way the world is sliding past. Steer the scene over a fly-like hex sensor and watch the network read out self-motion - then throttle the training data and watch the connectome's advantage appear exactly where it matters.
Drag across the sensor (or auto-drift). Local motion on the hex lattice is pooled into an estimate of yaw and translation. The connectome reads it more accurately than a random twin - most of all when it has seen little data.
Slide down to starve both models of training examples.
Every comparison pits the connectome against a random network of identical size and sparsity, so any edge comes from the wiring pattern itself. In the biologically realistic sparse regime the fly's motion circuit wins (0.1317 vs 0.1425 RMSE), and the pruned connectome beats its random control at every data budget.
The same task runs on real DSEC event-camera footage shot from moving cars - the low-power, tight-compute corner where a sparse structural prior pays off most.
Three brain regions × five tasks. Each cell is the connectome's advantage over a matched-random control. Watch the diagonal light up - each region wins on the one task its circuit evolved to do - while the off-diagonal stays dark. That is a double dissociation.
Hover or tap any cell to read what it means. The gold-ringed cells are each region's native task.
The comparison is deliberately brutal: every real connectome is pitted against random networks matched on size, density and degree distribution, so the ~8-12% edge along the diagonal can only come from the specific pattern of connections. A diagonal that lights up while off-diagonal cells stay flat is the cleanest evidence that wiring carries task-specific computation rather than a generic boost.

We never tell the network where the fly's senses plug in. Input arrives smeared at random across all ~11,000 neurons. Yet as it learns the task, the input wiring migrates onto the precise projection neurons the real fly uses. Nobody pointed it there.
This is emergence you can measure: the input weights' ability to single out the true biological cells climbs from chance (AUC ≈ 0.5) to ≈ 0.6 during training, while a matched random-wired network never leaves chance (p = 3.6 × 10⁻⁵). Because the wiring is the only thing that differs, the pull toward biology has to come from the connectome's structure.
The closest prior work reported that wiring an AI's hidden layer like a fly's brain classifies images better. We reproduced it, added the one control it left out, and the special advantage on generic tasks disappeared. This sharpened the hypothesis instead of inflating it.
The original comparison changed two things at once - connectome-vs-random and recurrent-vs-feedforward - so its edge on CIFAR-10 couldn't be credited to the wiring alone. Put a random matrix in the exact same architecture and the connectome's advantage on generic image classification evaporates: a matched random-sparse network in fact edges it on both MNIST (0.967 vs 0.965) and CIFAR-10 (0.491 vs 0.468), and a dense trainable matrix beats them all. MNIST still reproduces cleanly (~97%); the underlying work is real. The lesson: a connectome helps only when the task matches the computation its circuitry evolved to perform.
Keep the exact wiring, permute the weights, and the win survives → the graph carries it, not the synaptic strengths.
Break the wiring - even keeping each neuron's degree - and it falls 9-16 points on MQAR.
Zero the recurrent path and it collapses (~0.12 on seq-MNIST), proving the recurrence is load-bearing.
Trainable helps the CX (tune one attractor); frozen helps MB continual (protect memories). The verdict tracks the task, not the region.
The fly is the smallest complete brain we can map. As wiring diagrams sharpen - mouse and monkey are arriving now, human is on the horizon - the same three circuits reappear at larger scale, each a candidate prior for the job it evolved to do. Drag through the scale.
A ring-attractor heading system for drones and edge robots that must localize and hold a course under a tight power budget, in GPS-denied settings - drift-free dead reckoning over long trajectories.
central complex → SLAM · odometryA sparse optic-flow prior for event-camera perception in autonomous vehicles and robots - fast, low-power motion estimation exactly where labeled data and energy are the binding constraints.
optic lobe → DSEC · collision avoidanceA forgetting-resistant recall module for chemical & hazard sensors and continual, on-device learning - updating from a handful of noisy labels without retraining from scratch.
mushroom body → few-shot · in-contextA library of evolved, task-specialized priors you compose and fine-tune - instead of hand-designing every module from scratch.
Whether this composes all the way to general intelligence is genuinely open. What is already defensible: mining evolved circuits can beat matched-random baselines on the tasks those circuits were built to solve - aimed squarely at the embodied, data-limited, low-power, continually-changing settings where today's large models are brittle or wasteful.