ImageNet classification with deep convolutional neural networks
Alex Krizhevsky, Ilya Sutskever et al.
0
Citations
0
Influential Citations
—
Venue
2024
Year
… Notably, compared with 8-bit quantization, a nearly lossless KV cache compression, CacheGen is still able to reduce the delay of loading context by 1.67-1.81×. • In terms of the …
Large language models (LLMs) are increasingly used in interactive applications where low latency is critical. A major bottleneck in serving LLMs is the loading of key-value (KV) caches, which store intermediate attention states for context tokens. As context lengths grow, the KV cache becomes large, and transferring it from memory to compute units can dominate inference time. CacheGen addresses this bottleneck by compressing and streaming KV caches more efficiently, directly improving user-perceived latency.
Existing methods like 8-bit quantization reduce KV cache size but still incur significant loading delays. CacheGen goes further by achieving nearly lossless compression while cutting loading delay by 1.67-1.81x. This is a substantial improvement that could make long-context LLM applications more practical, enabling faster response times in chatbots, code assistants, and other real-time AI services.
According to the abstract, CacheGen reduces the delay of loading context by 1.67-1.81x compared to 8-bit quantization, while achieving nearly lossless compression. This means that for a given context, the time to load the KV cache is significantly reduced, which can translate to faster end-to-end inference. The exact compression ratios and quality metrics are not detailed in the abstract, but the latency improvement is clear.
CacheGen addresses a critical performance bottleneck in LLM serving, making it possible to serve longer contexts with lower latency. This could enable more sophisticated applications that rely on extensive context, such as document analysis, multi-turn dialogues, and code generation. The approach also highlights the importance of considering data transfer and streaming in model serving, not just compute optimization. As LLMs continue to grow in size and context length, techniques like CacheGen will be essential for delivering responsive AI experiences.
Alex Krizhevsky, Ilya Sutskever et al.
Ashish Vaswani, Noam Shazeer et al.
Douglas M. Bates, Martin Mächler et al.
Diederik P. Kingma, Jimmy Ba