论文

DCKV:首个端到端训练的 KV 缓存压缩编解码器

DCKV: Learned Transform Coding of the Prompt KV Cache in Hybrid Language Models

精选理由

Prompt 的 KV 缓存太大存不动?DCKV 能压到 bf16 的 1/55,长上下文基准只掉 1.8 分,还全流程可微训练。

DCKV 是一种面向混合架构语言模型 KV 缓存的可微压缩编解码器,首次实现端到端训练。它的变换、量化器和熵模型针对冻结的语言模型联合优化,同时考虑码长和输出变化。在 Qwen3.5-2B 上,DCKV 将压缩后的 token 存储空间压缩到 bf16 的 1/55 以下,三个长上下文基准最多损失 1.8 分;压缩到 1/100 以下时最多损失 3.6 分。

原文 · arXiv cs.AI

DCKV: Learned Transform Coding of the Prompt KV Cache in Hybrid Language Models

Hybrid language models keep a key-value (KV) cache only in their few full-attention layers, but this cache is still the part of a prompt's state that grows with the prompt and that must be stored or moved to reuse it. We present DCKV, a differentiable codec for the KV cache and the first KV-cache codec that is trained end to end. Its transform, its quantizer and its entropy models, which are conditioned on the prompt tokens and on already decoded neighbouring positions, are optimized together against the frozen language model, both for the code length that the entropy models assign and for the change of the model's output. On Qwen3.5-2B, DCKV stores a compressed token in more than 55 times fewer bytes than bf16 at a loss of at most 1.8 points on three long-context benchmarks, and in more than 100 times fewer bytes at a loss of at most 3.6 points.