A Miniature Brain Transformer: Thalamic Gating, Hippocampal Lateralization, Amygdaloid Salience, and Prefrontal Working Memory in Attention-Coupled Latent Memory
Organizations: Department of Computer Information Engineering, Inha University in Tashkent, Uzbekistan
Abstract
We present a miniature brain transformer architecture that extends the attention-coupled latent memory framework with four additional brain-region analogues: a thalamic relay, an amygdaloid salience module, a prefrontal working-memory (PFC) buffer, and a cerebellar fast-path, all coupled by inhibitory callosal cross-talk between lateralized hippocampal banks. We evaluate on a two-domain benchmark -- MQAR (Multi-Query Associative Recall; episodic domain) and modular arithmetic (+1 mod 10; rule-based domain) -- using a seven-variant additive ablation. The central empirical finding is a surprise: inhibitory callosal coupling alone never lateralizes the banks (variants 1-5 maintain D_sep ~ 0.25 and P_ct ~ 0.25 for all 30 epochs). Functional lateralization requires the synergy of PFC and inhibition: only when the PFC buffer is added (variant 6) does a sharp, discontinuous phase transition fire -- at epoch 11 for the PFC-only variant and epoch 10 for the full model -- collapsing P_ct from 0.25 to ~0.002 and more than doubling D_sep from 0.251 to 0.501 in a single gradient step. The PFC buffer acts as a symmetry-breaker: its slowly drifting domain context creates the initial asymmetry that the inhibitory feedback loop then amplifies irreversibly. The cerebellar fast-path accelerates the transition by one epoch (epoch 10 vs. epoch 11) with no asymptotic change, confirming its convergence-acceleration role. The result constitutes a novel, falsifiable prediction -- no lateralization without working memory context -- and a principled, neurobiologically motivated blueprint for hierarchical persistent memory in sequence models.
Figures & tables
| Brain region | Biological function | Architectural analogue | Mathematical role |
|---|---|---|---|
| Sensory cortex | Input encoding | Transformer encoder | |
| Thalamus | Relay & gain control | Proposal gate , proposal state | Gain modulation of |
| Hippocampus (L) | Episodic/associative memory | Left bank | |
| Hippocampus (R) | Semantic/rule memory | Right bank | |
| Corpus callosum | Inter-hemispheric relay | Cross-bank matrices , sign | |
| Amygdala | Salience / affect gate | Salience scalar | Weighting of consolidation update |
| Symbol | Shape | Description |
| Tensors and states | ||
| Encoder output at step ( sensory cortex ) | ||
| Proposal state ( thalamo-cortical buffer ) | ||
| Left / right hippocampal memory banks | ||
| PFC working-memory buffer ( EMA context ) | ||
| Cerebellar momentum accumulator for bank | ||
| Module | New parameters | % overhead |
|---|---|---|
| Thalamic gate ( ) | 2 | 0.01% |
| Amygdaloid salience ( ) | 1 | 0.01% |
| PFC buffer ( ) | 2.6% | |
| Cerebellar fast-path ( ) | 2 | 0.01% |
| Total overhead | 98,306 | 2.6% |
| Full model | 3,716,615 | 2.6% vs. base |
| Variant | Accuracy | Loss | Trans. Ep. | |||
|---|---|---|---|---|---|---|
| MQAR ( ) | Arith ( ) | |||||
| 1. Baseline (Transformer) | 0.051 | 1.000 | 0.135 | 0.250 | 0.253 | — |
| 2. Lateral, inhibitory | 0.052 | 1.000 | 0.134 | 0.250 | 0.253 | — |
| 3. Lateral, excitatory | 0.048 | 1.000 | 0.137 | 0.250 | 0.253 | — |
| 4. +Thalamus | 0.053 | 1.000 | 0.135 | 0.252 | 0.251 | — |
| 5. +Amygdala | 0.050 | 1.000 | 0.135 | 0.251 | 0.251 | — |
| Variant | Loss | Trans. Ep. | ||
|---|---|---|---|---|
| 2. Lateral, inhibitory | 0.134 | 0.253 | 0.250 | — |
| 4. +Thalamus | 0.135 | 0.251 | 0.252 | — |
| 5. +Amygdala | 0.135 | 0.251 | 0.251 | — |
| 6. +PFC † | 0.136 | 0.002 | 0.501 | ep. 11 |
| 7. Full (Miniature Brain) | 0.136 | 0.002 | 0.501 | ep. 10 |
| Full model | +PFC only | ||||
|---|---|---|---|---|---|
| Epoch | Epoch | ||||
| 9 (pre) | 0.251 | 0.252 | 10 (pre) | 0.253 | 0.250 |
| 10 (trans.) | 0.493 | 0.010 | 11 (trans.) | 0.474 | 0.029 |
| 11 (post) | 0.499 | 0.005 | 12 (post) | 0.498 | 0.005 |
| 30 (stable) | 0.501 | 0.002 | 30 (stable) | 0.501 | 0.002 |