# LoopKV: Loop-Aware KV Cache Compression for Serving Looped Transformers

DevFeed: [LoopKV: Loop-Aware KV Cache Compression for Serving Looped Transformers](<https://devfeed.tech/articles/loopkv-loop-aware-kv-cache-compression-for-serving-looped-transformers-116482.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.04137>)

Author: Tianle Zhou, Yang Zhang, Tianyu Wu, Zhuohan Wang, William Nixon, Juncheng Yang

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [quantization](<https://devfeed.tech/topics/quantization.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [vllm](<https://devfeed.tech/topics/vllm.md>)

Tags: [attention](<https://devfeed.tech/tags/attention.md>), [cache](<https://devfeed.tech/tags/cache.md>), [compression](<https://devfeed.tech/tags/compression.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [graph](<https://devfeed.tech/tags/graph.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [kv-cache](<https://devfeed.tech/tags/kv-cache.md>), [latency](<https://devfeed.tech/tags/latency.md>), [layer](<https://devfeed.tech/tags/layer.md>), [loops](<https://devfeed.tech/tags/loops.md>), [m-plan](<https://devfeed.tech/tags/m-plan.md>), [measurements](<https://devfeed.tech/tags/measurements.md>), [memory](<https://devfeed.tech/tags/memory.md>), [offline](<https://devfeed.tech/tags/offline.md>), [planner](<https://devfeed.tech/tags/planner.md>), [precision](<https://devfeed.tech/tags/precision.md>), [quantization](<https://devfeed.tech/tags/quantization.md>), [serving](<https://devfeed.tech/tags/serving.md>), [transformers](<https://devfeed.tech/tags/transformers.md>)

## AI overview

LoopKV reduces KV-cache memory for looped transformers by profiling each (loop, layer) cell offline and choosing 4-bit or 2-bit storage, or reuse of the final loop's cache, under predicted damage and storage budgets. Its decoder reads high bits first and fetches low bits only when attention requires 4-bit precision; a fused vLLM kernel executes the plan. On Ouro-1.4B on one RTX PRO 6000, the memory-optimized LoopKV-M plan stored 35% less KV than KIVI-4 with the same fused kernel and CUDA graph, and achieved 1.7-2.2x its goodput under a latency service-level objective at a 16K-token maximum length. Across six public benchmarks, no average fell significantly below BF16. These results are reported for the stated model and setup.

## Source excerpt

arXiv:2611.04137v1 Announce Type: cross Abstract: Looped transformers apply a shared block several times per token to improve accuracy without adding parameters. For models such as Ouro that keep a separate key-value (KV) cache per loop, cache memory limits the batch size that amortizes repeated weight reads. Uniform-bit quantization and fixed rules per loop do not allocate precision according to each layer's sensitivity in each loop. Measurements on Ouro show that quantization sensitivity varies across (loop, layer) cells, and the sum of individual cell damages approximates the overall output damage. Sharing damage also varies by cell, with later loops generally tolerating sharing better. Skipping low-attention values to save reads produces errors that compound across loops. LoopKV uses a one-time offline profile to choose 4-bit storage, 2-bit storage or reuse of the final loop's KV for each cell. The planner minimizes reads under budgets for predicted damage and storage. During decoding, each loop reads the high 2 bits of each 4-bit value and fetches the low bits only where its own attention weights require 4-bit precision. A single fused kernel in vLLM executes the plan. Serving Ouro-1.4B on one RTX PRO 6000, the memory-optimized LoopKV-M plan stores 35% less KV than uniform 4-bit quantization (KIVI-4) on the same fused kernel and CUDA graph. It sustains 1.7-2.2x KIVI-4's goodput under a latency service-level objective with a 16K-token maximum length. None of its averages on six public benchmarks falls significantly below BF16's.