DepthWeave-KV: Unlocking Long Context Efficiency

DepthWeave-KV tackles long-context LLM memory bottlenecks with token-adaptive cache compression, achieving 8.3x reduction and high throughput.

Diagram illustrating the DepthWeave-KV architecture showing cross-depth factorization and token-conditional routing.
Conceptual overview of the DepthWeave-KV KV cache compression mechanism.

The insatiable demand for longer context windows in large language models is hitting a hard ceiling: the memory bandwidth and capacity required for key-value (KV) caches. Existing compression techniques often apply blanket strategies, leading to performance degradation when specific layers or tokens require nuanced preservation. This challenge is directly addressed by the introduction of DepthWeave-KV, a novel token-adaptive cache compression method detailed in recent findings from Anna Cordoba, Adam Puente Tercero, Nerea Angulo Hijo, Mar Linares Tercero, Julia Barrientos et al. on arXiv.

Cross-Depth Factorization for Leaner Caches

DepthWeave-KV revolutionizes KV cache management by factorizing key and value states across adjacent transformer layers. It leverages shared low-rank channel bases, a departure from uniform compression approaches. Crucially, it retains lightweight, token-specific residuals only where attention mechanisms are most sensitive. This cross-depth residual factorization is coupled with a token-conditional depth router. This router intelligently allocates higher reconstruction ranks to tokens that carry instructions or are critical for retrieval, ensuring that semantically rich information is prioritized. Furthermore, the system employs calibration-free online error tracking, utilizing attention-output probes to dynamically adapt compression during generation, eliminating the need for base model retraining.

Accelerated Inference with Fused Implementation

Beyond the architectural innovation, the practical deployment of DepthWeave-KV is enhanced by a fused CUDA implementation. This optimization seamlessly integrates basis lookup, residual dequantization, and attention projection. The result is a significant reduction in decode-time memory traffic. Tested across demanding benchmarks like LongBench, Needle-in-a-Haystack, and L-Eval, alongside long-form QA and summarization tasks, DepthWeave-KV demonstrates its efficacy. The method achieves near-full-cache task quality while drastically cutting memory usage, outperforming prior compressed caches in both average score and retrieval accuracy. This translates to a remarkable 8.3x KV memory reduction and a throughput of 72.8 tokens per second at a 64K context length.

© 2026 StartupHub.ai. All rights reserved. You may not republish this article in full without a license. Search engines and AI research tools may crawl and summarize for reference. Bulk reproduction or model training requires a license. See our terms.
Daniel Singer

Written by

Daniel Singer

Editor, StartupHub.ai

Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.

More from Daniel Singer