LGAICLITMar 31, 2025

SQuat: Subspace-orthogonal KV Cache Quantization

arXiv:2503.24358v23 citationsh-index: 5
Originality Highly original
AI Analysis

This addresses memory efficiency for large language model inference, offering a novel compression technique without fine-tuning, though it is incremental within KV cache optimization.

The paper tackles the memory overhead of key-value (KV) cache in LLMs by introducing SQuat, a quantization method that minimizes errors through subspace-orthogonal constraints, resulting in a 2.17 to 2.82 reduction in peak memory and 2.45 to 3.60 improvement in throughput while outperforming existing algorithms on benchmarks.

The key-value (KV) cache accelerates LLMs decoding by storing KV tensors from previously generated tokens. It reduces redundant computation at the cost of increased memory usage. To mitigate this overhead, existing approaches compress KV tensors into lower-bit representations; however, quantization errors can accumulate as more tokens are generated, potentially resulting in undesired outputs. In this paper, we introduce SQuat (Subspace-orthogonal KV cache quantization). It first constructs a subspace spanned by query tensors to capture the most critical task-related information. During key tensor quantization, it enforces that the difference between the (de)quantized and original keys remains orthogonal to this subspace, minimizing the impact of quantization errors on the attention mechanism's outputs. SQuat requires no model fine-tuning, no additional calibration dataset for offline learning, and is grounded in a theoretical framework we develop. Through numerical experiments, we show that our method reduces peak memory by 2.17 to 2.82, improves throughput by 2.45 to 3.60, and achieves more favorable benchmark scores than existing KV cache quantization algorithms.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes