Manuscript Offprint

arXiv:2610.02953

SlimKV: Joint Token-Feature KV Cache Compression with Reconstruction-Free Beacon Attention

Zihan Teng, Jiayu Zhao, Wentao Ren, Minhao Fan, Tianrui Ma, Song Chen, Weichen Liu

Abstract

Long-context LLM serving is increasingly bottlenecked by KV-cache memory, especially in resource-constrained scenarios. Among existing KV-cache compression strategies, token-wise methods reduce cached states but risk information loss through eviction or condensation, while feature-wise methods reduce per-token KV dimensions but can require full-dimensional reconstruction to apply positional embedding, limiting decoding speedups. We introduce SlimKV, a question-agnostic joint token-feature KV-cache compression method. SlimKV uses low-rank-aware training to compress long contexts into beacon memory states with latent KV representations, together with layer-adaptive rank allocation. We further uncover a positional asymmetry: removing key-side RoPE affects beacon and raw tokens differently, with much smaller degradation for beacon tokens. Exploiting this asymmetry, SlimKV trains beacon KV projections under a K-RoPE-free constraint and enables latent-space attention during decoding, mitigating reconstruction latency. On LongBench, SlimKV outperforms baselines at 16×/32×16\times/32\times compression and remains leading at 4×/8×4\times/8\times, where it retains over 96% of the uncompressed model's score. Needle-in-a-Haystack confirms robustness across evidence positions, and efficiency evaluation shows up to 7.34×7.34\times attention speedup and 3.38×3.38\times end-to-end decoding speedup over the uncompressed model at 128K length.

1 Introduction

Large language models (LLMs) have shown strong performance across diverse tasks, and long-context capability is crucial for document understanding, multi-turn interaction, and complex reasoning (Tworkowski et al., 2023; Liu et al., 2025). However, during long-context inference, the key-value (KV) cache grows rapidly with context

Figure

Figure 1: Comparison of low-rank KV-cache strategies. K-RoPE forces reconstruction, while its removal enables latent-space attention (LSA) but loses order information. SlimKV uses K-RoPE-free beacon tokens to retain semantics and positional cues in latent KV space.

length, causing substantial memory pressure and memory-access latency (Xiao et al., 2024). KV-cache overhead therefore becomes a major challenge for efficient deployment under limited memory and bandwidth (Kwon et al., 2023).

Two common directions for long-context KV-cache compression are token-wise and feature-wise. Token-wise methods reduce cached state counts, but explicit deletion can cause substantial information loss under aggressive compression (Kim et al., 2025), and eviction-based methods often require full KV construction before deletion, limiting prefill-compute savings (Zhang et al., 2023; Li et al., 2024). Feature-wise methods reduce cached state dimensions, but the compressed Keys often require full-dimensional reconstruction before applying RoPE, introducing a latency bottleneck (Sax-

∗^{*}Corresponding authors.

ena et al., 2024; Chang et al., 2025). Activation Beacon (Zhang et al., 2025) alleviates severe information loss under aggressive compression by softly compressing historical context into beacon states. However, the redundancy of these beacon states has not been further explored. More importantly, the Key-reconstruction latency bottleneck of feature-wise compression remains unresolved. This motivates our central question:

Can joint token-feature compression overcome single-axis limits while avoiding the reconstruction bottleneck?

To answer this question, we propose SlimKV, a joint token-feature KV-cache compression framework built upon beacon-based soft compression (Zhang et al., 2025). SlimKV trains beacon KV projections directly under low-rank constraints, allowing each beacon state to summarize historical tokens while forming compact latent KV representations. To better utilize a fixed feature budget, SlimKV further allocates adaptive ranks according to layer-wise low-rank heterogeneity.

These latent representations reduce KV-cache storage, but the reconstruction latency bottleneck remains in RoPE-based LLMs (Su et al., 2024). Motivated by the intuition that compressing multiple tokens into a beacon state may preserve partial positional cues in its latent representation, we investigate the role of key-side RoPE and find an empirical positional asymmetry between beacon and raw-token Keys: removing key-side RoPE affects both types of Keys, yet beacon memory tokens exhibit much smaller performance degradation than raw tokens (Figure 2). Exploiting this asymmetry, we train beacon KV projections under a K-RoPE-free constraint, allowing K-RoPE to be removed from beacon Keys at inference while preserving RoPE for raw-token Keys and all Queries, enabling reconstruction-free latent-space attention.

We evaluate SlimKV on LongBench, Needle-in-a-Haystack (NIAH), and long-context decoding latency, covering accuracy, positional robustness, and efficiency.

Our contributions are threefold:

• We propose SlimKV, a question-agnostic joint token-feature KV-cache compression framework that learns low-rank beacon KV representations and allocates layer-adaptive ranks under a fixed feature budget.

• We identify an asymmetric dependence on

Llama3.1-8B-Instruct

Figure

Figure 2: LongBench scores under K-RoPE ablations, showing positional asymmetry between raw and beacon tokens. SlimKV remains close to the original model without beacon K-RoPE.

key-side RoPE between beacon and raw-token Keys, and strengthen this property to enable reconstruction-free latent-space attention by removing K-RoPE only from beacon Keys.

• Experiments show that SlimKV achieves clear advantages under high compression, remains leading at lower compression ratios while retaining over 96% of the uncompressed model's Long-Bench score, and achieves up to 7.34×7.34\times attention speedup and 3.38×3.38\times end-to-end decoding speedup.