# Poster 28803

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/28803

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi everyone, this is Yucheng. Thanks for your interest on our latest research SCBench. So here I'm going to introduce you a KVCache-centric analysis of long-context LLM inference. So we're starting with KVCache. So KVCache is a critic.
critical concept of LLM inference. However, the importance of KV cache on the full life cycle of LLM inference is often overlooked. So for example, the KV cache is important from the very beginning such as it can be used for prefix caching, it can be used to sparse loading etc etc so it's important.
Since from the beginning till the end.
This figure illustrates the full life cycle of KiwiCash. So the first stage of KiwiCash is the KiwiCash generation where we often use full attention operations to produce the key and Vs and those tensors are cached for later decoding. The second stage is KiwiCash compression where you can process the KiwiCash to reduce the memory footprint of KiwiCash.
The third stage of KiwiCache is KiwiCache retrieval where you can merge similar KiwiCache to one so that you can load fewer KiwiCache from the slow CPU memory or GPU HBM to SRAM. The fourth stage of KiwiCache is KiwiCache loading where you can selectively load the top K KiwiCache from the memory to SRAM.
SRAM and only do full size attentions on the partial Kv-cache to reduce the computational overhead and memory loading overhead. So many researchers propose numerous methods optimizing a different stage of Kv -cache to accelerate LLM inference. For example, for Kv-cache generations we have prompt compressions
SSN matters and sparse attention which can largely reduce the complexity in the KVK's generation stage.
And we also have quantizations and KV-cache compressions, which we reduce the overall size of KV-cache to reduce the memory footprint of the second stage. We also have cache blend for the third stage and crisp retrieval attention, squeeze attention, etc. for the fourth stage. However,
There is no benchmark to compare them all from the KiwiCache perspective so they can have a fair comparison among them all. For example, the traditional log context benchmark infinite bench will fail to distinguish method for KiwiCache generations and KiwiCache compression method. They fail to compare.
pair a different optimization method across the stage.
So ST bench aims to propose a unified evaluation method so we can compare all the full life cycle of KVCache optimization method. So our research, so here is the key takeaway of our research. So first, our research is centered around KVCache as we found KVCache is the key bottleneck of long context LLM inference.
However, we found there are four stages of KVCash for the full life cycle and there are numerous methods optimizing each stage of the KVCash management. However, there's no benchmark that can measure and can provide a fair comparison for optimization method across the four stages. So specifically, we propose this multi -term model.
and the multi-request scenario. So our evaluation scenario covers key -v cache generation compression retrieval and loading. So we can distinguish the limitations and the advantages for different optimization methods on key -v cache management. So our key insight.
includes that the sub -ON memory is almost invisible and we found the task performance is highly different across the different complexity and all long context method experienced performance degradations as the compression rate decrease and we finally with a long generation scenario exhibit
It's a big distribution shift issue, so we propose new challenge for future studies.
