Saved in:
Bibliographic Details
Main Authors: Łańcucki, Adrian, Staniszewski, Konrad, Nawrot, Piotr, Ponti, Edoardo M.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2506.05345
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909893079859200
author Łańcucki, Adrian
Staniszewski, Konrad
Nawrot, Piotr
Ponti, Edoardo M.
author_facet Łańcucki, Adrian
Staniszewski, Konrad
Nawrot, Piotr
Ponti, Edoardo M.
contents Inference-time scaling trades efficiency for increased reasoning accuracy by generating longer or more parallel sequences. However, in Transformer LLMs, generation cost is bottlenecked by the size of the key-value (KV) cache, rather than the number of generated tokens. Hence, we explore inference-time hyper-scaling: by compressing the KV cache, we can generate more tokens within the same compute budget and further improve the accuracy of scaled inference. The success of this approach, however, hinges on the ability of compression methods to preserve accuracy even at high compression ratios. To make hyper-scaling practical, we introduce Dynamic Memory Sparsification (DMS), a novel method for sparsifying KV caches that only requires 1K training steps to achieve 8$\times$ compression, while maintaining better accuracy than training-free sparse attention. Instead of prematurely discarding cached tokens, DMS delays token eviction, implicitly merging representations and preserving critical information. We demonstrate the effectiveness of inference-time hyper-scaling with DMS on multiple families of LLMs, showing that it boosts accuracy for comparable inference latency and memory load. For instance, we enhance Qwen-R1 32B by 12.0 points on AIME 24, 8.6 on GPQA, and 9.7 on LiveCodeBench on average for an equivalent number of memory reads.
format Preprint
id arxiv_https___arxiv_org_abs_2506_05345
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Inference-Time Hyper-Scaling with KV Cache Compression
Łańcucki, Adrian
Staniszewski, Konrad
Nawrot, Piotr
Ponti, Edoardo M.
Machine Learning
Computation and Language
Inference-time scaling trades efficiency for increased reasoning accuracy by generating longer or more parallel sequences. However, in Transformer LLMs, generation cost is bottlenecked by the size of the key-value (KV) cache, rather than the number of generated tokens. Hence, we explore inference-time hyper-scaling: by compressing the KV cache, we can generate more tokens within the same compute budget and further improve the accuracy of scaled inference. The success of this approach, however, hinges on the ability of compression methods to preserve accuracy even at high compression ratios. To make hyper-scaling practical, we introduce Dynamic Memory Sparsification (DMS), a novel method for sparsifying KV caches that only requires 1K training steps to achieve 8$\times$ compression, while maintaining better accuracy than training-free sparse attention. Instead of prematurely discarding cached tokens, DMS delays token eviction, implicitly merging representations and preserving critical information. We demonstrate the effectiveness of inference-time hyper-scaling with DMS on multiple families of LLMs, showing that it boosts accuracy for comparable inference latency and memory load. For instance, we enhance Qwen-R1 32B by 12.0 points on AIME 24, 8.6 on GPQA, and 9.7 on LiveCodeBench on average for an equivalent number of memory reads.
title Inference-Time Hyper-Scaling with KV Cache Compression
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2506.05345