Architectures and KV Replay for Depth-Recurrent Language Models
Lucia Licakova, Niklas Schmidinger, Lukas Hauzenberger, Sebastian Böck, Sepp Hochreiter
Abstract
Depth recurrence increases effective model depth by repeatedly applying a fixed computation block. However, sharing attention parameters does not share the key-value (KV) states generated at different recurrence iterations, which causes memory growth with recurrence depth during autoregressive decoding. We study how to reduce this memory cost through architectural and cache-sharing approaches within a common depth-recurrent framework. We first study a looped hybrid that repeats a stack of Transformer layers, with recurrent mLSTM or Gated DeltaNet blocks replacing most attention layers and periodic Transformer attention anchors retained. We then restrict recurrence to a dedicated recurrent workspace in a Parcae-style architecture and test its stabilising adapter as a wrapper for the looped hybrid. Finally, we train a looped Transformer with recurrent KV replay, where only selected recurrence iterations write KV states that later iterations reuse. This trains the model to operate with the same shared KV topology used during inference. We find that looped hybrids require sufficiently frequent attention anchors, with performance depending strongly on the recurrent mixer. For cross-iteration KV sharing, recurrent KV replay allows multiple recurrence iterations to reuse the same KV states while retaining performance close to the full looped Transformer with separate KV caches for each iteration.
Create a lesson
Metadata
- Comments
- NeurIPS 2026 - LIGHT Workshop
Related papers
How to build and train your recurrent-depth model: A fixed-point perspective
Shared title terminologycs.LGThomas Pethick
LoopSkim: Lossless Multi-Depth Speculative Decoding for Looped Language Models
Shared title terminologycs.LGMuhan Xiao, Shijian Li
Tokenization and Architecture Jointly Allocate Component Roles in Time Series Transformers
Shared title terminologycs.LGMingyu Kim, Doguk Kim
Evaluable Language-Model Treatment Policies for Sepsis Resuscitation via Offline Value-Guided Selection
Shared title terminologycs.LGYue Pei, Shining Bo, Yingying Zhang et al.
How Do Deep Networks Encode and Selectively Use Information? Shared Encoding and Conditional Signed Readout in Vision and Language Models
Shared title terminologycs.LGKaixiang Shu
PackLoop: Row-Packed Self-Speculative Decoding for Looped Language Models under Concurrency
Shared title terminologycs.LGRunguo Li, Dezhen Lu