Research Papers 论文研究 4h ago Updated 22m ago 更新于 22分钟前 48

PuzzleKV: Page-Wise Low-Rank Decomposition for KV Cache Compression PuzzleKV:页面级低秩分解用于KV缓存压缩

PuzzleKV introduces a page-wise low-rank decomposition approach for KV cache compression, partitioning per-head KV caches into fixed-length logical pages to exploit local low-rank structure The method is training- and calibration-free, treating each completed page as an independent compression unit and decomposing pages within each layer and KV head At ~60% of original KV cache storage, PuzzleKV achieves >96% of Full KV performance across evaluated models and benchmarks, outperforming Global SVD PuzzleKV提出页面级低秩分解方法,将每个per-head KV cache划分为固定长度逻辑页面进行独立压缩 该方法无需训练和校准,直接利用页面内显著的低秩结构,在自回归解码过程中增量压缩新页面 在约60%原始KV cache存储下,PuzzleKV保持超过96%的Full KV性能,在RULER和LongBench基准上表现优异 结合量化技术后,仅需18.7%原始存储即可维持93%以上的Full KV性能,实现更激进的压缩比

62
Hot 热度
76
Quality 质量
72
Impact 影响力

Analysis 深度分析

TL;DR

  • PuzzleKV introduces a page-wise low-rank decomposition approach for KV cache compression, partitioning per-head KV caches into fixed-length logical pages to exploit local low-rank structure
  • The method is training- and calibration-free, treating each completed page as an independent compression unit and decomposing pages within each layer and KV head
  • At ~60% of original KV cache storage, PuzzleKV achieves >96% of Full KV performance across evaluated models and benchmarks, outperforming Global SVD on RULER
  • When combined with quantization for aggressive compression, PuzzleKV retains >93% of Full KV performance using only 18.7% of original storage
  • Previous low-rank methods relied on fixed projection spaces from model weights, calibration activations, or shared bases over broad regions, which may miss fine-grained important information

Why It Matters

KV cache memory remains a critical bottleneck for long-context LLM inference, and this work offers a practical, zero-overhead compression strategy that requires no additional training or calibration. For practitioners deploying long-context models in production, PuzzleKV provides a plug-and-play solution that can significantly reduce memory footprint while preserving near-full performance, making extended context windows more feasible on constrained hardware.

Technical Details

  • Page-wise decomposition: Each per-head KV cache is partitioned into fixed-length logical pages, where substantial low-rank structure is observed within individual pages, enabling independent compression of each page
  • Training- and calibration-free: Unlike prior methods that derive fixed projection spaces from model weights or calibration activations, PuzzleKV requires no additional training data or calibration step
  • Incremental autoregressive compression: During decoding, newly eligible pages are incrementally compressed while attention is computed directly over both dense and factorized pages
  • Benchmarks: Evaluated on RULER and LongBench across multiple models and context lengths, showing substantial gains over Global SVD on RULER and competitive performance on LongBench
  • Quantization compatibility: PuzzleKV can be combined with quantization to achieve aggressive compression ratios, retaining >93% Full KV performance at only 18.7% storage

Industry Insight

  • The page-wise approach suggests that local low-rank structure in KV caches is underexploited; future compression methods could similarly benefit from localized rather than global decomposition strategies
  • The training- and calibration-free nature of PuzzleKV makes it immediately deployable in existing inference pipelines without retraining, lowering the barrier for adoption in production LLM systems
  • The strong performance at 60% storage with near-full accuracy, and the ability to push to ~19% storage with quantization, indicates that KV cache compression is approaching a practical trade-off frontier where memory savings no longer require significant quality compromises

TL;DR

  • PuzzleKV提出页面级低秩分解方法,将每个per-head KV cache划分为固定长度逻辑页面进行独立压缩
  • 该方法无需训练和校准,直接利用页面内显著的低秩结构,在自回归解码过程中增量压缩新页面
  • 在约60%原始KV cache存储下,PuzzleKV保持超过96%的Full KV性能,在RULER和LongBench基准上表现优异
  • 结合量化技术后,仅需18.7%原始存储即可维持93%以上的Full KV性能,实现更激进的压缩比

为什么值得看

本文针对LLM长上下文推理中的KV cache内存瓶颈问题,提出了一种高效且实用的压缩方案。无需训练和校准的特性使其易于部署,同时保持了接近完整KV cache的性能表现,对实际生产环境具有重要参考价值。

技术解析

  • 页面划分策略:将每个per-head的KV cache划分为固定长度的逻辑页面,观察到单个页面内存在显著的低秩结构,每个完成的页面作为独立的压缩单元
  • 分解与注意力计算:在每层和每个KV head内对页面进行低秩分解,支持在密集页面和因子化页面之间直接计算注意力,无需额外转换开销
  • 增量压缩机制:在自回归解码过程中,对新完成的页面进行增量压缩,实现动态内存管理
  • 实验验证:在多个模型、上下文长度和基准测试(RULER、LongBench)下验证有效性,60%存储下保持96%+性能,结合量化后18.7%存储保持93%+性能

行业启示

  • 页面级压缩策略为KV cache优化提供了新思路,避免了全局共享基或固定投影空间的局限性,能够捕捉更细粒度的重要信息
  • 无需训练和校准的特性降低了部署门槛,适合快速集成到现有LLM推理系统中
  • 低秩分解与量化的组合方案展示了进一步压缩的潜力,为长上下文推理的内存优化提供了灵活的技术路径

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Inference 推理 Quantization 量化 Research 科学研究