FreqDepthKV Compresses LLM KV Caches, Boosts Long-Context Inference

Anna C\'ordoba, Adam Puente Tercero, Nerea Angulo Hijo, Mar Linares Tercero, Julia Barrientos, Ainhoa Miranda, Jes\'us Olivera· July 8, 2026 View original

Summary

FreqDepthKV is a new inference-time compression method for LLM KV caches that uses frequency-guided depth sharing and sparse residuals to significantly reduce memory and bandwidth costs while maintaining accuracy for long-context tasks. It adapts compression based on prompt structure without retraining, improving decoding throughput and reducing memory usage.

A novel inference-time compression technique, FreqDepthKV, has been introduced to address the memory and bandwidth limitations of Key-Value (KV) caches in large language models (LLMs) during long-context inference. This method factorizes adjacent-layer KV states into shared low-frequency depth components and sparse high-frequency residuals. FreqDepthKV employs a lightweight online probe to dynamically assign attention heads to different cache modes (shared-depth, residual-depth, or exact) based on their contribution to attention logits, allowing the compression policy to adapt to varying prompt structures without requiring model retraining. Evaluations across multiple long-context benchmarks, including question answering, retrieval, summarization, and code generation, demonstrate that FreqDepthKV preserves task accuracy with significantly smaller cache budgets. It achieves substantial improvements in decoding throughput and reduces peak KV memory, offering an effective compression ratio of 3.9x.

Why it matters

This innovation significantly reduces the computational overhead and memory footprint of LLMs, making long-context inference more efficient and cost-effective, which is crucial for deploying powerful AI models in real-world applications.

How to implement this in your domain

  1. 1Evaluate FreqDepthKV's performance on your specific LLM workloads and hardware configurations.
  2. 2Integrate the FreqDepthKV compression method into your LLM inference pipelines.
  3. 3Monitor the trade-off between compression ratio and task accuracy for different applications.
  4. 4Optimize deployment strategies to leverage the reduced memory and increased throughput.

Who benefits

Cloud ComputingAI DevelopmentSoftwareData Centers

Key takeaways

  • FreqDepthKV significantly compresses LLM KV caches for long-context inference.
  • It maintains high task accuracy across various benchmarks.
  • The method dynamically adapts compression without requiring model retraining.
  • It improves decoding throughput and reduces memory footprint, making LLMs more efficient.

Original post by Anna C\'ordoba, Adam Puente Tercero, Nerea Angulo Hijo, Mar Linares Tercero, Julia Barrientos, Ainhoa Miranda, Jes\'us Olivera

"arXiv:2607.06519v1 Announce Type: new Abstract: Long-context LLM inference is increasingly limited by the memory and bandwidth cost of KV caches, yet aggressive compression can remove the layer-specific evidence needed for retrieval and multi-step reasoning. We introduce FreqDept…"

View on X

Originally posted by Anna C\'ordoba, Adam Puente Tercero, Nerea Angulo Hijo, Mar Linares Tercero, Julia Barrientos, Ainhoa Miranda, Jes\'us Olivera on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses