HomeThe New IntelligenceDigital Fruit Flies Avoid 'Catastrophic Forgetting' by Refusing to Learn

Digital Fruit Flies Avoid 'Catastrophic Forgetting' by Refusing to Learn

A fly-inspired network never forgets an odor. The reason is that it barely learns.

Share
The New Intelligence · Explore this series
September 10, 2026
Key Takeaways
  • A fly-inspired spiking network resists catastrophic forgetting by freezing almost every weight.
  • Only output weights train, so no class can overwrite another.
  • It learns in three presentations where backpropagation needs about seventy.

A fruit fly smells something, and about a hundred of its neurons go quiet.

That is roughly the shape of the trick. In the mushroom body, the paired structure where a fly stores what it has learned about odors, sit around 2,000 Kenyon cells per hemisphere. Each one samples input from a small, apparently random handful of the fifty or so projection neuron types carrying signal up from the antenna.

A Columbia group including Richard Axel, who shared a Nobel Prize in 2004 for working out how the sense of smell is wired, traced 200 of those cells in 2013 and found no organizing principle at all: the wiring showed "no discernible organization with respect to their odour tuning, anatomic features or developmental origins."

Then one enormous inhibitory neuron, the anterior paired lateral cell, one per hemisphere, shouts down about 95 percent of the Kenyon cells. What survives is a sparse pattern, five percent of the population, different for every smell. A bar code, in a way.

In 2014 Andrew Lin, Gero Miesenböck and their colleagues at Oxford's Centre for Neural Circuits and Behaviour cut the feedback loop between the Kenyon cells and the APL neuron and watched what happened to the animal. Disrupting that loop, they reported, "decreased the sparseness of Kenyon cell odor responses, increased inter-odor correlations and prevented flies from learning to discriminate similar, but not dissimilar, odors."

Break the silence and the fly can still tell vinegar from smoke; it can no longer tell one alcohol from its near neighbor.

A Silicon Fly

Kevin Max and Yang Shen, both at the Okinawa Institute of Science and Technology, have built a spiking neural network out of that arrangement and called it Spi-Fly. Shen brings an unusual pedigree to it: she was first author, at Cold Spring Harbor Laboratory with Saket Navlakha and with Sanjoy Dasgupta at UC San Diego, of the 2023 model that turned the fly's mushroom body into a defense against catastrophic forgetting, and which Spi-Fly builds on directly. Spi-Fly is that model carried across the world and rebuilt for silicon.

Catastrophic forgetting - illustration showing the Spi-fly model.
Spi-Fly model, inspired by the fly olfactory circuit. (a) Biological circuit: ORNs → PNs (normalized by LNs) → sparse random connections to Kenyon cells (KCs) → APL provides global inhibition, leaving ~5% of KCs active → KCs connect to MBONs, where associative learning occurs. (b1–b2) Spi-Fly model: input layer (LIF-encoded spikes) connects sparsely to a larger hidden layer; local lateral inhibition (not a central APL) produces a sparse ~5% active "bar code"; learning strengthens weights from active hidden neurons to the corresponding output neuron (b1 and b2 show two different inputs mapping to two different outputs). Credit; Shen, Max. More illustrations can be found in the paper.

The architecture is quite simple. Seventy-two sensor inputs (or five, on the second dataset) fan out to a hidden layer of a thousand neurons through connections that are random, sparse, and permanently frozen. Mutual inhibition among those thousand leaves about five percent firing. Only the wires from that surviving five percent to a bank of output neurons are ever allowed to change. Each odor class gets an output neuron entirely to itself.

The results were reported in Neuromorphic Computing and Engineering in August.

On a gas sensor dataset of ten industrial compounds, Spi-Fly reached its best accuracy after three presentations of each odor. Backpropagation through time, the standard method for training a network that unfolds in time, needed about seventy to get there.

Key figure

3 vs 70

Presentations of each odor Spi-Fly needed to reach peak accuracy on the gas sensor task, against about 70 for backpropagation through time.

Train Spi-Fly on two odor classes, then two more, then two more, testing each time on everything it has seen, and it holds. Backpropagation, run through the same gauntlet, collapses to barely above chance. Elastic weight consolidation, the best-known fix for exactly this problem, did not rescue it.

That is catastrophic forgetting, and Spi-Fly is immune to it.

Catastrophic forgetting

When a neural network learns a new task, the same weights that stored the old task get overwritten, and the old skill degrades sharply. It is the central obstacle to machines that learn continuously rather than in one training run, and the reason most AI systems are trained once and then frozen.

Nothing in the network can interfere with anything else. Learning class 4 adjusts only the weights leading to output neuron 4. Output neuron 1 is untouched, by construction, because there is no shared plastic parameter for the new lesson to overwrite. Max and Shen say so without embarrassment: "learning of one class therefore does not change weights responsible for identification of another class."

"This is expected," they write, "since the Spi-Fly model does not perform representation learning as BPTT (there is no learning of the input-to-hidden weights)."

This is expected, since the Spi-Fly model does not perform representation learning as BPTT (there is no learning of the input-to-hidden weights).

Kevin Max and Yang Shen, Okinawa Institute of Science and Technology

The first layer never trains. It is a random projection that was fixed before the first odor arrived and stays fixed after the last one, so there is nothing in it for experience to improve. On the synthetic Drosophila dataset, Spi-Fly plateaus at 58.9 percent and stays there no matter how much more data you feed it. Backpropagation, slow and forgetful, climbs past it to 83.9.

And a Gaussian Naive Bayes classifier, a method a statistics student meets in about week three, scores 93.9 on the same task.

Key figure

58.9 vs 93.9

Spi-Fly's plateau on the synthetic dataset, against a textbook Gaussian Naive Bayes classifier on the same task.

The authors give a fair reason for it: the offline classifiers see the whole dataset at once and are not obliged to treat time as an input dimension.

This does not mean that copying a fly beats conventional machine learning at telling smells apart. What has been shown is that a network which almost never changes learns fast and does not forget, which is a different and more interesting claim, which belongs to a longer argument about whether brains compute the way software does.

Immunity to forgetting and inability to improve are one property, examined from either end.

Two cautions

The first is that nothing here has smelled anything. Spi-Fly ran entirely in simulation, in PyTorch, on prerecorded sensor archives and on synthetic traces generated from the authors' own earlier model. No neuromorphic chip was involved and no live sensor sampled any air. The paper's looks forward: "We plan to implement Spi-Fly on our neuromorphic olfactory sensing system to test its performance under real-life conditions."

The test sets are also small: 40 samples on the gas sensor task, 90 on the synthetic one. On 40 samples a single misclassification moves the score by 2.5 points, which is a useful thing to hold in mind next to a figure quoted to one decimal place.

The second caution comes from Thomas Cleland, professor of psychology at Cornell, who co-designed the EPL net that Spi-Fly benchmarks itself against and beats. He told Ars Technica that the two models "are based on different layers of the olfactory system and are built for different noise models," his EPL net drawn from the mammalian olfactory bulb rather than the insect mushroom body. He is not a disinterested party. He is also the person best placed to say it, and the comparison is the weakest link in the paper.

Max, for his part, is candid about the ceiling. Asked how many odors his model could hold, he told the same reporter it should manage "a couple hundred," depending on how similar they are to each other. That is a long way from never forgetting anything.

More on brain research

A Brain Cell That Always Knows Which Way You're Facing

Scientists found a neuron that tracks your direction whether you're sitting still or running–and losing it may explain Alzheimer's disorientation.

We tend to treat catastrophic forgetting as a bug awaiting a smarter optimizer. Spi-Fly suggests it may be a price, and that the currency it is paid in is plasticity. You can build a system that holds everything it has been told, provided you build one that cannot get better at holding it. The fly, working with 2,000 cells and no gradient descent, seems to have taken that bargain a very long time ago and to be doing perfectly well on the terms.

Whether the bargain is worth taking in silicon is an engineering question, and it is unanswered, because nobody has yet run this on a chip. But the shape of it is now clear enough to argue about, which is more than most brain-inspired architectures manage.


Sources

Fact Check: Claim-by-Claim Verification Verified

Every claim below describes the article as you are reading it. Claims were extracted independently and checked against the full text of the primary paper. Both verbatim neuroscience quotations were matched against the original journal articles, and the article's central claim, that Spi-Fly resists catastrophic forgetting because its first layer never trains, is stated by the authors themselves.

1 Supported
Kevin Max and Yang Shen, both at the Okinawa Institute of Science and Technology, built a spiking neural network called Spi-Fly, reported in Neuromorphic Computing and Engineering in August.
The paper, "Few-shot, continual learning for spiking neuromorphic olfaction", carries exactly two authors and one affiliation line, OIST, verified from the per-author affiliation block rather than the acknowledgments. Published 24 August 2026.
2 Supported
The fly mushroom body holds around 2,000 Kenyon cells per hemisphere, each sampling a random handful of about fifty projection neuron types, with one anterior paired lateral neuron silencing roughly 95 percent of them.
Standard Drosophila mushroom body anatomy, consistent with the primary paper's own description of the circuit it models.
3 Supported
Caron, Ruta, Abbott and Axel traced 200 Kenyon cells in 2013 and found the wiring showed "no discernible organization with respect to their odour tuning, anatomic features or developmental origins."
Quotation matched verbatim against Caron et al., Nature 497:113-117 (2013). The UK spelling "odour" is the journal's own and is preserved inside the quotation.
4 Supported
Lin, Miesenböck and colleagues reported in 2014 that disrupting the Kenyon cell to APL feedback loop "decreased the sparseness of Kenyon cell odor responses, increased inter-odor correlations and prevented flies from learning to discriminate similar, but not dissimilar, odors."
Quotation matched verbatim against Lin et al., Nature Neuroscience 17:559-568 (2014).
5 Supported
Yang Shen was first author of the 2023 fly-inspired model of catastrophic forgetting that Spi-Fly builds on, with Sanjoy Dasgupta and Saket Navlakha.
Shen, Dasgupta & Navlakha, Neural Computation 35:1797-1819 (2023), cited by the Spi-Fly paper as its direct precursor.
6 Supported
Spi-Fly reached best accuracy after three presentations of each odor on the gas sensor dataset, against about seventy for backpropagation through time.
Reported in the paper's few-shot results. The gas sensor task uses ten industrial compounds and 72 sensor inputs, as stated.
7 Supported
Under sequential training on pairs of odor classes, Spi-Fly holds its accuracy while backpropagation collapses to barely above chance, and elastic weight consolidation did not rescue it.
Reported in the paper's continual-learning experiment. The EWC finding is confined to backpropagation in this specific experiment and the article states it that way, not as a general verdict on EWC.
8 Supported
The authors write that "learning of one class therefore does not change weights responsible for identification of another class," and that "this is expected, since the Spi-Fly model does not perform representation learning as BPTT (there is no learning of the input-to-hidden weights)."
Both quotations matched verbatim against the paper's full text.
9 Supported
On the synthetic Drosophila dataset Spi-Fly plateaus at 58.9 percent, backpropagation reaches 83.9, and a Gaussian Naive Bayes classifier scores 93.9.
All three figures appear in the paper. The article attaches them to the synthetic dataset only, and separately notes the authors' own explanation that the offline classifiers see the whole dataset at once.
10 Supported
Spi-Fly ran entirely in simulation in PyTorch, on prerecorded sensor archives and synthetic traces, with no neuromorphic chip and no live sensor involved. The paper states: "we plan to implement Spi-Fly on our neuromorphic olfactory sensing system to test its performance under real-life conditions."
Quotation verbatim from the paper's discussion. The future tense is the paper's own.
11 Supported
The test sets are 40 samples on the gas sensor task and 90 on the synthetic one.
Stated in the paper's methods. The article's arithmetic note, that one misclassification in 40 moves the score 2.5 points, is correct.
12 Supported
Thomas Cleland, professor of psychology at Cornell and co-designer of the EPL net, told Ars Technica the two models "are based on different layers of the olfactory system and are built for different noise models." Kevin Max told the same reporter his model should manage "a couple hundred" odors.
Both are email quotes obtained by the reporter and published in Ars Technica, 3 September 2026. Cleland's co-authorship of the EPL net is confirmed by Imam & Cleland (2020), and the article states plainly that he is not a disinterested party.
Share
Related Articles
Why We Can Never Prove That Someone Else is Conscious

'Rival' scientists use category theory to show that while 'shapes' of experiences might be matched across minds, we can never observe the feeling itself.

AI Consciousness Is Unlikely, Says Neuroscientist Anil Seth

Neuroscientist Anil Seth argues AI consciousness is unlikely without biology. His TED talk lands amid a widening debate over conscious AI, not intuition.

AI In Science Connects the Dots, But Only In Fields That Are Fragmented

An analysis of 80 million papers shows AI boosts originality where knowledge is scattered and connections are weak, but contributes little novelty in structured science.

"Keep Humanity Safe From AI," Urges Pope Leo XIV

Pope Leo XIV's first encyclical reaches the same verdict on AI as the labs building it, then parts ways over the meaning of human limits.