BeNice! KV-sharing for looped Transformers cuts GPU memory 66%, TTFT latency 83.6%

realDanFu · x · 2026-10-26

A paper from UC San Diego and Together AI (including Daniel Fu) proposes BeNice!, tackling the problem that looped Transformers generate independent KV-caches per recurrence, making memory grow linearly.

The two-stage method first applies stochastic-depth pretraining to induce contractive residual dynamics, pushing representations across recurrences toward a common limit; then BeNice! post-training broadcasts the final recurrence's KV-cache into the first recurrence, training compatible residuals while preserving quality.

On a 1.3B model: total GPU memory drops 66.2%; in simulated long-context workloads throughput improves up to 23.6% and 90th-percentile time-to-first-token drops 83.6% with no quality loss. KV-sharing composes with memory-efficient mixers (MLA, Kimi delta attention) and low-precision KV quantization (fp8, mxfp8, nvfp4), improving cache hit rates by up to 31.4%.

Original post →

More from Infra

Infra channel →