GSRQ: Gain-Shape Residual Quantization for Sub-1-bit KV Cache
Abstract
Lay Summary
Large language models can read and generate long documents, but doing so requires them to remember information from all previous words. This memory, called the key-value cache, grows linearly with the length of the input and can quickly become too large for efficient use on GPUs. A common way to reduce this memory is to compress groups of numbers into a small set of representative patterns. However, existing methods often learn these representatives by simple averaging. In high-dimensional data, this averaging can shrink the representatives and make them less aligned to the original directions of the data, which is important for preserving model behavior. We propose a new compression method that separates each group representative into two parts-its size and its direction-and refines these two parts separately. This helps preserve directional information while still keeping the memory footprint very small. Our approach improves the quality of compressed key-value caches, especially in extremely low-bit settings. As a result, large language models can handle longer contexts with much lower memory cost while maintaining stronger performance on reasoning and long-document tasks.