paper-with-me

홈 › Papers

Persistent Recurrent Memory Between Transformer Layers - Improves Language Model Generalization

2026-09-15 · Eduardo Novaes Hering arxiv

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.

📄 PDF Abstract BibTeX arXiv:2609.17251

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Compact Recurrent Transformer with Persistent Memory

2025-05-02 · Edison Mucllari, Zachary Daniels, David Zhang, Qiang Ye

The Transformer architecture has shown significant success in many language processing and visual tasks. However, the method faces challenges in efficiently scaling to long sequences because the self-attention computatio…

Edge-computing

Tensor Memory: Fixed-Size Recurrent State for Long-Horizon Transformers

2026-05-26 · Kabir Swain, Sijie Han, Daniel Karl I. Weidele, Mauro Martino 외 arxiv

Transformers process images and videos by flattening space and time into long token sequences. While attention and KV caching preserve past features, their memory grows with sequence length and they lack an explicit, per…

Parallelizable memory recurrent units

2026-01-14 · Florent De Geeter, Gaspard Lambrechts, Damien Ernst, Guillaume Drion arxiv

With the emergence of massively parallel processing units, parallelization has become a desirable property for new sequence models. The ability to parallelize the processing of sequences with respect to the sequence leng…

A Persistent-State Dataflow Accelerator for Memory-Bound Linear Attention Decode on FPGA

2026-03-06 · Neelesh Gupta, Peter Wang, Rajgopal Kannan, Viktor K. Prasanna arxiv

Gated DeltaNet (GDN) is a linear attention mechanism that replaces the growing KV cache with a fixed-size recurrent state. Hybrid LLMs like Qwen3-Next use 75% GDN layers and achieve competitive accuracy to attention-only…

Chain-of-Thought and Compressed Looped Transformers: A Memory-Budget Separation

2026-05-29 · Haozhou Zhang arxiv

Chain-of-thought prompting and looped Transformers both give a fixed model more test-time computation, but they differ in what they remember. Chain-of-thought stores intermediate state in generated tokens that remain in …