The fly's running sum of its own steps is held in synapse strengths, on four neuron types nobody has assigned a function
The problem. A fly that leaves food and wanders in the dark can walk straight back. To do that it must keep a running sum of every step it has taken: a vector pointing from the food to where it is now. The neurons that report each step are known: hΔB, whose activity bump sits at the column matching the direction the fly is currently moving. What adds those steps up over time has never been found.
Two ways to hold a running sum. One: a population of neurons keeps firing the current total, and adds each new step to it. For that to work the population must excite itself with a gain of almost exactly one, or the total leaks away. Every published model assumes this. Two: nothing keeps firing. Instead, each step makes hΔB strengthen the synapses it is currently using. After a walk, the pattern of synapse strengths across the columns is the sum. That needs no self-excitation, but it does need a signal that says "write now" while the fly walks and a signal that erases the store when the fly is back at food.
What the wiring rules out. No population in the fan-shaped body excites itself anywhere near strongly enough for option one. The best of about forty populations has a self-excitation gain of 0.14; every hΔ type, every PFN type, and every two-population loop is at 0.02 or less. Option one is out.
| self-excitation, cosine mode (an activity integrator needs ≈ 1) | gain |
|---|---|
| vΔA_a, the highest of ~40 populations | 0.14 |
| every hΔ, PFN, PFR, FR1 type | ≤ 0.02 |
| strongest two-population loops | < 0.01 |
Within-type synapses binned by column offset, normalised by total input, signed by transmitter. Same result in the hemibrain.
What the wiring points to. Option two needs hΔB to land on its target in the matching column, so that a step north strengthens the "north" synapses and nothing else. Four cell types with no known function, hΔH, hΔA, hΔI and hΔG, receive hΔB in exactly that way. The figure below shows what happens when a walk is written into one of them, and what happens in hΔJ, which receives more hΔB synapses than any of them but in two opposite columns, so that it cancels itself.
The write and erase signals are there too. Two dopamine cell types, FB4M and FB1H, contact every one of the store cells across all columns. They are themselves driven by the velocity neurons, so they are on while the fly moves and off when it stops: the "write now" signal. Their counterpart in the compass is ExR2, the dopamine neuron that gates compass learning by rotation speed. One octopamine neuron, OA-VPM3, driven by the mushroom body and reward tangentials, also contacts the store cells: the candidate for erasing the store at food.
| type | hΔB synapses | same column | dopamine (FB4M, FB1H) | octopamine (OA-VPM3) | sends to |
|---|---|---|---|---|---|
| hΔH (8 cells) | 1,010 | 82 % | 165 | 361 | FC2, PFL3 |
| hΔA (12) | 2,216 | 64 % | 1,098+ | 124 | PFL3, PFL2 |
| hΔI (17) | 3,575 | 48 % | 380+ | 72 | PFL3, PFL2 |
| hΔG (8) | 736 | 63 % | 134 | 113 | FC2 |
| hΔJ (31), rejected | 4,232 | 35 % (+28 % opposite) | 1,809 | 377 | FC2 |
MaleCNS synapse counts; every entry replicates in the hemibrain. "Same column" is the share of hΔB synapses landing at zero column offset.
How the store is read. There is no recall step. Each store cell fires as hΔB's drive times its synapse strength. hΔB is active whenever the fly moves, so as soon as it walks, the store's output across the columns is the stored pattern, and it goes straight to the goal neurons FC2 and the steering neurons PFL3. Walking home strengthens the opposite columns until the pattern is flat: that is arrival. What the readout points at, and why it has to be turned around before it can steer, is finding 3.
Why nobody has seen it. The memory is a set of synapse strengths, not a firing pattern. Imaging hΔB shows the current step, not the sum. Imaging the store cells at rest shows nothing, because nothing fires until hΔB drives them. A stored vector in a neighbouring fan-shaped-body system was recently found to be visible as cAMP but not as calcium (Gorko & Kim 2026), which is what this predicts here.
The simulation checks. An agent walking a random path, writing into each candidate through its measured wiring and reading out through its measured output path, retains 56 % to 86 % of the walk in hΔH, hΔA and hΔI; hΔJ retains 14 %. Only a running vector sum reproduces the fly's search behaviour in the standard assays; remembering the direction at the food or the distance walked does not. In closed loop, the agent returns to the food, provided the readout is turned around before steering.
| site | stored length, fraction of ideal |
|---|---|
| hΔH | 0.86 |
| hΔA | 0.76 |
| hΔI | 0.56 |
| hΔG | 0.45 |
| hΔJ | 0.14 |
How much of a random walk each site retains, given where hΔB's synapses land on it. Direction is recovered by all of them; in closed loop the readout, which is skewed toward the current heading because the store is read through hΔB's bump, self-corrects as the fly turns.
| strategy (Kim and Titova search assays) | search-centre error |
|---|---|
| running vector sum | 0.8 |
| random walk | 12.7 |
| remember direction at food | 26.8 |
| distance walked + last heading | 26.8 |
| closed loop (60 runs) | returned to food | closest approach |
|---|---|---|
| store, readout rotated 180° | 35 % | 1.1 |
| store, readout not rotated | 0 % | 10.3 |
| no memory | – | 6.8 |
What is not known. Nobody has recorded plasticity at these synapses, or dopamine or octopamine acting on them. The strengths can only grow, so an erase step is required and is the least supported part. During the outbound walk the store also pushes the goal layer to keep going, which is either useful for dispersal or needs to be gated. A fly standing still has no hΔB drive and so no readout.
What would settle it. Image hΔH or hΔA in a fly that is re-zeroing its home vector: the bump should grow with distance from the food and collapse at re-zero. Block dopamine or cAMP signalling in those cells: the fly should stop returning while hΔB and the compass stay intact. Silence OA-VPM3 while the fly feeds: its search afterwards should no longer be centred on the food.
Prior work. hΔB as the step signal (Lu 2022; Lyu 2022). Synaptic storage of a vector as an idea (Hulse 2021; Goulard 2023; Maimon & Abbott 2026), without a candidate cell. New here: activity storage ruled out for every population; the four candidate types and hΔJ's rejection; FB4M/FB1H and OA-VPM3 as the write and erase signals; the readout and closed-loop tests.
Wiring: two brainsStore: model-supportedPlasticity, erase: inferred
Sources: docs/exhaustive-search.md; data/derived/recurrence_modes.csv, fb_column_offsets.csv, synaptic_site_screen.csv, reward_inputs_trace.json; simulations/site_readout_error.py, strategy_discrimination.py, closed_loop_sites.py. Step-through animation of write and read.