Research map / Architectures and efficiency / Quantization
PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inference
Dongjie Yang, Xiaodong Han, Yan Gao, Yao Hu, Shilin Zhang, Hai Zhao
Shanghai Jiao Tong University · Xiaohongshu · South China University of Technology
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Use PyramidInfer instead of full-cache Accelerate | LLaMA 2-13B · Max-throughput test (512+256) | throughput (token/s): 581 -> 1678 | Improved |
| Use PyramidInfer instead of H2O | LLaMA 2-13B · Max-throughput test (512+256) | throughput (token/s): 769 -> 1678 | Improved |
| Add PyramidInfer on top of Deepspeed | Deepspeed, LLaMA 2-13B · Max-throughput test (512+256) | throughput (token/s): 972 -> 1887 | Improved |
| Use PyramidInfer instead of full cache: larger max batch size | LLaMA 2-13B · Max-throughput test (512+256) | max batch size: 42 -> 88 | Improved |
| Reduce PvC length following the power-law pattern (reduce less in shallow layers) instead of reducing more in shallow layers (ablation) | PyramidInfer, LLaMA 2-13B · GSM8K | accuracy: 26.82 -> 29.56 | Improved |
| Reduce PvC length following the power-law pattern instead of uniformly (ablation) | PyramidInfer, LLaMA 2-13B · MMLU | accuracy: 54.8 -> 55.7 | Improved |
| Reduce PvC length following the power-law pattern instead of uniformly (ablation) | PyramidInfer, LLaMA 2-13B · wikitext-v2 | perplexity: 4.55 -> 4.20 | Improved |
| Gather original position encodings instead of re-encoding positions (ablation) | PyramidInfer, LLaMA 2-13B · GSM8K | accuracy: 29.12 -> 29.56 | Improved |
| Gather original position encodings instead of re-encoding positions (ablation) | PyramidInfer, LLaMA 2-13B · MMLU | accuracy: 55.5 -> 55.7 | Improved |
| Use PyramidInfer at small batch size | LLaMA 2-7B · Throughput vs batch size (512+256) | throughput | No clear effect |
| Increase the recent sequence ratio S_r (ablation) | PyramidInfer, LLaMA 2-13B · wikitext-v2 | perplexity and KV memory | Mixed |
Later papers that compared with this method
4 later accepted papers report PyramidInfer as a baseline in their results tables; 4 of them report a better number on most of the results they share with it.
- Token Sparse Attention: Efficient Long-Context Inference with Interleaved Token Selection (ICML 2026 · better on 1 of 1 shared result)
- SCOPE: Optimizing Key-Value Cache Compression in Long-context Generation (ACL 2025 · better on 4 of 4 shared results)
- SpindleKV: A Novel KV Cache Reduction Method Balancing Both Shallow and Deep Layers (ACL 2025 · better on 3 of 3 shared results)
- XQuant: Achieving Ultra-Low Bit KV Cache Quantization with Cross-Layer Compression (EMNLP 2025 · better on 2 of 2 shared results)
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems this paper states
- “Adds extra computation, giving limited speedup with a small batch size.” → Speed gains shrink at small batch sizes or in prefill. (an open problem in KV cache quantization)
Open problems in KV cache quantization
Which KV cache and weight compression methods hold up on larger models, new architectures and real serving?
- Offline calibration adds setup cost and may not match deployment data. · 14 papers state it
- Larger models are untested, so results stop at small and mid-size LLMs. · 12 papers state it
- Speed gains shrink at small batch sizes or in prefill. · 10 papers state it
Closest papers by meaning
- RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression (ICML 2025 · similarity 0.92)
- KV Cache is 1 Bit Per Channel: Efficient Large Language Model Inference with Coupled Quantization (NeurIPS 2024 · similarity 0.92)
- SqueezeAttention: 2D Management of KV-Cache in LLM Inference via Layer-wise Optimal Budget (ICLR 2025 · similarity 0.91)
- SpeCache: Speculative Key-Value Caching for Efficient Generation of LLMs (ICML 2025 · similarity 0.91)
- Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs (ICLR 2024 · similarity 0.91)
- MiniCache: KV Cache Compression in Depth Dimension for Large Language Models (NeurIPS 2024 · similarity 0.90)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.