- Rating
- 5
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
The paper studies whether LLMs can learn to manage their own KV cache (by forgetting) while learning to reason. The main motivation is that long chain of thought reasoning makes the KV cache grow quickly, and current cache eviction methods rely mostly on heuristics. The authors propose Neural Garbage Collection (NGC), where the model periodically decides which KV cache entries to evict while generating its reasoning trace. Both token generation and cache eviction are treated as actions and trained jointly with RL using only the final task reward. Experiments on Countdown, AMC, and AIME show that NGC preserves much of the reasoning performance while reducing peak KV cache size by around 2–3x, and it outperforms several heuristic eviction baselines.
Strengths and weaknesses
Strengths
The biggest contribution of this work, in my opinion, is that it shows it is possible to jointly train a model to reason and forget (by managing its KV cache) with RLVR. Regardless of the results, whether it beats other KV eviction methods, whether the comparisons are completely fair, and so on, I believe the main contribution is showing that this paradigm is possible and viable. The authors demonstrate that a model can learn memory management and reasoning jointly from the same reward signal while maintaining comparable performance. I also believe this idea can have an impact on adjacent areas and, overall, this is a pretty good result. In addition, they use some neat tricks to make the training possible, such as Gumbel top-k sampling and replay attention masks.
Weaknesses
The main weakness of the paper is that the experiments do not cleanly disentangle where the gains are coming from. Many of the empirical comparisons read like comparisons against KV eviction methods. This makes it unclear whether the contribution is a better eviction policy or a better end-to-end training setup for reasoning under a memory budget. In particular, the main baselines are inference-time eviction heuristics applied to a model trained with full KV cache. In contrast, NGC is trained under the eviction dynamics, so the comparison is not really apples-to-apples for evaluating eviction quality. The ablations help, but they do not fully address this because the paper does not compare against other resource-aware training baselines, such as RL with fixed SnapKV/StreamingLLM-style eviction. Countdown is also somewhat confounded because the model is learning the task and the memory policy at the same time.
Questions
-
Your method evicts fixed-size blocks (with block size 32). Did you consider using more natural linguistic or reasoning boundaries, such as sentences (like [1]) or explicit reasoning steps, rather than fixed token blocks? I wonder whether sentence- or step-level eviction would better align with the structure of CoT. More generally, how sensitive are the results to the choice of block granularity?
-
The eviction scores are computed using attention from the most recent queries, and the experiments use . This seems like a strong inductive bias: the model decides what to permanently delete based only on what was attended to by a very small recent window. Since eviction happens every tokens, the ratio between eviction cadence and scoring window seems important to me. Could you ablate , , or the ratio? In particular, what happens when information is not useful to the last few tokens but becomes important later in the reasoning trajectory?
-
The method relies on RLVR, where the verifiable reward trains both token generation and eviction decisions. This works naturally for Countdown and math benchmarks, but it is less clear how the method extends to non-verifiable tasks. I know this is out of the scope of this paper, but at least I expect some thoughts regarding this natural extension.
[1] SentenceKV: Efficient LLM Inference via sentence-level semantic kv caching, Zhu et al. 2025
Limitations
Yes.
Paper formatting concerns
Didn't catch any.
Final justification
My main concern was that the original experiments did not separate the benefit of jointly learning the eviction policy from training the reasoning policy under a memory constraint. The rebuttal substantially resolves this concern. The authors clarified that the targeted KV dropout ablation corresponds to RL training under a fixed SnapKV-style policy, and they added matched experiments with fixed KeyDiff and StreamingLLM policies. All three fixed-policy variants were unstable or collapsed under aggressive eviction, while NGC remained effective.
The authors also addressed my concerns about the specific inductive biases. The additional block-size results show comparable or stronger performance with block sizes 1, 16, and 32, while increasing the scoring window from 5 to 50 has little effect.
Some limitations remain unresolved. The evaluation still uses one 1.5B model family and does not establish effectiveness for larger models or substantially longer traces. These concerns limit the generality of the conclusions, but I now view them as scope limitations rather than weaknesses.
Overall, I am increasing my score to 5.
We thank the reviewer for their positive assessment of our work and describing that our work shows this paradigm is viable and can have impact on adjacent areas. Below we address specific comments.
Thanks for this insightful question! We thought carefully about how to decouple this in our original submission. We studied this in Figure 4 (right panel) and Figure 9 (Appendix) in our targeted KV dropout ablation analysis, which essentially trains a model against a fixed SnapKV policy. We apologize because our original naming may have made this unclear and, due to space constraints, this analysis was not featured prominently in the main text. We elaborate more below and provide additional results.
The targeted KV dropout ablation—which we will rename fixed eviction policy for clarity—trains the reasoning model under the same KV cache budget constraint/ eviction rate curriculum as NGC, but fixes the eviction policy to SnapKV. Holding the NGC eviction policy fixed is equivalent to training against a fixed SnapKV policy, because NGC uses the same attention-based scoring mechanism as SnapKV to determine which KV entries to evict. Thus, this ablation exactly corresponds to training a model with RL against a fixed eviction policy. Crucially, as we show in Figure 9 of the Appendix, this cannot be trained stably as the curriculum goes towards large eviction rates and training collapses entirely, showing that adaptation to a fixed eviction policy is not a viable strategy for aggressive eviction rates. We apologize for not making this clearer in the original submission and will make this clearer in the revised version.
In new results, we validate this with two additional fixed policies. In particular, we trained two more reasoning models against fixed eviction policies: KeyDiff and StreamingLLM on Countdown. In both cases, we find that training is highly unstable, consistent with the existing results in the paper; training essentially collapses entirely, in a way that’s consistent with the training curves in Figure 9. We report the results on the test set below.
Fixed policy ablation on Countdown (eviction rate=0.5)
Given the reviewer feedback, we will make this analysis more clear and featured more prominently in the revised version.
Thanks for your insightful comment! This is an interesting idea to use linguistic boundaries, but we think there are two technical challenges. First, reasoning models may use these linguistic boundaries (like periods) in different and unpredictable ways during training. Second, fixed block sizes are more appropriate from a systems perspective: in modern serving systems, the KV cache is organized into fixed contiguous blocks (called pages) [1].
[1] Kwon, W., Li, Z., Zhuang, S., Sheng, Y., Zheng, L., Yu, C. H., Gonzalez, J. E., Zhang, H., & Stoica, I. (2023). Efficient memory management for large language model serving with PagedAttention.
We trained models with a block size of 16 and 1 for Countdown. Performance remains strong across all three granularities, with no severe degradation from using finer blocks. We’ll update the paper to reflect these ablations. We report the results on the test set below.
Table 1: block size ablation (eviction rate=0.5)
We agree this is a strong inductive bias. The design of the current eviction mechanism took inspiration from existing eviction methods and sparse attention methods, which operate with a similar inductive bias (see SnapKV or DeepSeek Sparse Attention) [1,2]. We agree that the main challenge is that tokens can indeed become important later, and this is not captured in the current parameterization. However, we note that the specific architecture is a design choice, and just a specific instantiation; the NGC framework accommodates a range of architectural choices. We agree that exploring this design space is a very exciting direction; in addition, exploring formulations where tokens are not evicted permanently is another promising path.
Regarding the window size and the eviction cadence, we ran some additional analyses where we trained the model on different window sizes and eviction cadences.
To isolate the effect of eviction cadence, we train a variant that performs eviction more frequently—every 170 tokens rather than every 256 tokens. Because more frequent eviction induces a smaller effective cache budget during training, for a fixed eviction rate, as determined by the stationary cache-size distribution, we decrease the eviction rate at evaluation so that the two variants converge to the same asymptotic cache budget. This therefore controls for the cache budget but cleanly studies the impact of only the cadence. We find that training with more frequent eviction rounds appears to improve robustness under aggressive compression, potentially at the cost of performance under moderate compression. This makes sense because the cadence-170 model experienced more eviction events during training but as a consequence has a more challenging time learning the reasoning task.
Table 6: cadence=170 vs default NGC at matched asymptotic budget
We find increasing the window size produces similar performance to the default setting.
Table 2: window size w ablation (eviction rate=0.5)
[1] DeepSeek-AI. (2025). DeepSeek-V3.2: Pushing the frontier of open large language models. [2] Li, Y., Huang, Y., Yang, B., Venkitesh, B., Locatelli, A., Ye, H., Cai, T., Lewis, P., & Chen, D. (2024). SnapKV: LLM knows what you are looking for before generation.
Thanks for this comment; we agree this is a promising but unexplored direction and will discuss this in the future work section in the revised paper.
In principle, NGC only requires a scalar trajectory-level reward and is therefore mechanically compatible with LLM-judge objectives that are commonly used for non-verifiable settings [1]; it is not intrinsically restricted to verifiable rewards. We agree that an exploration of these remains an open and interesting empirical question for future work and we will emphasize this in the discussion.
[1] Bai, Y., Kadavath, S., Kundu, S., et al. (2022). Constitutional AI: Harmlessness from AI feedback. arXiv preprint arXiv:2212.08073.