Looping Deeper Without Growing the KV Cache: Recurrent Depth for Causal Encoder-Decoders
Jiaqi Leng, Minshen Zhang, Zhaofeng Sun, Yu-Yang Qian, Peng Zhao, Hao Zhang
Abstract
Looped language models deepen computation without adding parameters, yet caching full-context key-value (KV) states across layers and rounds severely bounds serving batch size. We design a looped causal encoder-decoder (CED) that achieves recurrent depth with zero round-wise KV growth, addressing where and how to loop an asymmetric stack in which only sparse encoder layers generate global KV. We find that recurrence must be placed in the encoder to iteratively refine global KV representations rather than re-reading static decoder projections, which both drives language-modeling gains and preserves long-context scaling. Furthermore, training the encoder loop under stochastic recurrence depth induces a fixed-point equilibrium where every round losslessly shares the last round's KV cache. Compounding cross-layer and cross-round KV sharing, the resulting Looped CED matches an unlooped CED's minimal memory footprint and recovers 86-93% of a looped Transformer's gain with 1/6 of its global KV. To test serving at production scale, we loop the 552B-parameter DeepSeek-V4.1-Flash for 8 rounds on one 4xGB200 node: with per-layer and per-round KV the loop cannot fit a single 128K-token request, whereas Looped CED holds 36.8x less KV per token, fits 38 such requests (as many as the unlooped model), and serves 3.6x higher throughput on 8K-token prompts.
Create a lesson
Metadata
- Comments
- 23 pages (11 pages main text), 10 figures, 14 tables
Related papers
How to build and train your recurrent-depth model: A fixed-point perspective
Shared title terminologycs.LGThomas Pethick
PackLoop: Row-Packed Self-Speculative Decoding for Looped Language Models under Concurrency
Shared title terminologycs.LGRunguo Li, Dezhen Lu
Fast 4-bit KV-Cache Decoding on Hopper GPUs: Why Existing Kernels Are Slow and How to Fix Them
Shared title terminologycs.LGJian Zhang
Trust-Region Optimization for Performative Prediction without Response Modeling
Shared title terminologycs.LGSiqi Du, Miaolan Xie, Roy Dong
SwiftLoop: Selective Refinement for Adaptive Implicit Reasoning in Looped Transformers
Shared title terminologycs.LGTianyi Zhao, Ke Wan, Chen Chen
CaLA: Causal Latent Adjustment for World Models under Adaptive Policies
Shared title terminologycs.LGRobert Ness, Sofiane Ennadir, Oleg Smirnov