MoEZip: Routing-Aware KV Cache Compression for Sparse Mixture-of-Experts LLMs
MoEZip introduces routingâaware KV cache compression that preserves expert selection in sparse MoE LLMs, achieving strong accuracy gains even at extreme compression ratios.

Introduction
MixtureâofâExperts (MoE) language models achieve impressive scaling by activating only a small subset of experts for each token. While this sparsity reduces compute, the keyâvalue (KV) cache still grows linearly with the input length during inference, creating a memory bottleneck for longâcontext tasks. Existing KV compression techniques focus on dense transformers and ignore a unique issue in MoE models: compressing or evicting KV entries can alter the routing decisions that determine which experts are consulted, potentially harming generation quality.
RoutingâAware Compression
MoEZip tackles this problem by making KV compression aware of the routing process. The authors propose a sensitivity metric derived from the Fisher information matrix of the routing distributions, which quantifies how much a perturbation to a KV entry would affect expert selection. By combining this metric with traditional attentionâweight scores, MoEZip prioritizes retaining entries that are both influential for attention and critical for stable routing.
Composite Scoring for Dense and Sparse Architectures
Recognizing that MoE models contain both dense and sparse components, MoEZip introduces a complementary scoring system. For dense parts of the network it falls back on established eviction heuristics, while for the sparse MoE layers it applies the routingâaware scores. This hybrid approach ensures that compression decisions respect the differing dynamics of each subânetwork, avoiding the inadvertent drift of expert assignments that can occur with naĂŻve KV pruning.
Empirical Results
The paper evaluates MoEZip on several longâcontext benchmarks, including LongBench and RULER. At a KV retention ratio of just 10âŻ%âmeaning 90âŻ% of the cache is discardedâMoEZip outperforms the previous stateâofâtheâart baseline by roughly 24 points on LongBench and 20 points on RULER on average. These improvements correspond to 2.3Ă and 4.9Ă higher scores, respectively, demonstrating that aggressive compression can be achieved without sacrificing, and indeed often improving, generation quality.
Practical Takeaways
- SensitivityâBased Scoring: Use the Fisherâinformationâderived metric to gauge how KV compression will impact expert routing.
- Hybrid Eviction Policy: Apply denseâmodel eviction strategies to the transformer backbone while reserving routingâaware scoring for MoE layers.
- Aggressive Compression Viable: Even with only 10âŻ% of KV entries retained, MoEZip maintains or improves performance on longâcontext tasks, offering a clear path to lower memory footprints.
Conclusion
MoEZip fills a critical gap in the toolkit for deploying large MoE language models in memoryâconstrained environments. By explicitly accounting for routing stability during KV cache compression, it delivers robust accuracy gains at compression levels previously thought impractical. Practitioners looking to run sparse MoE models on long sequences can adopt MoEZipâs routingâaware scoring to achieve substantial memory savings while preserving, or even enhancing, output quality.
Source
Read original sourceWhy we picked this
Introduces MoEZip, a routing-aware KV cache compression for Mixture-of-Experts LLMs, directly relevant to LLM infrastructure.