Author Response I
Thank you for your time and care in reviewing our work, and highlighting the strengths of our prefill method, as the prefill stage is not considered in many prior works. Please see our response to your other comments below.
---
**[W1]** It's pretty tricky to manage memory in this cascading way. I would say it's challenging to manage small amount of memory, e.g., two bytes, at arbitrary locations. It's very likely to cause memory fragmentation and hurt the throughput as a result, which a practical serving system should avoid.
**[Response]** Our cache allocates a contiguous memory buffer at initialization. Therefore, All sub-cache buffers are actually part of the same contiguous buffer, with boundaries being set analytically. By doing this, we mitigate any possible memory fragmentation issues. However, due to the update procedure, the stored tokens will not necessarily be in sorted order. Therefore, we also track the integer positional indices as well in order to apply the correct positional encodings.
---
**[W2]** There are a few earlier and more comprehensive works (compared to StreamingLLM) that tackles the prefilling stage with sparsity, e.g., MInference[1], it would be compare against [1]. [1] MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attention
**[Response]** Our cascading cache is optimized for scaling to extremely large contexts on a **fixed memory budget**, a scenario where Minference struggles due to its memory overhead. In terms of latency, our cascading cache is comparable with Minference at different context lengths, However minference exceeds the memory of an A6000 (49GB) after 131K context length which is the environment we ran our experiments in. The full model latency for all layers (seconds) can be seen in the table below. All additional experiments below utilize Llama 3.1 8B Instruct models.
| | 16K | 32K | 65K | 131K | 262K | 524K | 1M |
|---|---|---|---|---|---|---|-|
| Minference | 5.11 | 12.84 | 28.41 | 60.47 | OOM | OOM | OOM |
| Cascade (Ours) | 9.58 | 19.71 | 40.11 | 80.84 | 164.47 | 334.17 | 665.33 |
We compare Minference and Pyramid KV with our cascading method on LongBench, we truncate the inputs in the same manner as for the quadratic model in Figure 9 due to the fact that Minference utilizes full dense attention for each decoding step and Pyramid KV utilizes a quadratic prompt. We find the following results:
| | Narrative QA | HotPotQA | Qasper | Multi News | 2WikiMQA | Gov. Report | Avg. |
|---|---|---|---|---|---|---|---|
| Pyramid KV | 20.99 | 39.79 | 19.86 | 23.2 | 21.77 | **29.2** | 25.63 |
| Minference | 20.9 | 39.79 | 19.77 | 23.19 | 21.52 | 29.15 | 25.72 |
| Streaming LLM | 22.57 | 40.78 | 23.89 | 20.69 | 23.46 | 26.82 | 26.37 |
| Cascade (Ours) | **26.43** | **47.26** | **33.12** | **23.33** | **32.33** | 28.32 | **31.8** |
The only dataset where Minference outperformed our model was on Gov. Report which by far shows the narrowest gap between models across all experiments shown in figure 9 in our paper.
Additionally, we added a comparison to Minference on 3 datasets from InfiniteBench [1] which evaluates tasks like multiple-choice reasoning, question answering, and summarization with average context lengths of 182K, 192K, and 171K, respectively. WE used a total cache size of 32K. Like LongBench, these tasks evaluate a model's ability to extract and utilize meaningful information across large contexts—a critical capability for practical applications.
| | en.MC | en.QA | en.Sum | Avg. |
|-|-|-|-|-|
| Streaming LLM | 46.72 | 13.98 | 30.8 | 30.5 |
| Minference | 46.72 | 14.96 | **32.25** | 31.31 |
| Cascade (Ours) | **56.77** | **17.69** | 31.5 | **35.32**|
We observe the same trend as seen in LongBench, whereby our model outperforms by a large margin (21.5% and 18.2%) on the first two datasets, and underperforms Minference by only 2.3% on the last dataset where the overall differences between models is much smaller.
---
Continued in next comment...