循环加深不增KV缓存:面向因果编码器-解码器的循环深度方法
Looping Deeper Without Growing the KV Cache: Recurrent Depth for Causal Encoder-Decoders
研究者提出一种循环因果编码器-解码器(CED)结构,在循环加深计算时不产生逐轮 KV 增长,把循环放在编码器以迭代精炼全局 KV 表示。
论文给出循环深度只放在编码器、并让各轮共享末轮 KV 的设计,读者可据此理解长上下文推理的显存与吞吐取舍。
arXiv:2611.13378v1 Announce Type: new 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.
来源:arXiv (AI + Vision + Imaging) · arxiv.org