A fly smells odor A, recalls an electric shock, and so it avoids the odor. This brief "thought" passes through two places. First, the learning center (mushroom body) retrieves the memory "A was dangerous," and only when that memory crosses over to a convergence neuron in the instinct center (lateral horn) does it become behavior. The same convergence neuron also handles the innate behavior of approaching food odors. Learned and innate information meet in a single neuron.
There are a lot of unfamiliar names. Learn the nicknames first in the Meet the cast section below. In the text, hover over or tap any name with a dotted underline to see what it means.
Dolan, Belliart-Guérin et al. (2018). Communication from Learned to Innate Olfactory Processing Centers Is Required for Memory Retrieval in Drosophila. Neuron 100(3):651–668.
The names in the paper are like "ID numbers" that researchers give neurons to tell them apart. This page uses the nicknames below and writes the paper's names alongside in parentheses or small print.
PD2a1 = the name of the path the cell's main fiber takes through the brain (PD2) + a shape group within that path (a) + a cell type number (1). PD2b1 is group b of the same path. Together they are written "PD2a1/b1," and on this page we call them the convergence neuron.
MBON-α2sc = short for Mushroom Body Output Neuron + it receives input in the second compartment of the mushroom body's α lobe + a code that distinguishes it from other output neurons in the same compartment. On this page we call it the memory output neuron.
In the end, the paper's story fits in one sentence: the fly avoids an odor only when the memory output neuron's "that smell was dangerous" signal passes through the convergence neuron.
A green signal starts at the odor input, passes through the mushroom body, exits via the memory output neuron, and then crosses over to the convergence neuron in the lateral horn. Food-odor signals from the antennal lobe also enter the lateral horn directly. Drag to rotate.
Press a region button to highlight that part and show its description.
Textbook diagrams split the two pathways neatly: the lateral horn for innate behavior, the mushroom body for learned behavior. But whether the lateral horn really handles only instinct had never been tested directly.
Press the buttons to switch between the two diagrams. Only one thing changes: the connection from the mushroom body output neuron (the memory output neuron) to the lateral horn.
This is the basic procedure for a fruit fly memory experiment. The left side shows what the flies go through; the right side uses a neural network diagram to show how the connections (weights) inside the mushroom body change along the way. Learning happens during training, and in the test phase the changed connections show up as behavior.
The memory output neuron is a mushroom body output neuron that is essential for retrieving aversive memories — memories that make a fly avoid an odor it learned to pair with an electric shock. And this neuron's axon extends into the lateral horn. The researchers asked two questions: Is memory information really passed to the lateral horn? And is that transfer necessary for retrieving the memory?
This is the sequence they used to find out "who receives the memory output neuron's signal," confirm it, switch it off, and look inside. Click each step to see the method and a similar task in deep learning.
A temperature-sensitive blocking protein (Shits) is put into specific neurons only, and the temperature is raised only during the test to block those neurons' output. It's the same logic as an ablation study in deep learning.
Bar heights are schematic, showing only the direction of the results. The two control groups are flies carrying only one half of the genetic system; they check that the temperature itself or the gene insertion alone doesn't lower memory.
Both the bars and the maze are schematics showing the direction of the results. The better the memory, the more flies avoid odor A (paired with the shock) and head toward B.
Even with the convergence neuron switched off, the flies' natural avoidance of the two training odors (at the same concentrations) stayed the same. That means the memory score didn't drop because the flies lost their sense of smell or their innate responses were damaged.
Schematic. It shows only the direction of the result: innate avoidance was similar in the control and blocked groups.
Calcium imaging is a method that watches the rise in calcium inside a neuron when it is active, as fluorescence brightness. After training, the convergence neuron's response to the odor was weakened, in the same direction as the memory output neuron's.
Try switching the neuron and the condition. The graph is a schematic showing only direction; for actual magnitudes and protocols, see the figures in the paper.
Learning happens in connections inside the mushroom body (Kenyon cell → MBON). As a result, the memory output neuron's output changes, and the response of the lateral horn convergence neuron that receives this signal changes along with it. This experiment alone can't tell whether the convergence neuron's own connections changed.
Even if you fine-tune only the middle layer W2, the activations of the later layers h3 and h4 all change for the same input. It's the same reason you can't conclude "learning happened here" just from a change in activations.
When they traced the convergence neuron's inputs in whole-brain electron microscopy data, they found direct input from antennal lobe projection neurons carrying food odors. And indeed, switching off the convergence neuron also weakened the innate attraction to some odors.
Click a circle to see what each input carries.
Schematic. It shows only the direction of the result: switching off the convergence neuron reduced attraction for some of the tested odors. This wasn't true for every food odor.
This is a toy model for illustration, built on the circuit the paper proposes. The convergence neuron is treated as a single "unit that adds innate and learned inputs," and you can change the training, blocking and test to see the T-maze results. The numbers have nothing to do with real data.
This paper's findings and methods overlap in many ways with how we design and analyze neural networks. These are all analogies; they don't mean the brain uses these algorithms.
Press the buttons to switch between diagrams of the six architectures. Green lines are learned connections, dashed lines are fixed connections, and orange arrows are memory carried across time. All diagrams are schematics that show the principle.
Gray bar = total connections, colored bar = learned connections. Deep learning models learn everything; the fruit fly models are mostly fixed connections. The Trainer below and Code 2 in Common section A count the same numbers.
Evidence level in the last row: Real circuit/measurement the model transcribes a real circuit · Similar structure the wiring looks alike, but that's no proof they compute the same thing · Loose analogy · Pure analogy just a figure of speech to aid explanation, with no biological basis.
Section 7 of page ② compared this structure to "frozen model + learned correction," i.e. a LoRA adapter. Putting it in a table makes the differences clearer. RNNs, GRUs and LSTMs carry memory within a time sequence as a hidden state, but this model's memory is stored in connection strengths and spans the hours between training and testing. Just as GRU and LSTM gates decide "how much memory to bring out," the convergence neuron is where memory and instinct are mixed (an analogy).
Like Teachable Machine: ① collect examples for each class, ② train, and ③ check with new input. All computation happens inside this browser; your drawings and webcam video never leave it. To run the same model in code, use Code 2 in Common section A.
Collected samples are saved automatically in this browser and survive a page refresh. Exported data and model JSON files can be loaded again.
Getting started: press "Fill sample data," or draw on the pad and press "Add drawing" on a class. Click a class name to rename it.
The flow of create classes → collect samples → train → live preview → export, webcam input, and doing all computation in the browser.
Teachable Machine uses transfer learning: it trains only a small classifier on top of features pre-extracted by a large image model (MobileNet). This Trainer has this page's models learn 16×16 drawings from scratch. That makes it suited to simple shapes and weak on complex inputs like photos. In return, it shows you the validation accuracy and the number of learned connections directly.
Click a box to jump to its explanation. The two pathways meet at the convergence neuron and become a single behavior.
Both notebooks use only libraries preinstalled in Colab. Click "Download notebook (.ipynb)" and open it in Colab via File → Upload notebook, or copy the code and paste it into a new notebook cell.
Builds a circuit where the lateral horn (instinct) is fixed and only the mushroom body output (memory) changes by a dopamine rule (active Kenyon cells × chosen action × reward/punishment). After punishing odor A five times, it checks whether only instinct remains when the convergence neuron's memory input is blocked. To use your own data, change the odor_A and innate values.
Trains MLP, CNN, RNN, GRU, LSTM and three fruit fly models on the same drawing data. Cell 8 runs an experiment that blocks the memory input of the memory + instinct model. Upload the fly_lab_data.json you downloaded from the Trainer in cell 1 to compare using your own drawings.
| Item | Code 1 (memory + instinct convergence) | Standard deep learning code |
|---|---|---|
| Frozen part | Lateral horn (instinct) + Kenyon cell input | Base model (requires_grad_(False)) |
| Learned part | Memory output neuron connections W_mb | Adapter adapter |
| Learning signal | Dopamine: was the outcome good or bad? (a single number) | Difference from the true label (a gradient for each class) |
| Update method | Local rule: active Kenyon cells × chosen action × dopamine | Backpropagation: gradients passed backward from the loss |
| Switch-off experiment | retrieve=False → blocks the convergence neuron's memory input | use_adapter=False → turns off the correction |
| Result when switched off | Only instinct remains, so the fly approaches again (direction of the result in section 3 of the paper walkthrough) | Reverts to the base model's answer |
| Caution | A schematic model reproducing the direction of the paper's results | Real LoRA is the product of two low-rank matrices, A·B |
These are prompts to paste into an AI assistant such as ChatGPT, Qwen or Claude. Pressing "Copy" appends the selected code after the prompt. Replace the parts in 〔 〕 with your own situation.
An AI's answer is only a starting point. Always check any papers, numbers or library functions it suggests against the original sources and official documentation. If you used AI help for a competition entry or paper, disclose that you used it and how much, following the rules of the organizer or journal.
This is the same dictionary as the yellow dotted underlines in the text. Hover over or tap an underline to see the same explanation.
Analogies are a first step toward understanding, but they can also plant misconceptions. Fruit fly/brain analogies are marked with their strength. Direct there is evidence it actually does the same job · Partial only some properties match · None no known counterpart
| Concept | Everyday analogy | Fruit fly/brain analogy | Where the analogy breaks down |
|---|---|---|---|
| Convergence neuron | One person receiving reports from two departments and giving final sign-off | Direct PD2a1/b1 in the lateral horn receive signals from both the memory output neuron and food-odor projection neurons [R1] | Real convergence isn't simple addition. The 1.0 · 0.6 weights in the model lab are for illustration only |
| Memory retrieval | Taking something out of storage to use it | Partial After training, the mushroom body output to the same odor changes, and that signal crosses over to the lateral horn | A memory isn't stored in one place like an object. It is spread out as changes in connection strengths |
| Dopamine learning | Fixing habits with praise and scolding | Direct Dopamine neurons change the strength of mushroom body output connections | Real dopamine is a reward/punishment signal, not a "true label." The Trainer's default mode simplifies this to true labels |
| Fixed pathway + correction (LoRA) | Leaving the head-office manual as is and just adding branch notes | Partial The mushroom body's learned signal is added on top of the lateral horn's innate pathway | LoRA is a mathematical method that attaches a low-rank product of matrices. It doesn't mean the fruit fly circuit computes this way |
| Ablation study | Removing one part and seeing what happens to the machine | Direct A temperature switch blocks the convergence neuron's output, and the memory score is measured [R1] | In deep learning, ablation just means setting numbers to 0, but biological experiments also have to account for control groups and temperature effects |
E-1 About the author · E-2 Academic references · E-3 Figure sources
A guide for instructors, on-the-job training leads and tutors. Times are estimates; adjust them to your actual class.
| Audience | Learners who have finished Special 1; undergraduate and graduate students reading a research paper for the first time |
|---|---|
| Prerequisites | Special 1's ③ (mushroom body and Kenyon cells) and "rules vs. learning" |
| Learning objectives | ① State the paper's claim — that learned memories become behavior via the instinct center — in one sentence ② Explain the logic of an ablation experiment (switch off, control, compare) ③ Map the fixed pathway + learned correction structure onto deep learning (adapters) |
| Estimated time | Reading 45–55 min · animation demos 20 min · Colab practice 30 min (Code 1: 10 min; Code 2: 2 min to run + 15 min to interpret) |
Intro 5 min (the cast's nicknames) → Sections 1·2, the question and how they searched, 15 min → Sections 3·5 experiments 15 min → Section 6 model lab 10 min → check questions 5 min.
Sections 1·3 20 min → Section 7, rereading it through deep learning (fixed model + correction), 20 min → memory-input blocking experiment in the Trainer 20 min → running and interpreting Code 2 30 min.
Beginners: the cast plus Sections 1·3·6 only. Intermediate learners: have them pair each of the seven steps in Section 2 with a deep-learning analysis method (reading weights, ablation, inspecting activations).
| Section | Question to pause on | Hands-on tip |
|---|---|---|
| The cast | "What does the name PD2a1/b1 mean?" | Open the "How to read the names" card first |
| 1 The question | "Are instinct and learning really processed separately?" | Look at the textbook figure and the paper's figure side by side |
| 2 How they searched | "How do you confirm that two neurons are connected?" | Click through the seven steps in order |
| 3 Switch it off? | "What if just raising the temperature makes memory worse?" | Compare low vs. high temperature and the other candidate neurons |
| 5 Two roles | "Why does switching off one neuron make two behaviors disappear together?" | Switch back and forth between the memory test and food attraction |
| 6 Model lab | "What happens if you change 0.6 to 0?" | Click "Convergence neuron off" |
| Practice: Trainer | "Why does blocking the memory input leave only the innate value?" | After training, click "Block memory input" |
| Misconception | Correct explanation | Scene to show |
|---|---|---|
| Memory lives only inside the mushroom body | For a memory to become behavior, it has to cross over to the convergence neuron in the lateral horn [R1] | Section 3 |
| The instinct circuit and the learning circuit are completely separate | A single convergence neuron handles both memory retrieval and innate attraction to food | Section 5 |
| Any change after switching off a neuron is entirely due to that neuron | The effect of temperature alone and of the inserted gene alone must be checked separately with control groups | The control experiments in Section 3 |
| The numbers in the model lab are the paper's measurements | It is a schematic that carries over only the direction of the results | The yellow stamp in Section 6 |
| Dopamine tells the fly the right answer | It is a reward/punishment signal. Learning from correct-answer labels is a simplification for explanation | The "Note" text in the Trainer |
A memory signal read out of the mushroom body must be passed on to the convergence neurons (PD2a1/b1) in the lateral horn for the memory to become behavior.
Temperature itself can change behavior, so we must tell whether the memory score dropped because the neuron was blocked or because of the temperature.
0.2 + 0.6 × (−1.0) = −0.4 (toward avoidance). Blocked: 0.2 (only instinct remains, toward approach).
Because that neuron is a shared layer that receives two pathways together (the memory signal from the mushroom body and the innate signal from food-odor projection neurons) and produces the output.
All innate values are 0, so every class gets the same score and the model always picks the first class. 0.09 is the fraction of the test data that belongs to the first class.
In Code 1, change the innate value to [0.0, 0.5] (instinct leans toward avoidance). Report in a table how the before-training, after-training and blocked results change, and compare the cases where instinct and memory point the same way vs. opposite ways.
In Code 2's MemoryInnate, give innate a value (e.g. 2.0 for the X class), train, then block the memory input. Compare the confusion matrices before and after blocking, and write how instinct pulls the decision.
| Beginners | The seven steps in Section 2 and the calcium imaging in Section 4 can just be skimmed. Make sure Sections 3·6 are solid |
|---|---|
| Advanced | Have learners find other studies of the fly memory circuit (how memory output neurons divide up roles) and present a comparison with this paper. Check any paper they cite in the original |
| Learn more | Sangsun Ahn, “Data Science for Business” lecture notes (data science overview, in Korean) · STEP [K-Digital] AI Natural Language Processing (in Korean) · STEP [K-Digital] Fintech Data Analysis Basics (in Korean) |
| Materials for instructors | Grading criteria for the check questions and sample answers for the assignments are on the Answer Key for Educators page (Special 2) |
You've read all of "Special 2: The Memory Retrieval Paper." Everyone in the lab has a few words to wrap things up.