What an ablation is for when you borrow from neuroscience
Your brain does not keep everything you read today. SalienceFormer borrows that idea: a small learned gate decides what a frozen language model should hold on to. The interesting part was proving that the borrowed idea did any work, by taking it apart.
- 11.83
- perplexity on WikiText-2
- +78.01
- perplexity without the memory buffer
- ~15M
- trainable parameters added
- 2.11×
- content vs function word selection
The man who could not make new memories
In 1953 a patient known for decades only as H.M., Henry Molaison, had surgery to stop severe seizures. Surgeons removed much of his hippocampus on both sides. The seizures eased, but he could no longer form new lasting memories. He could hold a conversation, then forget it had happened. Studies of H.M., many led by Brenda Milner, showed that the hippocampus is essential for turning experiences into lasting memories.
Forty years later, Matthew Wilson and Bruce McNaughton recorded neurons in rats running a maze, then kept recording while the rats slept. The same neurons fired again in the same patterns. The sleeping brain was replaying the day. Brains, it turns out, are selective about what they store, and they rehearse what they decided to keep.
A mechanism, not a bigger model
That gave me a narrow question. Can a language model improve how it uses memory by being selective about what it stores, without simply adding scale? I kept the Gemma-2B backbone frozen and added roughly 15 million trainable parameters around it.
I ruled out a few other directions first. Pure attention distillation had no grounding in how memory works. Sparse transformers without a reason for their sparsity felt incremental. A full simulation of the hippocampus was too speculative to test. What was left was a small mechanism that could be switched off.
The pipeline has four stages, and each has an everyday cousin. A salience gate is a highlighter that scores which representations matter. A drift calibrator corrects them, like recalibrating a scale. A memory consolidator replays high-priority items with decay, like rereading your highlights while older ones fade. Output fusion blends that memory path with the model's ordinary hidden state.
Perplexity in one paragraph
Perplexity measures how surprised a model is by the next word. A perplexity of 12 means the model is, on average, about as uncertain as if it were choosing among 12 equally likely words. Lower is better. On WikiText-2 the full model reached 11.83.
The ablation is the claim
A single good number does not tell you which addition earned it. Biologists face the same problem with genes, and they answer it by knocking one out and seeing what breaks. So the evaluation removed each component rather than presenting the architecture as an indivisible bundle. I decided early that this ablation table, not the headline number, would be the contribution.
Removing the salience gate raised perplexity to 39.75. Removing the memory buffer raised it to 89.84. So did replacing learned salience with random selection, which is the clearest result of the lot: highlighting random lines is as bad as keeping no notes at all. Selectivity and consolidation were interdependent, not interchangeable decorations.
Remove one component (perplexity, lower is better)
Against baselines (perplexity, WikiText-2)
Did it behave the way the story says?
A borrowed metaphor makes predictions, so I checked them. If the gate is a sensible highlighter, it should prefer content words over words like the and of. It selected content words 2.11 times as often as function words. The long-range perplexity benefit was 6.95, and high-priority items were retained at 4.9 out of 5 on the buffer-priority metric.
These are behavior checks I designed for this project, not standard benchmarks, and they are not evidence that a model has a hippocampus. They ask a narrower question: does the stated mechanism leave a measurable trace in the system?
What I would carry forward
Biological metaphors are only useful when they produce choices you can falsify. Here that meant a learned gate, a bounded memory path, and ablations that could have shown either one to be unnecessary.
The practice applies to any architecture work. Make the proposed mechanism small enough to test, then let the removals, not the story around them, do the explaining. H.M. taught neuroscience what the hippocampus does by what went missing. Ablations work the same way.