Metraipolis › archive › dc_e8778b8173e8
Persistent Recurrent Memory Between Transformer Layers - Improves Language Model Generalization — arXiv:2609.17251
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.17251
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-15T19:19:29.705Z
- SHA-256 of the archived text
aefd13ff5265e711b4f35202394331e4a995439a36e9e1efba58710f1f5a2af8- Stable URL of this page
https://metraipolis.com/documento/dc_e8778b8173e8
How to cite
Persistent Recurrent Memory Between Transformer Layers - Improves Language Model Generalization — arXiv:2609.17251 — arXiv (en), https://arxiv.org/abs/2609.17251 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_e8778b8173e8 (Metraipolis archive dc_e8778b8173e8, sha256 aefd13ff5265e711b4f35202394331e4a995439a36e9e1efba58710f1f5a2af8)
BibTeX
@misc{dce8778b8173e8,
title = {Persistent Recurrent Memory Between Transformer Layers - Improves Language Model Generalization — arXiv:2609.17251},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.17251},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_e8778b8173e8; sha256 aefd13ff5265e711b4f35202394331e4a995439a36e9e1efba58710f1f5a2af8},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.17251. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
We introduce a simple architectural modification to decoder-only transformers: a persistent recurrent state that observes hidden representations via cross-attention, updates itself through a GRU, and modulates subsequent processing via gated addition. Inserted between the lower and upper halves of a 6-layer transformer, this module adds only 3.7\% additional parameters while reducing evaluation loss from $2.438 \pm 0.004$ to $1.743 \pm 0.018$, corresponding to a 28.5\% reduction on held-out language modeling data. The improvement is statistically significant across 5 random seeds ($p < 0.01$) and corresponds to reduced overfitting (generalization gap 0.12 vs 0.26). Through controlled ablations, we demonstrate that the improvement stems entirely from the persistent memory topology, not from auxiliary self-prediction objectives. A model with identical topology but no auxiliary loss performs equivalently, while a random auxiliary loss provides no benefit. Representation probing reveals that the persistent state encodes narrative position (52\% vs 33\% chance level)---information that standard attention maintains less efficiently. Our results suggest that bridging transformer layers with a lightweight recurrent memory is a simple, effective approach to improving generalization in small-scale language models. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-16 in cs.CL). Categorie arXiv: Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2609.17251 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-15T18:32:32.864Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-09-16?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).