🤖 AI Summary
This study addresses information loss and model degradation caused by KV cache eviction during long-context reasoning. We propose KV-Rescue, a training-free framework featuring a novel stepwise interleaved inference mechanism between the primary model and a lightweight full-context assistant. Integrated with an online detector based on entropy and compressibility, this approach identifies and terminates degenerate generation in real time to effectively bridge information gaps. Experiments reveal that performance decline stems primarily from missing information rather than insufficient capability. Under strict memory budgets, KV-Rescue recovers 87% of accuracy loss across five mathematical benchmarks and reduces invalid token generation by 43%, significantly enhancing both efficiency and accuracy in long-text reasoning tasks.
📝 Abstract
KV-cache eviction caps the memory cost of long reasoning traces but is inherently lossy because the model decodes from a partial view of its history. Under aggressive budgets, this not only lowers accuracy but can also cause runaway degeneration, where the model produces incoherent or repetitive tokens until reaching the length limit. We characterize much of this loss as an information gapf caused by missing context, rather than a capability gap caused by limited model capacity. An evicted 7B model and a full-context 1.5B model make complementary errors, and an oracle choice between their answers recovers 79% of the accuracy gap to the full-KV 7B model. Based on this observation, we propose KV-Rescue, a training-free inference framework that bridges the information gap introduced by KV eviction using a lightweight full-context helper. KV-Rescue interleaves reasoning steps from the two models into a shared trajectory. An online detector uses entropy and compressibility to terminate the generation of incoherent or repetitive base-model candidates early. Across five math benchmarks with Qwen2.5-Math 7B and 72B, KV-Rescue recovers an average of 87% of the accuracy lost to eviction at eviction budget B=64. A decode-cost analysis further shows that preventing runaway degeneration cuts base-model token generation by 43% on average.