01 / THE FLY
Zoom into its brain
The mushroom body is involved in learning associations between odors and outcomes.
LEARNING · PREDICTION · EXPLANATION
Train a model of fly memory.
Change the spacing. Explore the mechanism.
Then compare with real flies.
THE EXPERIMENT AT A GLANCE
01 / THE FLY
The mushroom body is involved in learning associations between odors and outcomes.
02 / THE SELECTED CIRCUIT
The model represents γ1, α2 and α3. Measured wiring constrains its connections; neural recordings constrain its parameters.
03 / THE COMPUTATIONAL MODEL
Dopamine guides learning at odor-to-output connections (gold dots). Red lines show selected inhibitory feedback between modules.
Original teaching schematics, not anatomical reconstructions; locations and connections are simplified. Dashed gold lines indicate modulation of plasticity. Based on the Huang et al. (2024) model, constrained by Janelia hemibrain wiring. This demo does not simulate the entire fly or mushroom body.
From brain scans to explanation: explore the case study →TRAIN / BUILD THE ASSOCIATION
Repeat six rounds by default. Compare 1, 6 or 15 minutes at both pauses. Equal exposure; different spacing.
TEST / LOOK FOR A LASTING CHANGE
Measure the α3 output before training, then 5 minutes and 24 hours after training. These are test times, separate from the training pauses. The computer accelerates model time.
WHAT DOES THE GRAPH MEASURE?
We compare the same output neuron's odor-evoked firing rates, in spikes per second. A more negative value means a lower response to trained odor A relative to B.
The lasting response difference is our memory readout. It is not a score for fear, intelligence or observed avoidance.
“Suppressed” means this output fires less for A than for B. The odor is still detected; the whole brain is not switched off.
Make a prediction; the measurements stay hidden until you reveal them.
Train the circuit and see how its response to odor A
differs from its response to odor B.
Follow the “brake” from γ1 to the learning signal in α3.
OUTPUT WHEN ODOR A IS PRESENTED
Stronger outputIts output inhibits dopamine neurons that guide learning in the α compartments.
The circuit has not yet learned which odor accompanies punishment.
γ1 does not switch the whole α3 compartment off. Its inhibitory feedback helps regulate the dopamine signal that changes odor-to-output connections.
Also receives γ1 feedback. Its learning depends on the odor; the study found output plasticity for initially repulsive odors. For the α3 memory dynamics illustrated here, a reduced γ1 + α3 model gave similar results. α2 is not a middle storage stage.
γ1 changes when α3 can learn. A memory is not passed through γ1 → α2 → α3 like a parcel. This is the useful comparison with Buckner: ask what the interaction contributes, while keeping the mechanisms distinct.
Qualitative walkthrough of the intact circuit with learning enabled; independent of the controls above. Line thickness and spike marks are illustrative, not calculated values. Spacing also affects sensory adaptation, so the brake alone does not explain the optimal interval. Huang et al., Figures 4–5 ↗
An odor activates Kenyon cells. Dopamine signals guide changes in connections to output neurons. Feedback links the memory modules.
BUCKNER · CHAPTER 4: MEMORY
In §4.4, Buckner discusses how fast- and slow-learning memory systems work together. Figure 4.2 (p. 167) connects their interaction to consolidation. Our question: what can the interaction between memory modules explain that a successful learning outcome alone cannot?
Fly circuits are not a hippocampus and neocortex. This demo contains no episodic replay, abstraction learning, or test of catastrophic forgetting. The analogy concerns investigating interacting memory systems.
Open the guide for your presentation ↗FROM OUTCOME TO EXPLANATION
This shows that the construction can produce a learning process. Its performance alone does not establish which biological mechanism is correct.
Disable feedback. Does the pattern change? This tells us what that component contributes within the model.
Compare with independent measurements. Agreement supports a mechanism; discrepancies limit the explanation. Extending it to the human mind requires further evidence.
A browser translation of the published recurrent model by Huang, Luo and colleagues (2024), with three memory modules: γ1, α2 and α3. This is not a full MaleCNS or FlyWire simulation. We use the original best-fit parameters without refitting them to the validation measurements shown here. The model calculates neural activity and changing connections through successive odor, training and rest blocks.
Default: six rounds of 30-second odor A presentations paired with punishment, followed by odor B without punishment. The chosen pause occurs between odor presentations, matching the inter-stimulus interval (ISI) in the source code. Measurement blocks use 5 seconds per odor. Rest before the first post-training measurement and subsequent timing follow the Figure 5h script. Punishment plasticity uses its fixed multiplier of 1.5. Odors retain the innate valences used there for ACV/EtA.
We show the response to A minus the response to B in MBON-α3, in spikes/s. More negative values indicate a lower response to A relative to B. Either odor response can change; B is not held constant. The model also includes sensory adaptation, so an immediate response difference can remain when plasticity is disabled. Animation compresses model time. Lesson mode calculates immediately and hides the outcome; it does not run hours of neural training during your presentation.
Feedback off: sets only MBON-γ1 → DAN-α2 and MBON-γ1 → DAN-α3 connections to zero, after odor-input initialization and before the first test. No parameters are refitted. This is our model intervention, not an exact reproduction of a specific biological lesion. Plasticity off: prevents all KC→MBON connection updates. Sensory adaptation remains active.
The orange points come from Source Data Fig. 5, Panel h, Huang et al. (2024): 14 flies per spacing condition. Large points show means; error bars show SEM (standard error of the mean); small points show individual flies. These data correspond to six rounds and an intact circuit. We therefore hide this overlay for other round counts or disabled connections. Modified settings are exploratory calculations.
The green bars use a single fixed best-fit parameter set. The published figure uses medians and 16–84% intervals from 10,000 parameter sets, available separately below the results. The available model code also caps the MBON-α3 response at 31.16 spikes/s, whereas some published table values saturate at −30.59. These differences remain visible; the demo does not claim exact reproduction of every published figure value.
The circuit structure, learning rule, decay constants and switch to longer-lasting decay after three hours are assumptions and empirically estimated elements of the model. A matching outcome does not establish a unique explanation. The software translation was checked against an independent NumPy implementation across eight protocols. The original MATLAB software was not executed during this validation. Data means and SEM were recomputed and checked against individual fly measurements.
Chapter 4, Memory: §4.4 (pp. 160–168), especially Figure 4.2 on p. 167; §4.6 on experience replay; §4.8 as a synthesis. This is a teaching analogy between interacting memory systems. This model does not test episodic replay, human abstraction, consciousness, or catastrophic forgetting. It therefore does not directly confirm Buckner's theory or the complementary learning systems hypothesis.
Huang et al. (2024), study and Figure 5 ↗
Original model code, version used ↗
Original measurements, Source Data Fig. 5 ↗
Buckner, Chapter 4: Memory ↗
Model code: Junjie Luo, Cheng Huang and Mark J. Schnitzer, GPL-3.0-or-later; this adaptation uses the same license. Measurements: Huang et al., CC BY 4.0. Download source code and source data for technical documentation. Your session is stored only in this browser; the demo does not transmit session data.
Chapter 4, §4.4, pp. 160–168; Figure 4.2, p. 167: explain the computational division of labor between fast-learning medial-temporal and slower-learning cortical systems. Repeated, interleaved learning helps integrate new experience with existing knowledge and limit catastrophic interference.
§4.6: distinguish replaying stored experience to improve learning from consulting remembered events in episodic control. §4.8, pp. 188–189: emphasize how components with different architectures can compensate for one another’s limitations. The organizing question is what memory adds to the capacities of the whole system.
§§2–3: distinguish event-memory mechanisms in AI from the richer concept of biological episodic memory. Explain why success on a benchmark does not isolate the causal contribution of memory: other architectural differences may matter.
§3.6: introduce ablations and fine-grained cross-system comparisons. §4 and Box 1: distinguish how-possibly explanations, which identify candidate mechanisms worth investigating, from how-actually explanations, which need justified correspondence to the target in relevant respects. Relevant resemblance depends on the explanatory question.
These locators use the supplied accepted manuscript: §3.6 is on printed pp. 11–12; §4 on pp. 13–15; Box 1 on p. 15. Its repository cover sheet makes the PDF page numbers one higher.
We have discussed what memory contributes to artificial agents, and when those agents might explain biological memory. To finish, let us look at a case where researchers can constrain a model using an actual brain’s wiring and activity, then test its predictions against further biological experiments.
Open How the model was made. Give the short route: preserved tissue → microscopy → reconstructed wiring; then combine that anatomy with live-neuron recordings and explicit learning rules. It is a model built from evidence, not a scanned brain brought to life.
Keep the scope precise: this example models selected fruit-fly mushroom-body circuits. We are not demonstrating a whole-brain simulation, human episodic memory or consciousness. Its value here is as a case of mechanistic modeling and empirical testing.
If time is short, use the prepared session and show just the intact model and measurements. The purpose is to illustrate the explanatory method, not to survey every control or teach the full neuroscience model.
Detailed biological measurements now let us build and test models of specific brain circuits. A simulation makes a possible mechanism explicit and manipulable. Evidence linking it to the real circuit helps determine whether it explains how that circuit actually works. The same demand for relevant correspondence matters when we use artificial agents to reason about human memory.
This is our synthesis of the readings and the fly study. The fly model’s interacting modules offer a useful comparison with Buckner, but they do not implement hippocampal replay, abstraction learning or a catastrophic-forgetting task. Greater biological detail alone does not settle which explanation is correct.
Which evidence would turn a convincing demonstration of a possible mechanism into a well-supported explanation of the actual organism?
Possible answers include more discriminating predictions, matched interventions in the model and animal, comparisons with rival models, and explicit checks that the modeled details matter to the specific claim.
Cameron J. Buckner, From Deep Learning to Rational Machines, Chapter 4, “Memory”, pp. 142–189. Chapter.
Alexandria Boyle & Andrea Blomkvist (2024), “Elements of episodic memory: insights from artificial agents”. Article. The reading locators refer to the supplied accepted manuscript.
Cheng Huang, Junjie Luo et al. (2024), “Dopamine-mediated interactions between short- and long-term memory dynamics”, Nature 634, 1141–1149. Article and Figure 5. See the case-study page for the connectome and imaging sources. Supplied course PDFs are not included in the demo.
CLOSING CASE STUDY / AFTER THE TWO READINGS
The microscope reveals structure. Experiments constrain function. A model makes a proposed mechanism precise enough to test.
01 / WHERE THE WIRING COMES FROM
This model uses Janelia hemibrain v1.2.1, a partial adult fly brain map containing relevant mushroom-body circuitry. It does not use the later FlyWire full-brain map. The hemibrain was produced by Janelia's FlyEM team with Google Research and other partners. [1] [3]
A dissected brain is fixed, stained and embedded. This is a destructive study of preserved tissue.
Physical specimenFIB-SEM images a surface, removes a tiny layer with an ion beam, then images again. Aligned images form a 3D volume.
Nanometre-scale imagesMachine learning helps trace neurons and identify synapses. Human proofreaders correct reconstruction errors.
Identified cells and contactsRecord which neurons connect and where their synapses lie. This maps anatomical contacts, not learning rules or complete dynamics.
Evidence about structureOriginal conceptual diagrams, not microscope images. Imaging: [2]; reconstruction and dataset: [1].
02 / STRUCTURE IS ONE INPUT TO THE MODEL
Selected hemibrain connections constrain the three-module circuit.
Voltage imaging supplies spike-rate data for fitting model parameters.
Equations specify activity, plasticity, adaptation and memory decay.
Odor and punishment inputs change connections. The circuit then responds differently to the odors.
A simulation of a proposed mechanism, not a brain scan “switched on.”
The researchers omitted connections with fewer than five synapses and fitted retained strengths to recordings; synapse counts were not copied directly as functional weights. They simplified the dynamics into event-based recurrence equations. Flylab implements that published simplified model. [3] [4]
Huang et al. report prospective tests in Figure 5g–k. Our demo focuses on the spacing comparison in Figure 5h. Re-running it in class reproduces an existing test; it does not create new biological evidence. [3]
The live calculation uses one published best-fit parameter vector; the paper also reports an ensemble of 10,000 parameter sets. The available code and published table have a small response-cap discrepancy. We disclose both in the experiment's scientific notes. The feedback switch is an additional, exploratory model intervention, not an exact reconstruction of a named biological lesion. Numerical agreement with a reference implementation checks our software; it does not independently validate the biology.
03 / WHAT KIND OF EXPLANATION HAVE WE EARNED?
Boyle and Blomkvist call this the distinction between how-possibly and how-actually explanations. Relevant similarity depends on the explanatory question. A model need not reproduce every biological detail, but success on a task alone does not establish that its mechanism is the organism's mechanism. [6, §4 and Box 1]
A running model shows how its components can jointly produce an outcome under stated assumptions. Even without established biological correspondence, this can identify a hypothesis worth investigating.
In Flylab: these equations can generate different lasting traces from differently spaced training.
This requires evidence linking the model's relevant organization and operations to the target system. Anatomy, activity and discriminating experimental tests can support that inference.
In the fly study: the model is constrained by actual circuitry and recordings, and predictions are tested against further experiments.
The study provides evidence toward a how-actually account of particular fly-memory dynamics. It does not uniquely establish every equation or turn every model intervention into a biological finding. This is our application of the philosophical distinction; Boyle and Blomkvist do not assess this fly study.
| Evidence | What it supports | What it leaves open |
|---|---|---|
| Mapped connections | An anatomically constrained circuit hypothesis. | How strong connections are and how they change. |
| Fit to neural recordings | Compatibility with measured activity. | Whether other parameter sets or mechanisms also fit. |
| Tests of new predictions | Evidence beyond reproducing the fitting data. | Whether a rival model predicts the same result. |
| Feedback disabled in our demo | A causal contribution within this model. | Whether a matched biological intervention has the predicted effect. |
| Similar memory themes in humans and flies | A useful question for comparative investigation. | Shared algorithms, episodic experience or human explanatory scope. |
This table is a classroom analysis, not a classification supplied by the neuroscience authors. There is no automatic “proof” threshold: assess which claim each test bears on.
04 / TWO READINGS, TWO COMPLEMENTARY QUESTIONS
In §4.4, fast-learning medial-temporal and slower-learning cortical systems divide computational work. Repeated, interleaved learning helps integrate experience, develop abstractions and reduce catastrophic interference. Figure 4.2 (p. 167) summarizes this account; §4.6 discusses replay and episodic control. [5]
Our bridge: the fly case makes interactions among memory modules concrete and experimentally tractable. Different memory dynamics and their coupling matter to the outcome.
The authors distinguish AI “event memory” from richer biological episodic memory. They recommend isolating a memory component's contribution through ablations and examining fine-grained similarities, differences and limitations across systems. A benchmark advantage by itself may have several causes. [6, §§2.3, 3.6–4]
Our bridge: the feedback switch isolates a contribution in the model. Comparing its consequences with suitable fly experiments would address whether that contribution transfers to the target.
The boundary of the analogy: Flylab models odor conditioning, not episodic recollection. Its modules are not a hippocampus and neocortex; it implements no replay buffer, mental time travel, abstraction task or test of catastrophic forgetting. The shared lesson is methodological: study what interacting components contribute, then justify the transfer from model to organism.
In §4, Boyle and Blomkvist discuss Zeng et al.'s comparison of episodic control, replay and an agent without event memory. Different mechanisms yield different learning profiles. This helps identify possible roles for memory and promising experiments; it does not show that biological brains run those exact algorithms. Our fly example has more direct constraints at the circuit level, but that does not make it a model of human episodic memory. The relevant target and question differ.
USE IT IN YOUR PRESENTATION
Within the modelWhat changes when feedback is removed, with the other parameters held fixed?
About the flyWhich corresponding intervention and measurements would distinguish this explanation from a rival?
After the readings, use this as a brief worked example rather than a second main topic. Ask what would count against the proposed mechanism. A successful model should help design tests that could expose its limits.
The readings ask when artificial systems can tell us something about biological memory. Here we can see the research process in concrete form: measured circuitry constrains a model, the model generates predictions, and new experiments test them. The simulation makes a possible mechanism explicit; the biological evidence determines how far it explains the actual system.Return to the experiment and try the feedback switch →
SOURCES & READING LOCATORS
Connections between the readings and the fly study are our teaching interpretation. Original diagrams and paraphrases were created for this page. The supplied PDFs are not redistributed.