Four GB200 GPUs could accommodate 38 concurrent 128K-token decoding requests in a test of a modified DeepSeek V4.1-Flash architecture. With the same eight-pass computation but a separate cache for every layer and pass, the hardware could not fit even one such request. Researchers from UC San Diego, Tsinghua University and Nanjing University report in their paper that sharing the cache cut global key-value (KV) memory per token to 1/36.8 of the baseline. That is a saving in one part of inference memory, not a corresponding reduction in computation.
Why the final pass can stand in for the others
A KV cache stores information about earlier tokens so the model can refer to them as it generates text. In the DeepSeek architecture used for the study, a few encoder layers write the global cache, which the decoder layers share. Each layer also keeps a local cache covering the most recent 128 tokens.
The researchers put 18 encoder layers in a loop. Each pass feeds its result back through the same weights, with a gate mixing the original input features back in. Placing the loop in the encoder lets each pass refine the information written to the global cache. A loop in the decoder, by contrast, would repeatedly read what the encoder had already written.
Reusing weights does not automatically make the cache reusable: different passes can produce different states. The team trained with a randomly chosen number of passes for each sequence, averaging about eight. By the eighth pass, the researchers measured a state change of just 1.7%. At inference, they kept only the final pass’s cache for earlier tokens. Across three model sizes, switching from separate per-pass caches to the final-pass cache changed prediction loss by no more than 0.0002 bits per byte.
Loop placement also mattered in a test where text repeated verbatim after 1,024 tokens. On a 150-million-parameter model, looping the encoder lowered prediction loss by 0.084 bits per byte relative to the architecture without a loop. Looping the decoder instead raised loss by 0.005 bits per byte.
More requests at once, but slower individual decoding steps
The four-GPU test separated the benefits of the two kinds of sharing. Sharing the global cache across layers alone let the system fit seven 128K-token requests. Sharing it across passes as well brought capacity to 38. In a separate workload with 8K input tokens and 1K output tokens per request, the full scheme delivered 3.6 times the peak throughput of the per-layer, per-pass baseline.
That throughput result compares two eight-pass configurations. Against the original model without a loop, an eight-pass decoding step on the 552-billion-parameter backbone still took 3.95 times as long. The researchers also tested a compromise for long prompts: use four passes to process the input, then return to eight for generation. In their experiments, that nearly halved input-processing time while retaining more than 99% of the accuracy gain.

