HACK: Homomorphic Acceleration via Compression of the Key-Value Cache for Disaggregated LLM Inference
Zeyu Zhang, Haiying Shen, Shay Vargaftik, Ran Ben Basat, Michael Mitzenmacher, Minlan Yu · 2025 · 16 citationsRead the paper
Disaggregated Large Language Model (LLM) inference decouples the compute-intensive prefill stage from the memory-intensive decode stage, allowing low-end, compute-focused GPUs for prefill and high-end, memory-rich GPUs for decode, which reduces cost while maintaining high throughput. However, transmitting Key-Value (KV) data between the two stages can be a bottleneck, especially for long prompts. Additionally, the computational overhead in the two stages is key for optimizing Job Completion Time (JCT), and KV data size can become prohibitive for long prompts and sequences. Existing KV quantization methods can alleviate transmission and memory bottlenecks, but they introduce significant dequantization overhead, exacerbating the computation time. We propose Homomorphic Acceleration via Compression of the KV cache (HACK) for disaggregated LLM inference. HACK eliminates the heavy KV dequantization and directly computes on quantized KV data to approximate and reduce the cost of expensive matrix multiplication. Extensive trace-driven experiments show that HACK reduces JCT by up to 70.9% compared to disaggregated LLM inference baseline and by up to 52.3% compared to state-of-the-art KV quantization methods.
What the full text shows
Working prototype- Reduction in average Job Completion Time (JCT) compared to disaggregated LLM inference baseline. — up to 70.9% (Across tested models and datasets)
- Reduction in average JCT compared to state-of-the-art KV quantization methods (CacheGen and KVQuant). — up to 52.3% (Across tested models and datasets)
- Reduction in average JCT for Llama-3.1 70B on A10G prefill instances across specific datasets. — 19.2% (IMDb), 22.5% (HumanEval), 36.8% (arXiv), 41.5% (Cocktail) vs CacheGen (Llama-3.1 70B on A10G prefill instances)
- Accuracy improvement compared to CacheGen and KVQuant. — 0.16%-0.78% higher on average (Using partition size Π=64 across all datasets and models)
- Mitigation of network bottlenecks as the ratio of prefill to decode replicas (p) increases from 1 to 8. — JCT increase of 31-43% vs 127% for baseline (Llama-3.1 70B and Cocktail dataset)
- Setup
- Tested on AWS GPU instances (A10G, V100, T4, L4 for prefill; A100 for decode) using models Mistral-v0.3 7B, Phi-3 14B, Yi 34B, Llama-3.1 70B, and Falcon 180B across four datasets (IMDb, arXiv, Cocktail, HumanEval).
- How
- HACK implements homomorphic 2-bit asymmetric quantization of the KV cache, allowing matrix multiplications to be performed directly on quantized data to eliminate dequantization overhead. It is integrated into the FlashAttention-2 kernel and built on the vLLM framework.
- Limitations
- Use of 2-bit quantization requires small partition sizes to maintain accuracy, which can increase JCT. · Current implementation relies on Triton, which only supports INT8 computation and incurs runtime overhead.
Summarized by Gemma 4 from the open-access full text · 22 Nov 2026. Read it