KV-streams for Efficient Compaction in Agentic Reinforcement Learning
Emiliano Penaloza, Dane Malenfant, Dheeraj Vattikonda, Roger Creus Castanyer, Siddarth Venkatraman, Abhay Puri, Jonathan Light, Matthew James Sargent,
Key points
From the paper's conclusion- Overall, we show KV-streams to be an efficient and lightweight plug-and-play addition to any post-training pipeline.
Abstract
Scaling the horizon of agentic LLMs is bottlenecked by the need to fit ever longer context traces in GPU memory. Context compaction has been the most popular mechanism to alleviate this issue, keeping GPU memory constant for a given trace. Unfortunately, most compaction strategies rely on prefilling the LLM context many times over, hindering training throughput. To alleviate this bottleneck and enable efficient trainable compaction, we propose KV-streams, a plug-and-play strategy compatible with any compaction strategy that substantially increases throughput while showing no evidence of hindering performance. KV-streams enable scalable compaction by streaming the KV cache forward rather than flushing it after each compaction. We show that KV-streams enable three different compaction strategies, achieving a 2.6 to 5x wall-clock speedup in training. Beyond efficiency, we find that the streamed KV cache can act as a recurrent state, carrying forward information that has long since disappeared from the context. Specifically, in a controlled setting we show that, contrary to prior work, RL alone is all that is needed for this behavior to emerge. Overall, we show KV-streams to be an efficient and lightweight plug-and-play addition to any post-training pipeline.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Aggron: Aggressive Compression of Agentic KV Caches during Head-of-Line Stalls in the Request QueuearXiv · 2026
- KV-Kaizen: Learning Context-Adaptive Cache Compression ChoicesarXiv · 2026
- KVStream: Adaptive Parallel Storage Management for KV Caching in Large-Scale LLM ServingarXiv · 2026
- To Keep or Not to Keep: Learning KV Cache Retention in Disaggregated LLM Serving SystemsarXiv · 2026
- TraceKV: Policy-Preserving Low-Rank KV Cache Compression for Reasoning Vision-Language ModelsarXiv · 2026
- Verify Before You Fetch: Reliable KV Cache Compression for LLM InferencearXiv · 2026