Native Compressed Attention: Trainable Attention with Non-Uniform KV Compression

Fu, Yaosheng

–arXiv.org Artificial Intelligence 

As agentic workloads demand ever longer contexts, the KV cache has become a major bottleneck in serving, since its memory limits how many requests a GPU can serve and how many earlier prompts stay cached for reuse. Training-free KV compression shrinks the KV cache of an existing model without adapting the model to it, while DeepSeek's Compressed Sparse Attention was introduced in models pretrained with compressed attention. We introduce Native Compressed Attention (NCA), a trainable attention mechanism that enables existing models, through short fine-tuning, to attend over a chunkwise-compressed KV cache in both prefill and decode. Based on the observation that a small subset of KV tokens and attention heads carries most of the measured importance, NCA adopts non-uniform compression in two ways. Across tokens, a learned scorer retains the important tokens of each chunk individually as anchors and merges the remainder into block summaries. Across attention heads, each head receives its own anchor budget according to its measured sensitivity to compression. We apply NCA to three 4B models, Qwen3-4B-Instruct-2507 (full attention), Qwen3.5-4B (hybrid with Gated DeltaNet) and Nemotron-3-Nano-4B (hybrid with Mamba2), with 2,000 training steps and 0.2-1.4% extra parameters each. On average across long-context and long-reasoning benchmarks, NCA achieves scores comparable to the uncompressed model at 4-8x compression on all three models, while substantially outperforming existing KV compression methods in most settings. On Qwen3.5-4B with 4x compression, measured prefill and decode timings yield an estimated throughput gain of up to 3.5x under static batching, combining faster attention with a larger batch in memory.