Executive Summary
EVICPRESS is a novel KV-cache management system that jointly optimizes two previously separate techniques: lossy compression and multi-tier eviction. By using a unified utility function to balance generation quality against retrieval latency, it achieves up to a 2.19× speedup in time-to-first-token (TTFT) compared to traditional methods while maintaining equivalent model accuracy.
The KV-Cache Bottleneck
As Large Language Models (LLMs) handle increasingly longer contexts and more concurrent users, the KV-cache—the intermediate states stored to avoid redundant computations—has become a massive memory bottleneck. GPU memory is fast but expensive and strictly limited.
To manage this, researchers typically use two strategies:
- Eviction: Moving the cache from GPU memory to slower, larger tiers like CPU RAM or SSDs. This preserves quality but spikes latency (TTFT) when the cache must be fetched back.
- Compression: Reducing the cache size (e.g., by dropping "unimportant" tokens). This saves space but can lead to "quality collapse" if critical information is lost.
The gap addressed by EVICPRESS is that prior systems treat these as independent knobs. They might use a fixed compression rate and then apply a standard eviction policy like Least Recently Used (LRU). This ignores a crucial reality: different contexts have different sensitivities. Compressing a Wikipedia article might destroy its factual accuracy, while a repetitive chat history might be highly compressible with zero impact on quality.
The EVICPRESS Approach: Joint Optimization
EVICPRESS introduces a system that "jointly" decides whether to compress or evict on a per-context basis across multiple storage tiers (GPU, CPU, SSD).
The Unified Utility Function
The core of the system is a mathematical score: $$Util = (\alpha \cdot \text{quality} - \text{TTFT}) \cdot \text{frequency}$$ Here, $\alpha$ is a user-defined parameter that weights the importance of quality vs. speed. This allows the system to quantify the "value" of every possible configuration (e.g., "Keep in CPU with 50% compression" vs. "Evict to SSD with no compression").
System Implementation
- Profiling Module: Since sensitivity isn't obvious from context length alone, EVICPRESS periodically runs lightweight "probes" to measure how much quality drops at various compression levels for each specific context.
- Greedy Optimization: Finding the absolute best arrangement of thousands of caches across tiers is an NP-hard problem. EVICPRESS uses a fast greedy heuristic to rearrange caches whenever a storage tier hits capacity, prioritizing the retention of configurations that offer the highest utility.
- Integration: Built on top of vLLM and LMCache, the system orchestrates cache movement and compression across five popular models, including Llama-3.1-8B and Mistral-7B.
Key Insights and Results
- Sensitivity is Non-Uniform: Context type matters more than length. Wikipedia-based contexts are highly sensitive to compression, while narrative stories are much more robust. EVICPRESS exploits this by aggressively compressing robust contexts to free up space for sensitive ones.
- Disk Requires More Compression: A counter-intuitive finding is that caches moved to the SSD should be compressed more than those in the CPU. This is because the bottleneck for SSDs is transfer time; compression reduces data volume enough to significantly lower TTFT.
- Performance Gains: Compared to baselines, EVICPRESS reduces TTFT by 1.43× to 3.77× and improves generation quality by 13% to 55% at the same latency level. It even outperforms IMPRESS (a state-of-the-art importance-aware eviction system) by reducing TTFT by up to 5.2×.
Conclusion
By breaking the silos between compression and eviction, EVICPRESS provides a more flexible and efficient framework for LLM serving. While future work will explore distributed serving and more advanced compression techniques like quantization, the current system already offers a substantial leap in handling the memory demands of modern long-context applications.
Summary updated