scimeatlas

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

ACL 2024Architectures and efficiency › Quantizationapproach: KV cache quantizationopen problems in this approach233 citations (OpenAlex)

Shanghai Jiao Tong University · Xiaohongshu · South China University of Technology

Read the paperPlace an idea next to itCheck your own paper ↗

11measured effects
9improved
1no clear effect
1mixed

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 changedWhereMeasuredEffect
Use PyramidInfer instead of full-cache AccelerateLLaMA 2-13B · Max-throughput test (512+256)throughput (token/s): 581 -> 1678Improved
Use PyramidInfer instead of H2OLLaMA 2-13B · Max-throughput test (512+256)throughput (token/s): 769 -> 1678Improved
Add PyramidInfer on top of DeepspeedDeepspeed, LLaMA 2-13B · Max-throughput test (512+256)throughput (token/s): 972 -> 1887Improved
Use PyramidInfer instead of full cache: larger max batch sizeLLaMA 2-13B · Max-throughput test (512+256)max batch size: 42 -> 88Improved
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 · GSM8Kaccuracy: 26.82 -> 29.56Improved
Reduce PvC length following the power-law pattern instead of uniformly (ablation)PyramidInfer, LLaMA 2-13B · MMLUaccuracy: 54.8 -> 55.7Improved
Reduce PvC length following the power-law pattern instead of uniformly (ablation)PyramidInfer, LLaMA 2-13B · wikitext-v2perplexity: 4.55 -> 4.20Improved
Gather original position encodings instead of re-encoding positions (ablation)PyramidInfer, LLaMA 2-13B · GSM8Kaccuracy: 29.12 -> 29.56Improved
Gather original position encodings instead of re-encoding positions (ablation)PyramidInfer, LLaMA 2-13B · MMLUaccuracy: 55.5 -> 55.7Improved
Use PyramidInfer at small batch sizeLLaMA 2-7B · Throughput vs batch size (512+256)throughputNo clear effect
Increase the recent sequence ratio S_r (ablation)PyramidInfer, LLaMA 2-13B · wikitext-v2perplexity and KV memoryMixed

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.

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

Open problems in KV cache quantization

Which KV cache and weight compression methods hold up on larger models, new architectures and real serving?

All 4 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy