Manuscript Offprint

arXiv:2610.29662

SPARE: Sparsity Allocation via Routing Entropy for Efficient MoEs

Yifan Yang, Hanling Yi, Dongquan Yang, Feng Lin, Rong Xiao, Aijun Li, Xiaotian Yu

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

Abstract

Mixture-of-Experts (MoE) architectures scale model capacity efficiently, yet their substantial memory footprint poses a major barrier to deployment. Expert pruning reduces this footprint, but most methods focus on which experts to remove and prune every layer equally. We propose SPARE (Sparsity Allocation via Routing Entropy), a training-free, selector-agnostic method that decides how many experts to remove from each layer using routing entropy, the entropy of tokens' normalized Top-K gate weights on calibration data. When a token's gate weight is spread evenly, removing one active expert discards little of it, so SPARE prunes layers with more diffuse routing more aggressively. A perturbation bound under random pruning formalizes this intuition, and controlled interventions with a fixed selector link concentrated routing to larger output changes. With the same selector and budget, SPARE improves average accuracy over uniform allocation on Mixtral, Qwen3, and DeepSeek models, especially at high pruning ratios. At 50% expert pruning, it raises the eight-task average of Qwen3-30B-A3B from 57.2% to 63.8%, and the math, code, and science average of DeepSeek-R1 from 80.1 to 82.8.

1 Introduction

The pursuit of stronger reasoning capabilities has pushed Large Language Models (LLMs) to the trillion-parameter scale, incurring prohibitive computational costs. The Mixture-of-Experts (MoEs) architecture addresses this challenge through conditional computation, which activates only a sparse subset of parameters per input token (Shazeer et al., 2017; Lepikhin et al., 2020; Fedus et al., 2022; Dai et al., 2024). While conditional computation drastically reduces FLOPs, the memory overhead necessitates loading the full set of experts. Furthermore, the requirement to distribute these experts across devices complicates the communication topology, leading to efficiency bottlenecks. This highlights the urgent need for compression techniques capable of shrinking pre-trained MoEs.

To address this, recent research has focused on expert pruning, which removes entire experts to reduce model size. Existing approaches usually estimate an expert-level importance score from activation frequency, routing statistics, or reconstruction error (Dong et al., 2025; Lasby et al., 2025). These scores provide useful criteria for selecting experts within a layer. However, using expert importance directly for cross-layer pruning is less reliable. Scores computed in different layers are not necessarily calibrated, since activation scales, expert functions, and token distributions vary across depth. The calibration domain can further change which experts appear important. As a result, globally ranking experts across all layers may over-prune sensitive layers (Chowdhury et al., 2024; Lasby et al., 2025).

This limitation comes from conflating two decisions: inter-layer allocation, which determines how many experts to remove from each layer under a global budget, and intra-layer selection, which determines which experts to remove within a layer. Existing criteria such as REAP and EASY-EP address the second; SPARE addresses the first and can be paired with any of them. Non-uniform allocation has been explored in dense LLMs (Men et al., 2025; Yin et al., 2024) and, more recently, in MoE expert pruning (Yang et al., 2024; Li et al., 2026), using signals such as calibration loss or expert-usage frequency. SPARE instead allocates budgets by how gate weight is distributed among each token's active experts, a training-free signal distinct from usage statistics across inputs.

To capture these routing dynamics, we use routing entropy: the Shannon entropy of each token's normalized Top-K gate weights, averaged over calibration tokens. As illustrated in Figure 1, high-entropy layers spread gate weight broadly among the active experts, so removing one active expert discards only a small share of each token's weight, which is then reassigned to the remaining experts. Low-entropy layers concentrate weight on fewer experts, suggesting stronger input-conditioned specialization and making aggressive pruning riskier. This signal is layer-level rather than expert-level: it assumes neither that particular experts are indispensable nor that the same experts are selected across domains. Although expert identities shift between web text, code, math, and science, layer-wise entropy rankings remain stable across calibration domains, making them a robust basis for allocation.

Leveraging this insight, we introduce SPARE, a training-free sparsity allocation framework that assigns non-uniform pruning budgets across MoE layers. Our main contributions are:

• Entropy-guided, plug-and-play allocation. We formulate MoE expert pruning as an inter-layer budget allocation problem and replace uniform allocation with entropy-aware budgets. SPARE decides how many experts to prune in each layer, while existing criteria such as REAP and EASY-EP decide which ones, without retraining or modifying the router.

• Theoretical foundation. We derive a perturbation bound that, under uniform random pruning, grows with the routing entropy gap. The analysis provides a layer-level sensitivity signal and an existence argument for deterministic masks.

• Empirical validation. With the same selector and budget, SPARE improves average accuracy over uniform allocation on Mixtral, Qwen3, and DeepSeek models, especially at high pruning ratios. At 50% expert pruning, it raises the eight-task average of Qwen3-30B-A3B from 57.2% to 63.8%, and the math, code, and science average of DeepSeek-R1 from 80.1 to 82.8.

References (36)