Manuscript Offprint

arXiv:2610.30206

MoEZip: Routing-Aware KV Cache Compression for Sparse Mixture-of-Experts LLMs

Minsang Kim, Seungjun Baek

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Mixture-of-Experts (MoE) language models scale model capacity efficiently by activating a small subset of parameters per token. However, in long-context inference, memory remains a major bottleneck because the KV cache grows linearly with sequence length. Existing KV cache compression methods reduce this cost for dense transformers, but overlook a problem specific to MoE: KV eviction can change which experts are selected during answer generation, degrading the generation quality. We propose MoEZip, a routing-aware KV cache compression for sparse MoE language models. To estimate the sensitivity of expert routing to perturbation, we propose a novel metric based on the Fisher information matrix of routing distributions. MoEZip combines this metric with attention weights for routing-aware scoring of contexts. Finally, we compose a complementary scoring system that combines eviction methods for dense and sparse-MoE architectures. Experiments show that MoEZip achieves robust performance under aggressive cache compression on various benchmarks. At a KV retention ratio of 10%, MoEZip improves over the SoTA baseline by +24 and +20 points on average on LongBench and RULER, corresponding to 2.3×2.3\times and 4.9×4.9\times higher scores, respectively. The source code is available at https://github.com/kmswin1/MoEZip.

1 Introduction

Large language models (LLMs) [5, 13] have enabled substantial advances across a wide range of real-world applications, including chatbot assistants [1, 3, 7], coding agents [22, 41], robot agents [17, 20], and broader LLM-based agent systems [30, 26, 37]. Mixture-of-Experts (MoE) architectures have emerged as an effective solution for scaling LLM capacity while controlling inference cost [10, 9, 24]. By activating only a small subset of parameters for each token, MoE models can scale total capacity without incurring the full computation cost of dense models. This favorable scaling property has made MoE a promising architecture for large-scale deployment [8, 31].

However, efficient inference remains challenging in long-context and agentic settings. Many real-world applications require processing long interaction histories [18, 45], retrieved documents [21], tool outputs [29], or multimodal observations [25, 44]. In these scenarios, the key bottleneck is often memory rather than activated parameter count: the KV cache grows linearly with sequence length and quickly becomes a major obstacle for scalable inference.

To address this issue, a body of work recently studied KV cache compression and eviction methods, which reduce memory usage while preserving generation quality [23, 6, 43, 19, 40]. Existing approaches span diverse strategies, from attention-based token selection methods such as SnapKV [23] to methods based on context reconstruction such as KVZip [19]. Although these methods have shown

∗^{*}Corresponding Author

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

promising results on dense transformers, applying them to MoE models can be problematic. In sparse-MoE architectures, changes in KV representation due to eviction can affect router decisions that determine which experts are activated. This has been shown to aggravate performance degradation under high compression. KV compression can therefore incur MoE-specific problems, which are not captured by eviction methods designed for dense architectures.

Contributions. In this paper, we consider KV cache compression for sparse MoE models from the perspective of routing fragility: it is defined as the sensitivity of routers due to perturbation induced by KV eviction. To estimate fragility, we propose a novel metric based on the Fisher information matrix of routing distributions. We derive the metric for two popular types of MoE routing: softmax-type and sigmoid-type routing. The metric is combined with the attention weights of instruction tokens to produce the fragility score that estimates the importance of context positions. Finally, we propose a scoring system that combines the importance scores from compression methods for dense and sparse-MoE architectures. Our complementary approach enables compression robust to perturbation on both context saliency and routing stability. Experiments show that MoEZip achieves robust performance on various benchmarks such as LongBench, NIAH, and RULER. MoEZip is especially strong at aggressive compression, e.g., at a KV retention ratio of 10%, MoEZip outperforms the current SoTA method, KVZip [19], by +24 and +20 points on average on LongBench and RULER, corresponding to 2.3×2.3\times and 4.9×4.9\times higher scores, respectively. Further analysis shows that MoEZip achieves good performance for both softmax-type and sigmoid-type routing models and is compatible with diverse compression methods originally developed for dense Transformer LLMs.

References (43)