Fall 2026

Fall 2026 · 02

Fly Connectome Processor

A spiking network built from the male fruit fly’s real wiring, trained on one behavior with that wiring held fixed, then cut down to the neurons the behavior cannot spare.

Yusuf Kusibati, with ChipFab at R.A.M. Engineering

The question

Janelia, Cambridge, the MRC Laboratory of Molecular Biology, and Google Research mapped every neuron in a male fruit fly’s brain and nerve cord, and the connections between them. That map is MaleCNS. It does not say how fast each neuron reacts or how strong each connection is, so the diagram does not run by itself.

The project trains a spiking network whose neurons and synapses come from that map, on one fly behavior. Training is allowed to learn only the settings the map leaves out: one set per cell type, covering how fast that type responds, how easily it fires, and a scale on its connections. Which neurons connect, and whether a connection is excitatory or inhibitory, stay fixed. The sign comes from the neuron’s predicted neurotransmitter.

The hard part is how small that circuit can get while it is still the fly’s circuit. A tiny network can be trained to do the job if every weight is free, and then the wiring meant nothing. If nothing is allowed to change, the full connectome does not fit on a small chip. AI@UNC owns the training and the shrinking. ChipFab, at R.A.M. Engineering, owns the chip the small circuit is supposed to run on.

Four questions organize the work. Can MaleCNS wiring, with only those missing settings learned, reproduce one behavior? How few real fly neurons does that behavior still require? Does the small circuit still work on fixed-point FPGA neurons and on physical leaky integrate-and-fire neurons that vary from one another? And does the real wiring learn faster, shrink further, or tolerate that hardware better than scrambled wiring or a standard network of the same size?

The pipeline

The model is a network of leaky integrate-and-fire neurons. There is no pretrained model to download. Google’s contribution to MaleCNS was the tracing. The dataset is a map.

  1. Build the sparse network in PyTorch from MaleCNS, on the lab GPUs. The first check is to reproduce the published untrained results of Shiu and colleagues from 2024, which predicted feeding and grooming circuits later confirmed in real flies.
  2. Train the full network on one behavior. Targets are measurements from real flies. The methods on the table are surrogate-gradient training and gradient-free search such as CMA-ES.
  3. Shrink to the smallest set of real fly neurons that still produces the behavior. One route switches neurons off one at a time. The other gives each neuron a keep-or-drop switch and penalizes keeping too many. The small circuit is then retrained to match the full one. Only real neurons and real connections are allowed, and signs stay put.
  4. Harden the small circuit by retraining with the hardware’s limits in the loop: fixed-point rounding, a cap on connections per neuron, and the measured variation of ChipFab’s physical neurons.
  5. Export the circuit and the spikes it should produce, for ChipFab to run.

The opposite order is part of the experiment too: cut a small circuit out first, then train only that. It is cheaper, and it can miss neurons that matter only in the full network. Comparing the two orders is itself a result.

Earlier work sits next to this and does not do the same thing. Shiu and colleagues simulated the whole female fly brain with untrained LIF neurons. Lappalainen and colleagues trained fixed connectome wiring on a vision task, in a network that does not spike. A Sandia group ran the whole female brain on Loihi 2, untrained. Eon Systems connected the Shiu model to a simulated body, with many of the brain-to-body links set by hand. Community simulators can train MaleCNS networks or replay the Shiu model on a GPU. None of those combine trained spiking MaleCNS wiring, a shrink to real neurons, and a run on hardware the team builds.

The fall behavior

Taste to feeding comes first. Sugar and bitter taste neurons are the input. MN9, the proboscis motor neurons, is the output. The curves to match are the Shiu and colleagues 2024 responses, including bitter input suppressing feeding. Feeding is first because those neurons spike and the published data is the strongest.

Looming to escape is the spring behavior. LC4 and LPLC2 looming detectors are driven directly, skipping the early visual system, because most of that system uses graded signals rather than spikes. The outputs are the giant fiber and its targets in the nerve cord, matched to von Reyn and colleagues 2014 and Ache and colleagues 2019.

A later stretch goal is odor learning through the mushroom body. That was scoped as a second-year question, not a fall deliverable.

ChipFab

ChipFab builds a neuromorphic processor on an FPGA, plus a few physical leaky integrate-and-fire circuits for the neurons that matter most. Spikes move between FPGA cores. Some neurons have thousands of connections. The FPGA run is supposed to match the GPU spikes, and the analog neurons have to meet the digital logic. The scope that keeps this buildable is one or two behaviors, circuits of a few thousand neurons, 4 to 8 FPGA cores, and a handful of physical neurons.

AI@UNC hands over a circuit and the spikes it should emit. ChipFab hands back the limits of the chip and measurements of the physical neurons, which go into the hardening step.

The comparison

The same pipeline runs on three networks of the same size. One uses the real fly wiring. One is that circuit randomly rewired, keeping each neuron’s number of connections and its sign. One is a standard artificial network of the same size. The question is whether the real wiring is any better at learning the behavior, surviving the shrink, or tolerating the chip.