# Batch-Max: Higher LLM Throughput using Larger Batch Sizes and KV Cache Compression

Preprint · Michael R. Metel, Boxing Chen, Mehdi Rezagholizadeh

- Archive id: arxiv:2412.05693
- Published: 2024-12-07
- arXiv: https://arxiv.org/abs/2412.05693
- Citations: 0
- Source URL: https://arxiv.org/abs/2412.05693
- PDF: https://arxiv.org/pdf/2412.05693
- Provenance: arxiv

## Abstract

Several works have developed eviction policies to remove key-value (KV) pairs from the KV cache for more efficient inference. The focus has been on compressing the KV cache after the input prompt has been processed for faster token generation. In settings with limited GPU memory, and when the input context is longer than the generation length, we show that by also compressing the KV cache during the input processing phase, larger batch sizes can be used resulting in significantly higher throughput while still maintaining the original model's accuracy.

_Abstract reproduced under CC0-1.0 (arXiv descriptive metadata)._

Topics: [Efficient Training & Inference](https://space-kitty.com/topics/efficient-ai)

---
Space Kitty Archive · https://space-kitty.com · API: https://space-kitty.com/api/v1 · MCP: https://space-kitty.com/mcp · Premium: $0.20/request via x402 (Base Sepolia (testnet)). Metadata: arXiv (CC0), OpenAlex (CC0), Europe PMC (CC BY/CC0 works), ClinicalTrials.gov.
