Looped CED Cuts Recurrent KV Memory, but Cost and Quality Evidence Differ

Looped CED reduces global KV memory 36.8-fold against a per-layer, per-round serving baseline. Quality is tested on small models, not a trained recurrent 552B model.
Reusing the same Transformer layers across several rounds increases computational depth without adding a whole new set of weights each time. But saving a separate history cache for every round can consume the memory saved by sharing parameters.
Researchers from UC San Diego, Tsinghua University, Nanjing University, and other institutions propose Looped CED, combining cache sharing across layers and recurrence rounds. In serving-cost experiments using the DeepSeek-V4.1-Flash backbone with eight rounds, global KV memory per token is about one thirty-sixth of the per-layer, per-round baseline.
An important distinction affects how to read this result. The 552-billion-parameter backbone is used to measure serving cost, with dummy or original weights not trained for recurrence. Controlled quality experiments train models with 90 million, 150 million, and 340 million parameters. The work demonstrates potential cache and serving efficiencies, rather than proving the same quality results at 552 billion parameters.

Eight rounds do not have to mean eight history caches
A looped Transformer feeds the output of a block back into its input and applies the same weights again. The paper uses a gate to inject the original input features on every round, helping preserve the starting information. Recurrence increases computation while adding only a small number of parameters for this input injection.
A conventional approach keeps separate keys and values—the KV used to read earlier tokens—for different rounds. More rounds then mean more stored history. The paper starts with the causal encoder–decoder, or CED, architecture to reduce duplication of long-context information across layers.
In CED, a few encoder layers generate global KV that subsequent decoder layers share. Local computation uses sliding-window attention over the latest 128 tokens. This avoids storing a full long-context cache in every layer, but saving separate caches for every round would still make memory grow with recurrence depth.
The researchers place the loop in the encoder so that the layers producing global KV are themselves refined repeatedly. A decoder-only loop instead keeps querying global information already produced by the encoder, without further improving that representation.

Stochastic-depth training enables last-round sharing
The second step is to sample a recurrence depth for each training sequence instead of always using eight rounds, with an average near eight. This trains the model to operate at different depths. Under the studied conditions, later states approach a stable point, allowing every round of a later token to reuse only the final-round KV of earlier tokens.
In one 150-million-parameter experiment, the state change falls to about 1.7% by round eight. This is a convergence observation for that model, rather than a claim about every layer of every large model or a guarantee that earlier caches can simply be deleted.
The training condition matters. For stochastically trained CED encoder loops at all three scales, replacing per-round with final-round caching changes bits per byte, or BPB, by at most 0.0002; lower BPB is better. A fixed-eight-round control instead worsens from 0.8484 to 0.8801 when subjected to the same sharing.
Loop placement affects access to distant information
The researchers examine long-range dependencies in two ways. One measures prediction quality at different positions in contiguous long documents from PG19, FinePDFs, and GovReport. A separate copy test repeats the first 1,024 tokens verbatim, testing retrieval of earlier information through global KV.
In the 150-million-parameter copy test, the encoder loop reduces loss by 0.084 BPB relative to unlooped CED, while the decoder loop increases it by 0.005. The contiguous-document tests likewise suggest that the loop must update global KV: recurrence confined to a local sliding window falls progressively behind as context grows.

With parameter counts, training tokens, loop placement, and depth matched, looped CED is within 0.001 validation BPB of the looped dense Transformer while retaining one-sixth of its global KV. This comparison concerns the trained small models and measured metric, not identical performance on every downstream task.

Smaller caches allow more concurrent requests
The serving experiment uses the 40-layer, 552-billion-parameter DeepSeek-V4.1-Flash backbone in SGLang, looping layers 2–19 eight times. On four GB200 GPUs with tensor parallelism of four, it compares per-layer/per-round caching, cross-layer sharing alone, and cross-layer sharing plus final-round caching. Per-round caching is emulated by limiting KV-pool capacity while keeping decoding computation matched.
Global KV per token is approximately 60.0 KB, 8.5 KB, and 1.6 KB respectively. The paper reports a 36.8-fold reduction for the full method against the per-layer/per-round baseline. This ratio concerns global KV, rather than the total memory footprint of the entire model.
At 128K context, the first configuration cannot fit one request, cross-layer sharing fits seven, and the full method fits 38. For an 8K-input/1K-output workload, peak throughput rises from 50.9 to 185.1 tokens per second per GPU, about 3.6 times higher. Against the already cross-layer-shared result of 142.5, the improvement is about 1.3 times.

Memory savings do not remove recurrent computation. Eight rounds still make per-step decoding about 3.95 times slower than the unlooped version. Prefill also costs more; reducing it from eight to four rounds lowers the GB200 prefill-cost multiplier from about 5.1 to 2.7. The evidence for retaining over 99% of the validation-loss improvement comes from small-model experiments and does not guarantee the same quality at production scale.
The work addresses how to keep cache capacity from becoming the first obstacle to recurrent computation. Further steps include training a frontier-scale looped CED MoE end to end, verifying convergence and broader long-context reasoning, and testing serving gains in larger, disaggregated deployments.
The research team
The authors are Jiaqi Leng, Minshen Zhang, Zhaofeng Sun, Yu-Yang Qian, Peng Zhao, and Hao Zhang. The source report introduces their work on model architectures, sparse attention, and inference systems.
Jiaqi Leng is a PhD student at UC San Diego’s Hao AI Lab. The source report describes his Fudan University undergraduate background and work on hierarchical sparse attention and context lengths beyond those used in training.

Minshen Zhang is pursuing a computer science master’s at UC San Diego after undergraduate study at ShanghaiTech University. His personal website lists LLM serving, GPU/TPU kernel optimization, sparse attention, and projects including FastAFD.

The source report describes Zhaofeng Sun as a Tsinghua undergraduate collaborating with Hao AI Lab on efficient language models and parallel decoding, and as the first author of InfuseLoop.

Yu-Yang Qian is from Nanjing University’s LAMDA group and has visited Hao AI Lab. His related work includes OnlineSpec for improving speculative decoding through online learning and d3LLM for accelerating diffusion language models.

Peng Zhao is a member of Nanjing University’s LAMDA group, studying online learning, optimization, and related inference problems. Hao Zhang is an assistant professor at UC San Diego and leads Hao AI Lab, working at the intersection of machine learning and systems, with projects including vLLM and DistServe.


Edited by AINRK. Reporting lead: DeepSeek Reworked as a Looped Transformer: Eight Rounds on Four GPUs (opens in a new tab); original reporting: QbitAI; original author: QbitAI; source date: 2026-12-06 15:17 (Beijing time, UTC+8).
Reference: Looping Deeper Without Growing the KV Cache (opens in a new tab)
Reference: Hao AI Lab — People (opens in a new tab)
Reference: Minshen Zhang — Personal Website (opens in a new tab)
After reading
Join the AINRK community
Read how to join the community and connect with people working in AI.




