Introduction
The frontier of Large Language Model (LLM) performance has shifted from purely increasing parameter counts to "inference-time scaling." Models like OpenAI’s o1 and DeepSeek’s R1 achieve state-of-the-art results by utilizing extended "chains of thought" or exploring multiple reasoning paths. However, this paradigm is fundamentally limited by the Key-Value (KV) cache. This paper introduces Dynamic Memory Sparsification (DMS), a method that compresses the KV cache by up to 8×, enabling "hyper-scaling"—the ability to generate significantly more reasoning tokens within existing hardware constraints.
The KV Cache Bottleneck
In standard Transformer architectures, every generated token must be stored in the KV cache to facilitate future attention. This creates two critical bottlenecks:
- Memory Capacity: The cache grows linearly with sequence length, quickly hitting the limits of GPU VRAM.
- Memory Bandwidth: LLM generation is primarily memory-bound. The latency is determined by the speed at which the GPU can read the massive KV cache from memory rather than the speed of computation.
While training-free heuristics exist, they often degrade accuracy at high compression ratios. DMS addresses this by introducing a learned, efficient retrofitting technique.
Dynamic Memory Sparsification (DMS)
DMS transforms existing LLMs by adding an intelligent token eviction policy. Unlike static heuristics, DMS learns to identify unimportant tokens by repurposing a small fraction of the model's existing query/key heads to predict binary "keep" or "evict" decisions.
The Grace Period Innovation
The core technical contribution of DMS is the delayed eviction mechanism. Instead of immediately dropping a token flagged for removal, DMS employs a sliding window.
As shown in the figure above, a token scheduled for eviction remains available for a set number of steps (e.g., 256 tokens). This "grace period" allows the model to integrate the information from the soon-to-be-evicted token into newer representations, ensuring that context is preserved even as the cache is thinned.
Efficient Retrofitting
DMS is remarkably sample-efficient, requiring only approximately 1,000 training steps to achieve 8× compression. This is roughly 60× less compute than previous state-of-the-art learned compression methods. The process uses logit distillation, where the original uncompressed model serves as a teacher to guide the sparsified student model.
Experimental Results
The researchers evaluated DMS across a suite of challenging benchmarks, including AIME 24, MATH-500, GPQA Diamond, and LiveCodeBench, using models ranging from Qwen-R1 1.5B to 32B.
Accuracy and Hyper-Scaling
DMS does not merely maintain accuracy; it enables performance gains by allowing models to "think longer" for the same memory cost. By reducing the cache size, the model can explore more reasoning paths or generate longer chains of thought within the same latency budget.
As illustrated in the radar chart, DMS significantly shifts the Pareto frontier. For an equivalent number of memory reads, DMS enhanced the Qwen-R1 32B model by 12.0 points on AIME 24, 8.6 points on GPQA, and 9.7 points on LiveCodeBench.
Throughput and Long Context
Beyond accuracy, DMS enables up to 5× higher throughput in multi-user environments by allowing for larger batch sizes. Interestingly, on the "Variable Tracking" long-context task, DMS actually outperformed the vanilla uncompressed model, suggesting that learned sparsification helps the model filter out irrelevant "noise" in extremely long sequences.
Conclusion
Dynamic Memory Sparsification provides a scalable path forward for inference-time reasoning. By proving that intelligent token dropping—facilitated by a grace period—is superior to complex merging techniques, DMS allows current hardware to support the next generation of hyper-scaled reasoning models. Future work will look toward applying these techniques to frontier-scale models exceeding 70B parameters and integrating them with Process Reward Models (PRMs).
Summary updated