alphaFeedback

WorksComputer Science

SPARE: Sparsity Allocation via Routing Entropy for Efficient MoEs

AI contributions
Not recorded for this paper
View details

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.

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 [16, 9, 7] (Shazeer et al. 2017). 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 [8, 15]. 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 [4, 15].

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 [17] (Yang et al. 2024), 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-KK 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.

Visualization of routing heterogeneity and domain sensitivity on Qwen3-30B-A3B

Figure 1. Visualization of routing heterogeneity and domain sensitivity on Qwen3-30B-A3B. Left: gating distributions for two representative tokens at selected layers. These single-token examples illustrate diffuse and concentrated routing; quantitative analyses use layer-aggregated statistics. Right: expert selection frequencies on C4 and CodeAlpaca. The selected expert identities can differ substantially across domains, which makes pruning directly from single-domain expert frequencies brittle. SPARE instead uses layer-wise routing entropy, an aggregated concentration statistic, to guide inter-layer sparsity 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.

Related Work

Routing Heterogeneity. MoEs scale model capacity through conditional computation [9] (Shazeer et al. 2017). Despite load-balancing objectives, expert behavior can remain non-uniform: Su et al. (2025) identify “super-experts” that produce extreme activation outliers, and Lo et al. (2024) examine relationships between routing weights and expert outputs. These observations motivate studying routing heterogeneity across layers.

Expert Pruning and Compression. Expert pruning reduces the memory footprint of pretrained MoEs. Selection criteria use routing statistics [8, 14], router-weighted activation saliency [15], or reconstruction loss (Lu et al., 2024); EEP (Liu et al., 2024) instead uses evolutionary search. Shapley-MoE [11] ranks experts globally across layers via router-guided sampling; we exclude it from comparisons under fixed layer budgets, which would alter its selection rule. Chowdhury et al. [4] provide a pruning guarantee for fine-tuned sparse MoEs based on changes in router distributions. SEER-MoE (Muzio et al., 2024), MoE-SVD [18], and AdaWhiten [1] explore further pruning and decomposition strategies, alongside task-specific pruning [3] and benchmarks such as MC-Suite [13]. Expert merging, skipping, dynamic Top-KK routing, and intra-expert pruning (Xie et al., 2024) operate at other granularities; SPARE instead targets budget allocation.

Layer-wise Sparsity Allocation. In dense LLMs, ShortGPT (Men et al., 2025) studies block removal, whereas OWL (Yin et al., 2024) allocates weight sparsity using activation-aware outlier statistics. SlimGPT (Ling et al., 2024) also adopts non-uniform pruning schedules. For MoEs, MoE-I2^{2} (Yang et al., 2024) estimates layer importance from calibration losses after removing individual experts, assigns non-uniform pruning ratios, and selects experts through genetic and block-wise search; its full pipeline additionally includes low-rank decomposition and LoRA recovery. C-GNN-PRUNE [17] computes the entropy of expert-selection frequencies pooled over calibration samples and retains more experts in layers with higher usage entropy. Its expert-selection procedure uses learned graph embeddings. SPARE averages, over tokens, the entropy of each token’s normalized Top-KK gate weights and prunes more experts in layers with higher gate entropy. Usage entropy describes how broadly expert identities are used across inputs; gate entropy describes how evenly weight is spread among the experts active for a single token. The rules therefore treat high entropy in opposite ways without contradiction: they measure different distributions. SPARE contributes this routing signal and a selector-independent allocation rule.

Routing Entropy and Heterogeneity of MoE Layers

We analyze layer-wise routing heterogeneity in MoEs and define routing entropy as the signal used by SPARE for inter-layer budget allocation.

Problem Formulation

Consider an MoE layer ℓ\ell with NN experts. For token x\mathbf{x}, the router selects the Top-KK expert set Tℓ(x)\mathcal{T}_{\ell}(\mathbf{x}) and computes the normalized gating distribution

gℓ,j(x)=exp⁡(zℓ,j(x))∑t∈Tℓ(x)exp⁡(zℓ,t(x))1{j∈Tℓ(x)}.(1)g_{\ell,j}(\mathbf{x}) = \frac{\exp(z_{\ell,j}(\mathbf{x}))}{\sum_{t \in\mathcal{T}_{\ell}(\mathbf{x})} \exp(z_{\ell,t}(\mathbf{x}))} \mathbf{1}\{j \in\mathcal{T}_{\ell}(\mathbf{x})\}. \tag*{(1)}

Let m=[m0,…,mL−1]⊤\mathbf{m} = [m_0, \ldots, m_{L-1}]^{\top} denote the layer-wise pruning profile, where mℓm_{\ell} is the number of experts removed from layer ℓ\ell. Given a global target MtargetM_{\mathrm{target}}, SPARE solves the inter-layer allocation problem

∑ℓ=0L−1mℓ=Mtarget,0≤mℓ≤N−K,(2)\sum_{\ell=0}^{L-1} m_{\ell} = M_{\mathrm{target}}, \qquad0 \leq m_{\ell} \leq N-K, \tag*{(2)}

while leaving the intra-layer choice of removed experts to an expert-ranking rule such as EASY-EP (Dong et al., [8]) or REAP (Lasby et al., [15]).

Routing Entropy Gap

For each token, we define the Top-KK routing entropy as

Hℓ(x)=−∑j∈Tℓ(x)gℓ,j(x)log⁡gℓ,j(x).(3)H_{\ell}(\mathbf{x}) = -\sum_{j \in\mathcal{T}_{\ell}(\mathbf{x})} g_{\ell,j}(\mathbf{x}) \log g_{\ell,j}(\mathbf{x}). \tag*{(3)}

The layer-average entropy and routing entropy gap are

H‾ℓ=Ex∼D[Hℓ(x)],Sℓ=log⁡K−H‾ℓ.(4)\overline{H}_{\ell} = \mathbb{E}_{\mathbf{x}\sim\mathcal{D}}[H_{\ell}(\mathbf{x})], \qquad S_{\ell} = \log K - \overline{H}_{\ell}. \tag*{(4)}

Equivalently,

Sℓ=Ex∼D[DKL(gℓ(x)∥uTℓ(x))],(5)S_{\ell} = \mathbb{E}_{\mathbf{x}\sim\mathcal{D}}\left[D_{\mathrm{KL}}\left(g_{\ell}(\mathbf{x})\middle\|u_{\mathcal{T}_{\ell}(\mathbf{x})}\right)\right], \tag*{(5)}

where uTℓ(x)u_{\mathcal{T}_{\ell}(\mathbf{x})} is the uniform distribution over the active experts. A larger SℓS_{\ell} means sharper routing concentration and motivates a more conservative pruning budget.

Layer-wise Routing Heterogeneity

Figure 1 shows that gating concentration varies across layers (left), while selected expert identities vary across domains (right). SPARE therefore allocates budgets with the layer-level statistic H‾ℓ\overline{H}_{\ell} rather than domain-specific expert frequencies. Routing entropy indicates how much gate weight a token loses when an active expert is removed, but not whether the remaining experts can compensate, so we test pruning tolerance directly.

We divide the 48 layers of Qwen3-30B-A3B into entropy terciles and use REAP to prune 50% of experts within one tercile at a time, removing about 16.7% of all routed experts. From an unpruned eight-task average of 72.1%, pruning the high-, medium-, and low-entropy terciles yields 68.2%, 67.2%, and 66.4%, respectively, supporting entropy as a pruning-tolerance signal in this setting (see also § 6.3 and § 6.6).

Theoretical Analysis: Routing-Entropy Perturbation Bounds

We analyze how routing entropy can guide the allocation of a fixed expert-pruning budget across layers. Under the stated routing and bounded-output assumptions, we first bound the output perturbation for any fixed pruning mask using the routing mass assigned to removed experts. For uniform random pruning, this bound takes an explicit form involving the routing entropy gap. We then give a sufficient condition under which a deterministic expert selector inherits the same entropy-dependent bound, with an additive term when the condition holds approximately. Finally, we describe how local pruning perturbations propagate through the network.

Single-Layer Pruning Perturbation

Consider a layer ℓ\ell with output yℓ(x)=∑jgℓ,j(x)fℓ,j(x)y_\ell(\mathbf{x}) = \sum_j g_{\ell,j}(\mathbf{x})f_{\ell,j}(\mathbf{x}). After removing P⊆{1,…,N}P \subseteq\{1,\ldots,N\}, ∣P∣=m≤N−K|P| = m \le N-K, we recompute Top-KK among remaining experts with unchanged logits and fixed tie-breaking, then apply softmax on the new support to obtain gℓ(P)g_{\ell}^{(P)}. Write yℓ(P)(x)=∑jgℓ,j(P)(x)fℓ,j(x)y_\ell^{(P)}(\mathbf{x}) = \sum_j g_{\ell,j}^{(P)}(\mathbf{x})f_{\ell,j}(\mathbf{x}) and δℓ(x,P)=yℓ(P)(x)−yℓ(x)\delta_\ell(\mathbf{x},P) = y_\ell^{(P)}(\mathbf{x}) - y_\ell(\mathbf{x}).

The following lemma quantifies the routing change.

Lemma 4.1 (Exact ℓ1\ell_1 Identity under Top-KK Rerouting). Let Eℓ(x,P)≜∑j∈Tℓ(x)∩Pgℓ,j(x)E_\ell(\mathbf{x},P) \triangleq\sum_{j\in T_\ell(\mathbf{x})\cap P} g_{\ell,j}(\mathbf{x}) be the probability mass assigned to pruned experts. The ℓ1\ell_1 distance between the original and pruned gating distributions satisfies:

∥gℓ(P)(x)−gℓ(x)∥1=2Eℓ(x,P).(6)\left\lVert g_\ell^{(P)}(\mathbf{x})-g_\ell(\mathbf{x})\right\rVert_1 = 2E_\ell(\mathbf{x},P). \tag*{(6)}

Proof. The new softmax normalizer cannot increase, so surviving original Top-KK weights cannot decrease. Unpruned experts gain exactly the removed mass EℓE_\ell, yielding an ℓ1\ell_1 change of 2Eℓ2E_\ell (Appendix § 11.§ 3).

We first separate the mask-wise perturbation bound from the distribution used to select pruning masks.

Proposition 4.2 (Perturbation bound for arbitrary selectors). Fix 0≤m≤N−K0 \le m \le N-K and let Pℓ,m\mathcal{P}_{\ell,m} contain all size-mm pruning masks. Under the rerouting rule in Appendix § 11.1.5 and bounded expert outputs ∥fℓ,j(x)∥1≤Bℓ\lVert f_{\ell,j}(\mathbf{x})\rVert_1 \le B_\ell, every admissible PP and x\mathbf{x} satisfy

∥δℓ(x,P)∥12≤4Bℓ2Eℓ(x,P)2.(7)\lVert\delta_\ell(\mathbf{x},P)\rVert_1^2 \le4B_\ell^2 E_\ell(\mathbf{x},P)^2. \tag*{(7)}

Condition on fixed calibration data. For any token-independent distribution qℓq_\ell on Pℓ,m\mathcal{P}_{\ell,m}, let Mℓ(qℓ)=Ex,P∼qℓ[Eℓ(x,P)2]\mathcal{M}_\ell(q_\ell) = \mathbb{E}_{\mathbf{x},P\sim q_\ell}[E_\ell(\mathbf{x},P)^2]. Then

Ex,P∼qℓ[∥δℓ(x,P)∥12]≤4Bℓ2Mℓ(qℓ).(8)\mathbb{E}_{\mathbf{x},P\sim q_\ell}\left[\lVert\delta_\ell(\mathbf{x},P)\rVert_1^2\right] \le4B_\ell^2\mathcal{M}_\ell(q_\ell). \tag*{(8)}

A deterministic selector has qℓ(P)=1{P=PA}q_\ell(P) = \mathbf{1}\{P=P_A\}.

Uniform random pruning gives a closed-form special case of Proposition 4.2.

Theorem 4.3 (Expected perturbation under random pruning). Under Proposition 4.2’s assumptions, let P∼Unif⁡(Pℓ,m)P \sim\operatorname{Unif}(\mathcal{P}_{\ell,m}) independently of x\mathbf{x}. Then

Ex,P[∥δℓ(x,P)∥12]≤4Bℓ2(c0(m,N)+c1(m,N)[1K+2Sℓ]).(9)\mathbb{E}_{\mathbf{x},P}\left[\lVert\delta_\ell(\mathbf{x},P)\rVert_1^2\right] \le4B_\ell^2\left(c_0(m,N)+c_1(m,N)\left[\frac{1}{K}+2S_\ell\right]\right). \tag*{(9)}

where

c0(m,N)=m(m−1)N(N−1),c_0(m,N) = \frac{m(m-1)}{N(N-1)},
c1(m,N)=m(N−m)N(N−1).c_1(m,N) = \frac{m(N-m)}{N(N-1)}.

and Sℓ=log⁡K−HˉℓS_\ell= \log K-\bar{H}_\ell is the routing entropy gap.

The proof combines the uniform-subset second moment with Pinsker’s inequality; see Appendix § 11.§ 3.

Corollary 4.4 (Entropy bound for deterministic selectors). Under the same assumptions, write Ψℓ(m)\Psi_\ell(m) for the bracketed term in Eq. (9) and let Uℓ,m=Unif⁡(Pℓ,m)\mathcal{U}_{\ell,m}=\operatorname{Unif}(\mathcal{P}_{\ell,m}). If a deterministic selector returns PAP_A satisfying

Ex[Eℓ(x,PA)2]≤Mℓ(Uℓ,m)+εA,ℓ,(10)\mathbb{E}_{\mathbf{x}}\left[E_\ell(\mathbf{x},P_A)^2\right] \le\mathcal{M}_\ell(\mathcal{U}_{\ell,m})+\varepsilon_{A,\ell}, \tag*{(10)}

for some εA,ℓ≥0\varepsilon_{A,\ell}\ge0. Then

Ex[∥δℓ(x,PA)∥12]≤4Bℓ2(Ψℓ(m)+εA,ℓ).(11)\mathbb{E}_{\mathbf{x}}\left[\lVert\delta_\ell(\mathbf{x},P_A)\rVert_1^2\right] \le4B_\ell^2\left(\Psi_\ell(m)+\varepsilon_{A,\ell}\right). \tag*{(11)}

If this second moment is no greater than the uniform random pruning baseline, εA,ℓ=0\varepsilon_{A,\ell}=0 suffices.

Proofs of Proposition 4.2 and Corollary 4.4 are in Appendix § 11.§ 3. The condition in Eq. (10) is not established for REAP or EASY-EP.

End-to-End Propagation as a Weighting Factor

Consider an LL-layer residual network with original states hℓh_\ell, pruned states h^ℓ\hat{h}_\ell, and identical initial states. Assume deterministic Lipschitz constants λℓ\lambda_\ell hold uniformly over admissible masks on a common domain containing both trajectories. Unrolling the error recursion gives:

Proposition 4.5 (Propagation decomposition). For any fixed sequence of pruning masks {Pℓ}ℓ=0L−1\{P_\ell\}_{\ell=0}^{L-1},

∥h^L−hL∥1≤∑ℓ=0L−1Γℓ∥δℓ(hℓ,Pℓ)∥1,\lVert\hat{h}_L-h_L\rVert_1 \le\sum_{\ell=0}^{L-1}\Gamma_\ell\lVert\delta_\ell(h_\ell,P_\ell)\rVert_1,
Γℓ=α∏k=ℓ+1L−1(1+αλk).(12)\Gamma_\ell=\alpha\prod_{k=\ell+1}^{L-1}(1+\alpha\lambda_k). \tag*{(12)}

The proof follows by discrete Gronwall unrolling; see Appendix § 11.§ 4. Taking expectations and applying Proposition 4.2 yields

E∥h^L−hL∥1≤2∑ℓ=0L−1ΓℓBℓMℓ(qℓ).(13)\mathbb{E}\lVert\hat{h}_L-h_L\rVert_1 \le2\sum_{\ell=0}^{L-1}\Gamma_\ell B_\ell\sqrt{\mathcal{M}_\ell(q_\ell)}. \tag*{(13)}

Here Mℓ\mathcal{M}_\ell uses the original layer-input distribution, with masks independent of the evaluation input given fixed calibration data. Its bound is Ψℓ(mℓ)\Psi_\ell(m_\ell) for uniform random pruning and Ψℓ(mℓ)+εA,ℓ\Psi_\ell(m_\ell)+\varepsilon_{A,\ell} under Eq. (10). The decomposition motivates a propagation regularizer, without identifying an exact estimator of Γℓ\Gamma_\ell.

Implications for Pruning Strategy

For fixed (m,N,K,Bℓ)(m,N,K,B_\ell) and selector residual, the bound increases with Sℓ=log⁡K−HˉℓS_\ell=\log K-\bar{H}_\ell. SPARE does not minimize the summed bound; it uses SℓS_\ell as a layer-ranking signal and ignores the layer-dependent scale BℓB_\ell. The allocation score in § 5 is therefore a heuristic.

Since exact Lipschitz products are intractable for large MoEs, SPARE uses a cosine-based proxy as an empirical propagation regularizer; entropy remains the primary allocation signal.

Entropy-Aware Sparsity Allocation

SPARE converts layer-wise routing entropy into an integer pruning profile under the global budget. It uses entropy as the primary signal and an optional propagation-aware term as a lightweight regularizer.

Entropy-Based Allocation Score

Since Sℓ=log⁡K−HˉℓS_\ell=\log K-\bar{H}_\ell, smaller entropy gap is equivalent to larger routing entropy. We therefore define the normalized allocation score

Rℓ=Hˉℓ−min⁡kHˉkmax⁡kHˉk−min⁡kHˉk.(14)\mathcal{R}_\ell=\frac{\bar{H}_\ell-\min_k\bar{H}_k}{\max_k\bar{H}_k-\min_k\bar{H}_k}. \tag*{(14)}

Layers with larger Rℓ\mathcal{R}_\ell are assigned larger pruning budgets. A contrast coefficient pp controls the sharpness of allocation:

Wbase(ℓ)=(Rℓ)p.(15)\mathcal{W}_{\mathrm{base}}^{(\ell)}=(\mathcal{R}_\ell)^p. \tag*{(15)}

Propagation-Aware Regularization

Equation (12) motivates accounting for downstream propagation, but exact Lipschitz products are intractable for large MoEs. We use cosine similarity only as a data-dependent proxy. Let ckc_k be the average cosine similarity between the input and output activations of layer kk. We define

Dℓ=∑k=ℓ+1L−1(1−ck),ϕstab(ℓ)=exp⁡(−βDℓ).(16)D_\ell=\sum_{k=\ell+1}^{L-1}(1-c_k),\qquad\phi_{\mathrm{stab}}^{(\ell)}=\exp(-\beta D_\ell). \tag*{(16)}

This term mildly reduces the pruning weight of layers whose perturbations pass through more transformative downstream blocks. When β=0\beta=0, SPARE reduces to entropy-only allocation.

Discrete Budget Projection

The final continuous allocation weight is

Wℓ=Wbase(ℓ)ϕstab(ℓ).(17)\mathcal{W}_\ell=\mathcal{W}_{\mathrm{base}}^{(\ell)}\phi_{\mathrm{stab}}^{(\ell)}. \tag*{(17)}

We convert {Wℓ}\{\mathcal{W}_\ell\} into an integer pruning profile by solving for a global scaling factor λ∗\lambda^*:

∑ℓ=0L−1PZ(λ∗Wℓ)=Mtarget,(18)\sum_{\ell=0}^{L-1}\mathcal{P}_{\mathbb{Z}}(\lambda^*\mathcal{W}_\ell)=M_{\mathrm{target}}, \tag*{(18)}

where PZ(⋅)\mathcal{P}_{\mathbb{Z}}(\cdot) rounds to the nearest feasible integer under 0≤mℓ≤N−K0\le m_\ell\le N-K. Since the left-hand side is monotone in λ∗\lambda^*, we solve it by bisection and obtain the final profile m\mathbf{m}.

Experiments

We ask three questions: (RQ1) Does entropy-guided allocation improve benchmark performance over uniform allocation at the same pruning budget? (RQ2) Does the gain persist across the evaluated expert selectors, and does entropy correlate with pruning risk when the selector is fixed? (RQ3) How stable are entropy profiles across calibration domains, and how does non-uniform allocation affect throughput in the tested implementation?

Experimental Setup

Models. We evaluate Mixtral-8x7B-Instruct-v0.1, Qwen3-30B-A3B, Qwen3-235B-A22B, and DeepSeek-R1.

Benchmarks. We assess capabilities across four distinct domains: (i) Multiple-choice tasks: MMLU (Hendrycks et al., [10]), ARC-Challenge (ARC-c) / ARC-Easy (ARC-e) (Clark et al., [6]), BoolQ (Clark et al., [5]), HellaSwag (Hella) (Zellers et al., 2019), OpenBookQA (OBQA) (Mihaylov et al., 2018), Recognizing Textual Entailment Challenge (RTE) (Bentivogli et al., [2]), and WinoGrande (WinG) (Sakaguchi et al., 2021); (ii) Reasoning: MATH-500 (Lightman et al., [19]); (iii) Science question answering: GPQA-Diamond (Rein et al., 2023); and (iv) Code: LiveCodeBench (Jain et al., [12]).

Calibration. For Mixtral and Qwen3-30B-A3B, we use a calibration set of 1024 randomly sampled sequences from C4 to estimate layer-average routing entropy (Hˉℓ\bar{H}_{\ell}). For large-scale reasoning models such as DeepSeek-R1, we sample 25 instances each from AIME (math), LiveCodeBench (code), and GPQA (science).

Baselines and Protocols. To disentangle the benefits of sparsity allocation from expert selection, we structure our comparison along two orthogonal dimensions. 1) Intra-layer Expert Ranking: Determines expert priority within a layer. We employ: (i) Random; (ii) EASY-EP (Dong et al., [8]); and (iii) REAP (Lasby et al., [15]). 2) Inter-layer Sparsity Allocation: Determines the pruning budget mℓm_{\ell} per layer. We compare: (i) Uniform; (ii) OWL (Yin et al., 2024); and (iii) SPARE.

Main Results

Table 1 shows improvements in macro-average accuracy in all ten evaluated combinations of model, pruning ratio, and intra-layer selector. The largest gain occurs on Qwen3-30B-A3B at 50% pruning: with EASY-EP fixed, SPARE raises mean accuracy from 57.2% to 63.8%, a gain of 6.6 percentage points. At the same pruning ratio, gains with Random and REAP are 0.9 and 2.3 points, respectively, showing that the benefit depends on the selector. Improvements at 25% pruning are smaller, ranging from 0.1 to 0.7 points.

ModelPRInter.Intra.ARC-cARC-eBoolQHellaMMLUOBQARTEWinGAvg.↑
Mixtral-8x7B -Instruct-v0.10%Baseline65.084.288.786.169.149.672.274.073.6
Mixtral-8x7B -Instruct-v0.125%Uni.Random59.681.486.982.962.746.871.175.670.9
Mixtral-8x7B -Instruct-v0.125%Uni.REAP60.680.787.583.563.348.671.970.970.9
Mixtral-8x7B -Instruct-v0.125%SPARERandom60.181.987.183.263.147.571.975.871.3 (↑0.4)
Mixtral-8x7B -Instruct-v0.125%SPAREREAP61.881.587.984.064.549.271.972.171.6 (↑0.7)
Mixtral-8x7B -Instruct-v0.150%Uni.Random51.473.381.575.752.141.070.269.564.3
Mixtral-8x7B -Instruct-v0.150%Uni.REAP50.976.285.378.151.944.671.672.566.4
Mixtral-8x7B -Instruct-v0.150%SPARERandom50.975.581.777.254.442.070.870.265.3 (↑1.0)
Mixtral-8x7B -Instruct-v0.150%SPAREREAP53.678.486.978.253.144.470.474.167.4 (↑1.0)
Qwen3-30B-A3B0%Baseline56.279.188.377.677.944.681.671.172.1
Qwen3-30B-A3B25%Uni.Random50.875.684.870.769.740.280.568.867.6
Qwen3-30B-A3B25%Uni.REAP55.878.387.175.871.944.679.470.570.4
Qwen3-30B-A3B25%Uni.Easy-EP53.278.088.876.674.244.081.970.770.9
Qwen3-30B-A3B25%SPARERandom50.676.885.570.868.841.279.069.067.7 (↑0.1)
Qwen3-30B-A3B25%SPAREREAP56.078.487.576.072.144.880.170.670.7 (↑0.3)
Qwen3-30B-A3B25%SPAREEasy-EP53.878.489.076.974.444.681.569.471.0 (↑0.1)
Qwen3-30B-A3B50%Uni.Random40.062.877.955.549.625.474.161.155.8
Qwen3-30B-A3B50%Uni.REAP40.561.282.964.451.136.261.064.557.7
Qwen3-30B-A3B50%Uni.Easy-EP37.258.181.066.749.037.663.264.757.2
Qwen3-30B-A3B50%SPARERandom39.863.177.155.950.631.874.061.256.7 (↑0.9)
Qwen3-30B-A3B50%SPAREREAP43.164.683.364.548.937.074.763.660.0 (↑2.3)
Qwen3-30B-A3B50%SPAREEasy-EP42.565.284.973.259.141.275.868.463.8 (↑6.6)

Table 1. Benchmark accuracy (%) and unweighted eight-task averages under expert pruning. PR denotes the global pruning ratio. Inter.: uniform (Uni.) or SPARE budget allocation. Intra.: Random, REAP, or EASY-EP expert selection. Bold indicates the best score within each model/PR setting; gains in Avg. compare SPARE with uniform allocation using the same selector.

Controlled Analysis of Pruning Risk

Entropy groups with a fixed selector. On Mixtral-8×7B, we estimate routing entropy using 128 C4 samples and divide layers into high-, middle-, and low-entropy groups. Within each group, we use the same selector, REAP, to prune four of the eight experts per layer while retaining the expert with the highest REAP score. Table 3 reports normalized output perturbation on held-out samples. The low-entropy group has higher perturbation than the high-entropy group in all three domains, although the middle group does not follow a uniformly monotonic ordering. The point estimates indicate an association under this selection procedure.

DomainHighMiddleLow
WikiText20.7210.6410.726
MATH-5000.6730.7360.728
HumanEval0.7260.7250.763

Table 3. Normalized output perturbation on Mixtral-8×7B under the same REAP selection procedure. Columns denote layer entropy groups.

Single-layer pruning and output-distribution changes. We next test whether this association holds when each layer is pruned in isolation. For each MoE layer, we remove its lowest-saliency experts under REAP, with saliency estimated on C4, while keeping all other layers intact; the pruning ratios in Table 4 apply only to the intervened layer. We measure the resulting output-distribution change on C4, Math, Code, and MMLU with KL divergence truncated to the unpruned model’s top-64 tokens, and summarize each layer by its mean over the four domains and by its worst (maximum) domain. We define routing concentration as Cℓ=1−Hˉℓ/log⁡K=Sℓ/log⁡KC_{\ell}=1-\bar{H}_{\ell}/\log K=S_{\ell}/\log K, so a larger CℓC_{\ell} corresponds to lower routing entropy. In both models, at both pruning ratios, and under both aggregations, the correlation between CℓC_{\ell} and pruning-induced KL is positive, ranging from 0.26 to 0.45. These correlations are moderate: routing concentration accounts for only part of the layer-to-layer variation in pruning risk. We therefore use it to rank layers for budget allocation, not to predict the perturbation of an individual layer.

ModelPRMean-domain KLWorst-domain KL
DeepSeek-V2-Lite25%+0.435+0.450
DeepSeek-V2-Lite50%+0.340+0.272
Qwen3-30B-A3B25%+0.288+0.257
Qwen3-30B-A3B50%+0.314+0.329

Table 4. Pearson correlation between routing concentration Cℓ=1−Hˉℓ/log⁡KC_\ell= 1 - \bar{H}_\ell/\log K and pruning-induced KL under single-layer REAP pruning, computed over n=26n = 26 (DeepSeek-V2-Lite) and n=48n = 48 (Qwen3-30B-A3B) MoE layers. PR is the pruning ratio of the intervened layer; KL is truncated to the teacher’s top-64 tokens.

Scalability to Large-scale Reasoning MoEs

At 50% global expert pruning, we compare SPARE and uniform allocation on Qwen3-235B-A22B and DeepSeek-R1, using EASY-EP for both (Table 2). On both models, SPARE narrows the gap to the unpruned model in the unweighted three-score mean. It raises this mean from 80.1 to 82.8 on DeepSeek-R1, compared with 83.4 before pruning, and from 86.4 to 87.9 on Qwen3-235B-A22B. On DeepSeek-R1, GPQA-Diamond improves by 5.5 points and

ModelPRInter.LCBMathGPQAAvg.↑
DS-R1–Baseline84.596.069.783.4
DS-R150%Uni.79.094.766.780.1
DS-R150%SPARE82.094.372.282.8 (↑2.7)
Qwen3–Baseline92.596.077.588.7
Qwen350%Uni.89.095.774.486.4
Qwen350%SPARE93.095.775.187.9 (↑1.5)

Table 2. Large-scale MoEs at 50% global expert pruning (PR), using EASY-EP for both allocation rules. DS-R1: DeepSeek-R1; Qwen3: Qwen3-235B-A22B. LCB/Math/GPQA: LiveCodeBench/MATH-500/GPQA-Diamond. Avg. is the unweighted three-score mean; gains compare with uniform allocation.

LiveCodeBench by 3.0 points over uniform allocation, while MATH-500 declines by 0.4 points. Deployment efficiency is reported in Appendix § 9.

Comparison with Layer-wise Allocation Baselines

We compare SPARE with OWL ((Yin et al., 2024)) adapted from weight-sparsity allocation to expert pruning, holding EASY-EP fixed for both methods. On Qwen3-30B-A3B, average accuracy is comparable at 12.5% pruning and higher with SPARE at 25%, 37.5%, and 50% (Appendix § 10). Direct comparisons with other MoE-specific allocation pipelines remain outside the evaluation.

Calibration Robustness

We compare DeepSeek-R1 layer-average entropy across four calibration domains: C4 (web), MATH-500 (math), LiveCodeBench (code), and GPQA-Diamond (science). Table 5 reports correlations relative to C4. Spearman correlations range from 0.958 to 0.974, indicating similar layer rankings across these domains. This analysis measures entropy-profile stability; it does not establish identical integer budgets or unchanged downstream performance under every calibration choice.

ModelCalibration analysisPearson rrSpearman ρ\rho
DeepSeek-R1C4 vs. MATH-5000.9880.962
DeepSeek-R1C4 vs. LiveCodeBench0.9910.974
DeepSeek-R1C4 vs. GPQA-Diamond0.9790.958

Table 5. Cross-domain correlations of layer-average routing entropy on DeepSeek-R1, using C4 as the reference calibration domain.

Ablation on Hyper-parameters

We run two separate sweeps on Qwen3-30B-A3B with EASY-EP at 50% global expert pruning (Table 6). The pp sweep fixes β=0\beta= 0: mean accuracy peaks at p=2.0p = 2.0 (63.2%) and falls to 58.5% at p=2.5p = 2.5, showing that stronger contrast need not help. The β\beta sweep fixes p=2.0p = 2.0: scores range

Param0.81.01.52.02.5Param0.00.20.40.6
Avg.↑\uparrow61.961.562.863.258.5Avg.↑\uparrow63.263.163.163.8

Table 6. Hyper-parameter ablation. Qwen3-30B-A3B with EASY-EP at 50% global pruning. Unweighted eight-task mean accuracy (%); the pp sweep fixes β=0\beta= 0, and the β\beta sweep fixes p=2.0p = 2.0. Bold marks the best score within each sweep.

from 63.1% to 63.8%, peaking at β=0.6\beta= 0.6. These are separate sweeps, not a joint parameter grid. The allocation profiles in Figure 2 show that larger pp increases the contrast between more- and less-pruned layers, while the profiles for β∈[0,0.6]\beta\in[0, 0.6] remain close. We selected p=2.0p = 2.0 and β=0.6\beta= 0.6 on the reported Qwen3-30B-A3B evaluation benchmarks and fixed them for all other models.

Layer-wise allocation profiles on Qwen3-30B-A3B with EASY-EP at 50% global expert pruning

Figure 2. Layer-wise allocation profiles on Qwen3-30B-A3B with EASY-EP at 50% global expert pruning. Left: varying pp with β=0\beta= 0 changes the contrast between more- and less-pruned layers. Right: varying β∈[0,0.6]\beta\in[0, 0.6] with p=2.0p = 2.0 produces similar profiles.

Conclusion and Future Work

We introduced SPARE, a training-free method that uses token-level routing entropy to allocate expert-pruning budgets across MoE language-model layers and can be paired with existing intra-layer selectors. A perturbation analysis and controlled interventions with a fixed selector associate concentrated routing with greater pruning risk. Under the same expert selector and global budget, SPARE improves average performance in the evaluated settings, with larger gains at high pruning ratios: at 50% expert pruning, it raises the Qwen3-30B-A3B eight-task average from 57.2% to 63.8%, and the DeepSeek-R1 three-benchmark average from 80.1 to 82.8, close to the unpruned 83.4. Future work includes studying calibration shift and combining entropy-guided allocation with quantization and expert merging.

Limitations

SPARE yields its largest gains at aggressive pruning ratios; at moderate ratios such as 25%, its improvements over uniform allocation are small. We study SPARE only for expert pruning; combining it with quantization or expert merging is left for future work.

Additional results

To further validate the applicability of SPARE to fine-grained MoE architectures, we extend our evaluation to the recent GLM-5. Our main experiments already cover representative fine-grained MoEs, including Qwen3-30B-A3B, Qwen3-235B-A22B, and DeepSeek-R1. As summarized in Table 7, these models differ in the number of routed experts, the use of shared experts, and the number of MoE layers. GLM-5 follows a structure similar to DeepSeek-R1, with 256 routed experts, top-8 routing, and one shared expert, but increases the number of layers from 61 to 78.

ModelRouted ExpertsTop-KKSharedLayers
DeepSeek-R1 (671B)2568Yes (1)61
Qwen3-30B-A3B1288No48
Qwen3-235B-A22B1288No94
GLM-52568Yes (1)78

Table 7. Architectural configurations of fine-grained MoEs. We compare the routed expert count, routing top-KK, shared expert design, and layer count across the evaluated MoE models.

As in § 6.4, both SPARE and uniform allocation use EASY-EP at 50% global expert pruning. On GLM-5, SPARE improves the average accuracy from 87.5% to 89.8%, yielding a +2.3 point gain over uniform allocation. This additional result extends the observed average improvement to another fine-grained MoE architecture.

Deployment efficiency. At the same global pruning budget, SPARE and uniform allocation remove the same total number of experts, giving equal routed-expert parameter storage when expert sizes and precision match. We use modified fused MoE Triton kernels to support variable per-layer expert counts. Table 8 reports throughput on a DeepSeek-style architecture at 50% pruning. Relative differences from uniform allocation range from a 1.16% decrease to a 0.56% increase across the tested batch sizes. Throughput is similar in these measured configurations.

Batch size1163264
Uniform8.61172.32181.54162.31
SPARE8.51172.57182.56162.24

Table 8. Throughput under different batch sizes.

Additionally, non-uniform allocation opens future optimization possibilities: layers retaining more experts can use padded expert placement to co-locate the most frequently activated experts, potentially reducing HBM transfer beyond what uniform pruning achieves.

Comparison with Layer-wise Allocation Methods

We compare SPARE with the adapted OWL allocation on Qwen3-30B-A3B, holding EASY-EP fixed for both methods. Figure 3 plots average benchmark accuracy against the global expert-pruning ratio. The methods are comparable at 12.5% pruning; SPARE has higher average accuracy at 25%, 37.5%, and 50%. OWL uses activation-aware weight outlier statistics, whereas SPARE uses token-level routing entropy.

Average benchmark accuracy versus global expert-pruning ratio on Qwen3-30B-A3B

Figure 3. Average benchmark accuracy versus global expert-pruning ratio on Qwen3-30B-A3B.

Proof of Main Theorem

Notation and Mathematical Definitions

Data and Tokens

Let D\mathcal{D} denote the target token distribution (e.g., pruning-evaluation domain). We write x∼Dx \sim\mathcal{D} for a random token representation entering a given MoE layer. In practice, D\mathcal{D} is approximated by a finite calibration set of MM tokens, D={x1,…,xM}\mathcal{D} = \{x_1, \ldots, x_M\}.

MoE Layer, Experts, and Router

Consider a fixed MoE layer ℓ\ell with:

  • NN experts indexed by j∈{1,…,N}j \in\{1, \ldots, N\}, each mapping token input xx to an output vector fℓ,j(x)∈Rdf_{\ell,j}(x) \in\mathbb{R}^{d} (dimension dd depends on the model).

  • Router logits zℓ(x)=(zℓ,1(x),…,zℓ,N(x))∈RNz_{\ell}(x) = (z_{\ell,1}(x), \ldots, z_{\ell,N}(x)) \in\mathbb{R}^{N}.

Top-K Routing and Gating Distribution

Let K<NK < N be the number of selected experts per token. Define the Top-K index set

Tℓ(x)≜TopK⁡(zℓ(x)),∣Tℓ(x)∣=K,(19)T_{\ell}(x) \triangleq\operatorname{TopK}(z_{\ell}(x)), \qquad|T_{\ell}(x)| = K, \tag*{(19)}

where TopK⁡(⋅)\operatorname{TopK}(\cdot) returns indices of the KK largest components, using a fixed ordering of expert indices to break ties before and after pruning.

The Top-K gating distribution gℓ(x)g_{\ell}(x) is defined by softmax restricted to Tℓ(x)T_{\ell}(x):

gℓ,j(x)≜{ezℓ,j(x)∑t∈Tℓ(x)ezℓ,t(x)j∈Tℓ(x),0j∉Tℓ(x).(20)g_{\ell,j}(x) \triangleq \begin{cases} \dfrac{e^{z_{\ell,j}(x)}}{\sum_{t\in T_{\ell}(x)} e^{z_{\ell,t}(x)}} & j \in T_{\ell}(x),\\ 0 & j \notin T_{\ell}(x). \end{cases} \tag*{(20)}

Thus gℓ,j(x)≥0g_{\ell,j}(x) \ge0 and ∑j=1Ngℓ,j(x)=1\sum_{j=1}^{N} g_{\ell,j}(x) = 1, but only KK entries are nonzero.

Layer Output (MoE Branch)

The MoE layer output (restricted to the expert mixture branch) is

yℓ(x)≜∑j=1Ngℓ,j(x)fℓ,j(x)=∑t∈Tℓ(x)gℓ,t(x)fℓ,t(x).(21)y_{\ell}(x) \triangleq\sum_{j=1}^{N} g_{\ell,j}(x) f_{\ell,j}(x) = \sum_{t\in T_{\ell}(x)} g_{\ell,t}(x) f_{\ell,t}(x). \tag*{(21)}

Pruning Operation and Top-K Rerouting

Let P⊆{1,…,N}P \subseteq\{1,\ldots,N\} denote the removed expert set, with ∣P∣=m≤N−K|P| = m \le N-K. Router logits are unchanged by pruning. We recompute Top-K over the remaining experts, retaining their original indices:

Tℓ,P(x)≜TopK⁡j∉P(zℓ,j(x)),∣Tℓ,P(x)∣=K.T_{\ell,P}(x) \triangleq\operatorname{TopK}_{j\notin P}(z_{\ell,j}(x)), \qquad|T_{\ell,P}(x)| = K.

This uses the same tie-breaking rule as the original routing. The removed experts that were originally active and their gate mass are

Dℓ(x)≜Tℓ(x)∩P,D_{\ell}(x) \triangleq T_{\ell}(x) \cap P,
Eℓ(x,P)≜∑j∈Dℓ(x)gℓ,j(x),(22)\mathcal{E}_{\ell}(x,P) \triangleq\sum_{j\in D_{\ell}(x)} g_{\ell,j}(x), \tag*{(22)}

where Eℓ(x,P)\mathcal{E}_{\ell}(x,P) is the total probability mass assigned to pruned experts within the original Top-K support.

Top-K Routing and Gating Distribution

The post-pruning gating distribution is softmax over the recomputed support:

gℓ,j(P)(x)≜{ezℓ,j(x)∑t∈Tℓ,P(x)ezℓ,t(x)j∈Tℓ,P(x),0otherwise,(23)g_{\ell,j}^{(P)}(x) \triangleq \begin{cases} \dfrac{e^{z_{\ell,j}(x)}}{\sum_{t\in T_{\ell,P}(x)} e^{z_{\ell,t}(x)}} & j \in T_{\ell,P}(x),\\ 0 & \text{otherwise}, \end{cases} \tag*{(23)}

Since N−m≥KN-m \ge K, this remains well defined even when every originally active expert is removed. The post-pruning output is yℓ(P)(x)=∑jgℓ,j(P)(x)fℓ,j(x)y_{\ell}^{(P)}(x) = \sum_j g_{\ell,j}^{(P)}(x)f_{\ell,j}(x), and the perturbation is δℓ(x,P)=yℓ(P)(x)−yℓ(x)\delta_{\ell}(x,P) = y_{\ell}^{(P)}(x) - y_{\ell}(x).

Routing Entropy and Concentration

For a Top-K sparse distribution gℓ(x)g_{\ell}(x), define Shannon entropy

H(gℓ(x))≜−∑j=1Ngℓ,j(x)log⁡gℓ,j(x),(24)H(g_{\ell}(x)) \triangleq-\sum_{j=1}^{N} g_{\ell,j}(x)\log g_{\ell,j}(x), \tag*{(24)}

where the convention 0log⁡0=00\log0 = 0 is used. Since only KK entries are nonzero, we have 0≤H(gℓ(x))≤log⁡K0 \le H(g_{\ell}(x)) \le\log K.

Define the layer-average entropy and routing entropy gap as in Eq. (4). Equivalently, let uTℓ(x)u_{T_{\ell}(x)} denote the uniform distribution on the Top-K support Tℓ(x)T_{\ell}(x): uTℓ(x)(j)=1/Ku_{T_{\ell}(x)}(j) = 1/K if j∈Tℓ(x)j \in T_{\ell}(x) and 00 otherwise. Then

KL⁡(gℓ(x) ∥ uTℓ(x))=log⁡K−H(gℓ(x)),\operatorname{KL}\left(g_{\ell}(x)\,\middle\|\,u_{T_{\ell}(x)}\right) = \log K - H(g_{\ell}(x)),
Sℓ=Ex[KL⁡(gℓ(x) ∥ uTℓ(x))].(25)S_{\ell} = \mathbb{E}_{x}\left[\operatorname{KL}\left(g_{\ell}(x)\,\middle\|\,u_{T_{\ell}(x)}\right)\right]. \tag*{(25)}

Interpretation. Larger SℓS_{\ell} means greater routing concentration: the gating distribution is further from uniform on its active support.

Assumptions

We state the assumption used to relate routing concentration to pruning perturbation.

Assumption 1 (Output scale control). For each layer ℓ\ell, there exists Bℓ>0B_{\ell} > 0 such that

∥fℓ,j(x)∥1≤Bℓ∀x,P, j∈Tℓ(x)∪Tℓ,P(x),(26)\lVert f_{\ell,j}(x)\rVert_{1} \le B_{\ell} \qquad\forall x, P, \ j \in T_{\ell}(x) \cup T_{\ell,P}(x), \tag*{(26)}

where PP ranges over admissible pruning sets with ∣P∣≤N−K|P| \le N-K.

Single-Layer Pruning Perturbation

Proofs for general and deterministic selectors. For Proposition 4.2, the triangle inequality, bounded expert outputs, and the routing identity proved below give, pointwise for every admissible xx and PP,

∥δℓ(x,P)∥1≤Bℓ∥gℓ(P)(x)−gℓ(x)∥1=2BℓEℓ(x,P).\lVert\delta_\ell(x,P)\rVert_1 \le B_\ell\lVert g_\ell^{(P)}(x)-g_\ell(x)\rVert_1 =2B_\ell\mathcal{E}_\ell(x,P).

Squaring before taking expectations yields Eqs. (7) and (8) for any mask distribution qℓq_\ell. A deterministic selector is the special case with all probability on its returned mask. All expectations are conditional on fixed calibration data and are taken over the stated evaluation-token distribution.

For Corollary 4.4, the bracketed term in Eq. (9) is

Ψℓ(m)=c0(m,N)+c1(m,N)[1K+2Sℓ].(27)\Psi_\ell(m)=c_0(m,N) +c_1(m,N)\left[\frac{1}{K}+2S_\ell\right]. \tag*{(27)}

Lemmas C.3 and C.4 give

Mℓ(Uℓ,m)=c0(m,N)+c1(m,N)Ex[Qℓ(x)]≤Ψℓ(m).\mathcal{M}_\ell(U_\ell,m)=c_0(m,N)+c_1(m,N)\mathbb{E}_x[Q_\ell(x)] \le\Psi_\ell(m).

Combining this with Eqs. (7) and (10) proves Eq. (11). In particular, a selector that minimizes Ex[Eℓ(x,P)2]\mathbb{E}_x[\mathcal{E}_\ell(x,P)^2] over the finite mask family satisfies the condition with εA,ℓ=0\varepsilon_{A,\ell}=0, since its minimum cannot exceed the uniform average. This observation does not establish the condition for selectors optimizing a different saliency criterion. A residual measured on calibration samples is an empirical estimate and does not by itself certify the condition on the evaluation distribution.

Proof Sketch for Main Theorem. Pruning a subset PP changes the Top-KK routing distribution from gℓ(x)g_\ell(x) to gℓ(P)(x)g_\ell^{(P)}(x). Let Eℓ(x,P)\mathcal{E}_\ell(x,P) denote the total gate mass assigned to experts that are both pruned and originally selected. A key identity shows that the routing change is exact: ∥gℓ(P)(x)−gℓ(x)∥1=2Eℓ(x,P)\lVert g_\ell^{(P)}(x)-g_\ell(x)\rVert_1=2\mathcal{E}_\ell(x,P) (Lemma C.1). Since the MoE output is a convex combination of bounded expert outputs, the output perturbation satisfies ∥δℓ(x,P)∥22≤4Bℓ2Eℓ(x,P)2\lVert\delta_\ell(x,P)\rVert_2^2\le4B_\ell^2\mathcal{E}_\ell(x,P)^2 (Lemma C.2). Under uniform random pruning, EP[Eℓ(x,P)2]\mathbb{E}_P[\mathcal{E}_\ell(x,P)^2] decomposes into a constant term and a collision term proportional to Qℓ(x)=∑jgℓ,j(x)2Q_\ell(x)=\sum_j g_{\ell,j}(x)^2 (Lemma C.3). Finally, for Top-KK sparse routing, the collision probability is upper bounded by the entropy gap Qℓ(x)≤1K+2(log⁡K−H(gℓ(x)))Q_\ell(x)\le\frac{1}{K}+2(\log K-H(g_\ell(x))) (Lemma C.4), which yields the stated bound and establishes monotonic dependence on routing entropy gap.

Lemma C.1 (Exact ℓ1\ell_1 identity). Fix layer ℓ\ell, token xx, and pruned set PP. Let Dℓ(x)≜Tℓ(x)∩PD_\ell(x)\triangleq T_\ell(x)\cap P be the set of pruned experts that were originally in Top-KK, and define Eℓ(x,P)=∑j∈Dℓ(x)gℓ,j(x)\mathcal{E}_\ell(x,P)=\sum_{j\in D_\ell(x)}g_{\ell,j}(x). Then

∥gℓ(P)(x)−gℓ(x)∥1=2Eℓ(x,P).(28)\lVert g_\ell^{(P)}(x)-g_\ell(x)\rVert_1=2\mathcal{E}_\ell(x,P). \tag*{(28)}

Proof. For brevity, suppress layer ℓ\ell and token xx in notation. Let T≜Tℓ(x)T\triangleq T_\ell(x) and TP≜Tℓ,P(x)T_P\triangleq T_{\ell,P}(x). Define

D≜T∩P,U≜T∖D,R≜TP∖U.D\triangleq T\cap P,\qquad U\triangleq T\setminus D,\qquad R\triangleq T_P\setminus U.

Unchanged logits and consistent tie-breaking imply U⊆TPU\subseteq T_P. Thus T=U∪DT=U\cup D and TP=U∪RT_P=U\cup R, with ∣R∣=∣D∣|R|=|D| since both supports have size KK.

Define the Top-KK softmax normalizers:

Z≜∑t∈Tezt,ZP≜∑t∈TPezt.Z\triangleq\sum_{t\in T}e^{z_t},\qquad Z_P\triangleq\sum_{t\in T_P}e^{z_t}.

For any u∈Uu\in U, we have

gu=ezuZ,g_u=\frac{e^{z_u}}{Z},
gu(P)=ezuZP=αgu,α≜ZZP.g_u^{(P)}=\frac{e^{z_u}}{Z_P}=\alpha g_u,\qquad\alpha\triangleq\frac{Z}{Z_P}.

The factor α\alpha is common to all u∈Uu\in U because softmax shares the denominator ZPZ_P; if UU is empty, the statements about its entries are vacuous.

Next, since TT consists of the top-KK logits, every r∈Rr\in R satisfies zr≤min⁡t∈Tztz_r\le\min_{t\in T}z_t, while every d∈Dd\in D satisfies zd≥min⁡t∈Tztz_d\ge\min_{t\in T}z_t. Because ∣R∣=∣D∣|R|=|D|, it follows that

∑r∈Rezr≤∑d∈Dezd⇒ZP=∑u∈Uezu+∑r∈Rezr≤∑u∈Uezu+∑d∈Dezd=Z.\sum_{r\in R}e^{z_r}\le\sum_{d\in D}e^{z_d} \quad\Rightarrow\quad Z_P=\sum_{u\in U}e^{z_u}+\sum_{r\in R}e^{z_r} \le\sum_{u\in U}e^{z_u}+\sum_{d\in D}e^{z_d}=Z.

Hence α=Z/ZP≥1\alpha=Z/Z_P\ge1.

Now compute the ℓ1\ell_1 difference by partitioning indices into DD, UU, RR and the remainder:

  • For d∈Dd\in D, gd>0g_d>0 but gd(P)=0g_d^{(P)}=0, so ∣gd(P)−gd∣=gd|g_d^{(P)}-g_d|=g_d.

  • For u∈Uu\in U, gu(P)=αgu≥gug_u^{(P)}=\alpha g_u\ge g_u, so ∣gu(P)−gu∣=(α−1)gu|g_u^{(P)}-g_u|=(\alpha-1)g_u.

  • For r∈Rr\in R, gr=0g_r=0 and gr(P)>0g_r^{(P)}>0, so ∣gr(P)−gr∣=gr(P)|g_r^{(P)}-g_r|=g_r^{(P)}.

  • All other indices have both weights 0 and contribute nothing.

Therefore,

∥g(P)−g∥1=∑d∈Dgd+∑u∈U(α−1)gu+∑r∈Rgr(P).\lVert g^{(P)}-g\rVert_1=\sum_{d\in D}g_d+\sum_{u\in U}(\alpha-1)g_u+\sum_{r\in R}g_r^{(P)}.

By definition, we have L≔∑d∈DgdL\coloneqq\sum_{d\in D}g_d. Because ∑jgj=1\sum_j g_j=1 and ∑jgj(P)=1\sum_j g_j^{(P)}=1, and gd(P)=0g_d^{(P)}=0 for d∈Dd\in D, we have

∑i∉D(gi(P)−gi)=(∑igi(P))−(∑d∈Dgd(P))−[(∑igi)−(∑d∈Dgd)]=(1−0)−(1−L)=L.\begin{aligned} \sum_{i\notin D}(g_i^{(P)}-g_i) &=\left(\sum_i g_i^{(P)}\right)-\left(\sum_{d\in D}g_d^{(P)}\right)\\ &\quad-\left[\left(\sum_i g_i\right)-\left(\sum_{d\in D}g_d\right)\right]\\ &=(1-0)-(1-L)=L. \end{aligned}

Moreover, for i∉Di\notin D we have gi(P)≥gig_i^{(P)}\ge g_i (since UU entries scale up and RR entries become positive), so

∑i∉D∣gi(P)−gi∣=∑i∉D(gi(P)−gi)=L.\sum_{i\notin D}\lvert g_i^{(P)}-g_i\rvert=\sum_{i\notin D}(g_i^{(P)}-g_i)=L.

Combining with ∑d∈D∣gd(P)−gd∣=∑d∈Dgd=L\sum_{d\in D}\lvert g_d^{(P)}-g_d\rvert=\sum_{d\in D}g_d=L yields

∥g(P)−g∥1=L+L=2L,\lVert g^{(P)}-g\rVert_1=L+L=2L,

which proves the claim.

Intuition. The pruned experts in DD lose exactly LL probability mass (their original total gate mass), and because the gating distribution must still sum to 1, the remaining indices must gain exactly LL mass in total. Since the gain occurs only on indices where g(P)≥gg^{(P)}\ge g (common scaling on retained Top-K plus newly activated replacements), the ℓ1\ell_1 distance equals (loss LL) + (gain LL) = 2L2L.

Lemma C.2 (Perturbation bound: bounded-norm variant). Under Assumption 1 in (26), for any pruned set PP, we have

Ex[∥δℓ(x,P)∥1]≤BℓEx[∥gℓ(P)(x)−gℓ(x)∥1]=2BℓEx[Eℓ(x,P)].(29)\mathbb{E}_x[\lVert\delta_\ell(x,P)\rVert_1]\le B_\ell\mathbb{E}_x[\lVert g_\ell^{(P)}(x)-g_\ell(x)\rVert_1] =2B_\ell\mathbb{E}_x[\mathcal{E}_\ell(x,P)]. \tag*{(29)}

Consequently,

Ex[∥δℓ(x,P)∥12]≤4Bℓ2Ex[Eℓ(x,P)2].(30)\mathbb{E}_x[\lVert\delta_\ell(x,P)\rVert_1^2]\le4B_\ell^2\mathbb{E}_x[\mathcal{E}_\ell(x,P)^2]. \tag*{(30)}

Proof. By definition,

δℓ(x,P)=∑j=1N(gℓ,j(P)(x)−gℓ,j(x))fℓ,j(x).\delta_\ell(x,P)=\sum_{j=1}^{N}(g_{\ell,j}^{(P)}(x)-g_{\ell,j}(x))f_{\ell,j}(x).

Apply triangle inequality we have:

∥δℓ(x,P)∥1≤∑j=1N∣gℓ,j(P)(x)−gℓ,j(x)∣∥fℓ,j(x)∥1\lVert\delta_\ell(x,P)\rVert_1\le\sum_{j=1}^{N}\lvert g_{\ell,j}^{(P)}(x)-g_{\ell,j}(x)\rvert\lVert f_{\ell,j}(x)\rVert_1

Assumption 1 gives the pointwise inequality

∥δℓ(x,P)∥1≤Bℓ∥gℓ(P)(x)−gℓ(x)∥1=2BℓEℓ(x,P).\lVert\delta_\ell(x,P)\rVert_1\le B_\ell\lVert g_\ell^{(P)}(x)-g_\ell(x)\rVert_1=2B_\ell\mathcal{E}_\ell(x,P).

Taking expectation over xx yields

Ex[∥δℓ(x,P)∥1]≤BℓEx[∥gℓ(P)(x)−gℓ(x)∥1].\mathbb{E}_x[\lVert\delta_\ell(x,P)\rVert_1]\le B_\ell\mathbb{E}_x[\lVert g_\ell^{(P)}(x)-g_\ell(x)\rVert_1].

The equality in (29) follows from Lemma C.1. Squaring the pointwise inequality before taking expectation yields (30).

Intuition. The MoE output is a convex combination of expert outputs. Pruning changes only the mixing weights. Thus, the output perturbation is controlled by (i) how much the gating distribution changes (∥g(P)−g∥\lVert g^{(P)}-g\rVert), and (ii) the scale of expert outputs. Lemma C.1 makes (i) exact in terms of the pruned gate mass LL.

Lemma C.3 (uniform random pruning). Fix m∈{1,…,N−1}m\in\{1,\ldots,N-1\}. Let PP be drawn uniformly at random from all subsets of size mm. Then for any fixed xx,

EP[Eℓ(x,P)2∣x]=c0(m,N)+c1(m,N)Qℓ(x),(31)\mathbb{E}_P[\mathcal{E}_\ell(x,P)^2\mid x]=c_0(m,N)+c_1(m,N)Q_\ell(x), \tag*{(31)}

where

c0(m,N)≔m(m−1)N(N−1),c_0(m,N)\coloneqq\frac{m(m-1)}{N(N-1)},
c1(m,N)≔m(N−m)N(N−1),(32)c_1(m,N)\coloneqq\frac{m(N-m)}{N(N-1)}, \tag*{(32)}
Qℓ(x)≔∑j=1Ngℓ,j(x)2.Q_\ell(x)\coloneqq\sum_{j=1}^{N}g_{\ell,j}(x)^2.

Proof. Let Ij=1{j∈P}I_j=1\{j\in P\} be the inclusion indicator. Then

Eℓ(x,P)=∑j=1NIjgℓ,j(x).\mathcal{E}_\ell(x,P)=\sum_{j=1}^{N}I_jg_{\ell,j}(x).

Therefore

Eℓ(x,P)2=∑jIjgj2+2∑j<kIjIkgjgk,\mathcal{E}_\ell(x,P)^2=\sum_j I_jg_j^2+2\sum_{j<k}I_jI_kg_jg_k,

where we suppress ℓ,x\ell,x in gg for readability. For uniform sampling without replacement, E[Ij]=m/N\mathbb{E}[I_j]=m/N and E[IjIk]=m(m−1)N(N−1)\mathbb{E}[I_jI_k]=\frac{m(m-1)}{N(N-1)} for j≠kj\ne k. Taking expectation over PP conditional on xx:

EP[Eℓ(x,P)2∣x]=mN∑jgj2+2⋅m(m−1)N(N−1)∑j<kgjgk.\mathbb{E}_P[\mathcal{E}_\ell(x,P)^2\mid x]=\frac{m}{N}\sum_jg_j^2+2\cdot\frac{m(m-1)}{N(N-1)}\sum_{j<k}g_jg_k.

Note that ∑j<kgjgk=12[(∑jgj)2−∑jgj2]=12(1−Q)\sum_{j<k} g_jg_k = \frac{1}{2}\left[\left(\sum_j g_j\right)^2-\sum_j g_j^2\right] = \frac{1}{2}(1-Q) since ∑jgj=1\sum_j g_j=1. Hence

EP[L2∣x]=mNQ+m(m−1)N(N−1)(1−Q)=m(m−1)N(N−1)+[mN−m(m−1)N(N−1)]Q.\begin{aligned} \mathbb{E}_P[L^2\mid x] = \frac{m}{N}Q+\frac{m(m-1)}{N(N-1)}(1-Q) \\ &= \frac{m(m-1)}{N(N-1)}+\left[\frac{m}{N}-\frac{m(m-1)}{N(N-1)}\right]Q. \end{aligned}

Simplifying the coefficient yields c1(m,N)=m(N−m)N(N−1)c_1(m,N)=\frac{m(N-m)}{N(N-1)}, proving (31).

Intuition. Randomly pruning mm experts is like sampling mm indices. The second moment of the removed probability mass depends on how concentrated gg is. Concentration is captured by collision mass Q=∥g∥22Q=\lVert g\rVert_2^2.

Lemma C.4 (Entropy–collision bound for Top-K sparse distributions). For any Top-K sparse distribution gℓ(x)g_\ell(x) (support size at most KK),

Qℓ(x)=∑jgℓ,j(x)2Q_\ell(x)=\sum_j g_{\ell,j}(x)^2
≤1K+2(log⁡K−H(gℓ(x))).(33)\leq\frac{1}{K}+2\left(\log K-H(g_\ell(x))\right). \tag*{(33)}

Proof. Let T=Tℓ(x)T=T_\ell(x) be the support (Top-K set) of g=gℓ(x)g=g_\ell(x). Let uu be the uniform distribution on TT, i.e., uj=1/Ku_j=1/K for j∈Tj\in T. Then

Q=∥g∥22=∥u∥22+∥g−u∥22=1K+∥g−u∥22,\begin{aligned} Q=\lVert g\rVert_2^2=\lVert u\rVert_2^2+\lVert g-u\rVert_2^2 \\ &=\frac{1}{K}+\lVert g-u\rVert_2^2, \end{aligned}

where the equality 1 holds because:

∥g−u∥22=∥g∥22+∥u∥22−2g⋅u=∥g∥22+1K−2K=∥g∥22−∥u∥22.\begin{aligned} \lVert g-u\rVert_2^2=\lVert g\rVert_2^2+\lVert u\rVert_2^2-2g\cdot u \\ &=\lVert g\rVert_2^2+\frac{1}{K}-\frac{2}{K} \\ &=\lVert g\rVert_2^2-\lVert u\rVert_2^2. \end{aligned}

Using ∥v∥2≤∥v∥1\lVert v\rVert_2\leq\lVert v\rVert_1 and Pinsker’s inequality ∥g−u∥1≤2KL⁡(g∥u)\lVert g-u\rVert_1\leq2\operatorname{KL}(g\Vert u), we have

∥g−u∥22≤∥g−u∥12≤2KL⁡(g∥u).\lVert g-u\rVert_2^2\leq\lVert g-u\rVert_1^2\leq2\operatorname{KL}(g\Vert u).

Finally, KL⁡(g∥u)=log⁡K−H(g)\operatorname{KL}(g\Vert u)=\log K-H(g) (by direct algebra, see (25)), which yields (33).

Intuition. Among distributions on KK points, the uniform distribution minimizes collision mass (Q=1/KQ=1/K). Deviations from uniformity increase QQ, and the entropy gap log⁡K−H(g)\log K-H(g) quantifies such deviation.

With these lemmas, we can now prove our main theorem.

Theorem C.5 (Expected perturbation upper bound under random pruning). Fix layer ℓ\ell with NN experts and Top-KK rerouting as defined in Section C.1.5. Let PP be uniformly random among subsets of size m≤N−Km\leq N-K, independently of xx. Under Assumption 1, we have:

Ex,P[∥δℓ(x,P)∥12]≤4Bℓ2(c0(m,N)+c1(m,N)Ex[Qℓ(x)])\mathbb{E}_{x,P}\left[\lVert\delta_\ell(x,P)\rVert_1^2\right] \leq4B_\ell^2\left(c_0(m,N)+c_1(m,N)\mathbb{E}_x[Q_\ell(x)]\right)
≤4Bℓ2(c0(m,N)+c1(m,N)[1K+2Sℓ]),(34)\leq4B_\ell^2\left(c_0(m,N)+c_1(m,N)\left[\frac{1}{K}+2S_\ell\right]\right), \tag*{(34)}

with c0,c1c_0,c_1 as in (32) and Hˉℓ=Ex[H(gℓ(x))]\bar{H}_\ell=\mathbb{E}_x[H(g_\ell(x))].

Proof. Combine Lemma C.2 with Lemma C.3 and Lemma C.4. Specifically, for any admissible pruned set PP, Lemma C.2 gives Ex[∥δℓ(x,P)∥12]≤4Bℓ2Ex[Eℓ(x,P)2]\mathbb{E}_x[\lVert\delta_\ell(x,P)\rVert_1^2]\leq4B_\ell^2\mathbb{E}_x[\mathcal{E}_\ell(x,P)^2]. Taking expectation over random PP conditional on xx and applying Lemma C.3 yields dependence on Qℓ(x)Q_\ell(x). Finally, Lemma C.4 upper bounds Qℓ(x)Q_\ell(x) by a function of log⁡K−H(gℓ(x))\log K-H(g_\ell(x)), and taking expectation over xx gives log⁡K−Hˉℓ\log K-\bar{H}_\ell.

Interpretation. For fixed (m,N,K)(m,N,K) and layer scale BℓB_\ell, the upper bound increases monotonically with

Sℓ=log⁡K−Hˉℓ.S_\ell=\log K-\bar{H}_\ell.

Thus, for fixed (m,N,K,Bℓ)(m,N,K,B_\ell), a larger entropy gap increases this upper bound, without establishing an ordering of actual perturbations across layers.

Corollary C.6 (Random-to-deterministic implication). For a fixed layer ℓ\ell and pruning budget mm, define the deterministic-mask error

Eℓ(P)=Ex∼D[∥δℓ(x,P)∥12],P∈Pℓ,m.\mathcal{E}_\ell(P)=\mathbb{E}_{x\sim\mathcal{D}}\left[\lVert\delta_\ell(x,P)\rVert_1^2\right],\qquad P\in\mathcal{P}_{\ell,m}.

Then

min⁡P∈Pℓ,mEℓ(P)≤EP∼Unif⁡(Pℓ,m)Eℓ(P)\min_{P\in\mathcal{P}_{\ell,m}}\mathcal{E}_\ell(P) \leq\mathbb{E}_{P\sim\operatorname{Unif}(\mathcal{P}_{\ell,m})}\mathcal{E}_\ell(P)
≤4Bℓ2(c0(m,N)+c1(m,N)[1K+2Sℓ]).(35)\leq4B_\ell^2\left(c_0(m,N)+c_1(m,N)\left[\frac{1}{K}+2S_\ell\right]\right). \tag*{(35)}

The minimum over the finite mask family cannot exceed its uniform average. This proves the existence of at least one deterministic mask satisfying the entropy-dependent bound, without identifying a particular selector’s output.

End-to-End Expert Pruning Error Bound via Discrete Gronwall

Model: Residual Network with MoE Blocks

Let h0∈Rdh_0 \in\mathbb{R}^d denote the input representation. We define a residual network of depth LL with residual scaling factor α>0\alpha> 0 according to the recursion:

hℓ+1=hℓ+αFℓ(hℓ),ℓ=0,1,…,L−1,(36)h_{\ell+1} = h_\ell+ \alpha F_\ell(h_\ell), \qquad\ell= 0,1,\ldots,L-1, \tag*{(36)}

where FℓF_\ell represents the layer transition map. We assume FℓF_\ell decomposes into an unpruned component AℓA_\ell (encapsulating operations such as attention and normalization) and a modifiable component yℓy_\ell (e.g., a Mixture-of-Experts branch). Under a pruning policy PℓP_\ell, the original and pruned transformations are defined respectively as:

Fℓ(h)=Aℓ(h)+yℓ(h),F^ℓ(h)=Aℓ(h)+y~ℓ,Pℓ(h).(37)\begin{aligned} F_\ell(h) &= A_\ell(h) + y_\ell(h),\\ \widehat{F}_\ell(h) &= A_\ell(h) + \widetilde{y}_{\ell,P_\ell}(h). \tag*{(37)} \end{aligned}

Consequently, for any input hh, the approximation error introduced by pruning is given by:

F^ℓ(h)−Fℓ(h)=y~ℓ,Pℓ(h)−yℓ(h):=δℓ(h,Pℓ).(38)\widehat{F}_\ell(h) - F_\ell(h) = \widetilde{y}_{\ell,P_\ell}(h) - y_\ell(h) := \delta_\ell(h,P_\ell). \tag*{(38)}

The dynamics of the pruned network are therefore governed by the recursion:

h^ℓ+1=h^ℓ+αF^ℓ(h^ℓ),ℓ=0,1,…,L−1,(39)\widehat{h}_{\ell+1} = \widehat{h}_\ell+ \alpha\widehat{F}_\ell(\widehat{h}_\ell), \qquad\ell= 0,1,\ldots,L-1, \tag*{(39)}

initialized with the same state h^0=h0\widehat{h}_0 = h_0.

Assumption A2 (Local Lipschitz continuity of pruned blocks). For each layer ℓ\ell, assume there is a deterministic constant λℓ≥0\lambda_\ell\ge0 such that the following inequality holds for every admissible pruning mask. The common domain D⊆Rd\mathcal{D} \subseteq\mathbb{R}^d contains both the original and pruned layer-input trajectories for all masks under consideration:

∥F^ℓ(u)−F^ℓ(v)∥1≤λℓ∥u−v∥1,∀u,v∈D.(40)\left\lVert\widehat{F}_\ell(u) - \widehat{F}_\ell(v) \right\rVert_1 \le\lambda_\ell\left\lVert u-v \right\rVert_1, \qquad\forall u,v \in\mathcal{D}. \tag*{(40)}

Remark C.7 (Interpretation and practical scope of Assumption A2). Assumption A2 imposes a local stability condition: within the relevant trajectory domain D\mathcal{D} (e.g., the set of layer inputs reachable under the target data distribution), the pruned block F^ℓ\widehat{F}_\ell does not amplify input perturbations by more than a factor λℓ\lambda_\ell in the ℓ1\ell_1-norm. In our subsequent error-propagation analysis, λℓ\lambda_\ell determines the propagation factor ∏k>ℓ(1+αλk)\prod_{k>\ell}(1+\alpha\lambda_k) (or its exponential upper bound), which quantifies the extent to which upstream perturbations introduced at layer ℓ\ell are magnified by subsequent layers.

Assumption A3 (Layer-wise independent random pruning). The sequence of pruning masks {Pℓ}ℓ=0L−1\{P_\ell\}_{\ell=0}^{L-1} forms a collection of mutually independent random variables. For each layer ℓ\ell, the mask PℓP_\ell is uniformly distributed over the set of all subsets of indices {1,…,Nℓ}\{1,\ldots,N_\ell\} having cardinality mℓm_\ell, i.e.,

Pℓ∼Unif⁡({P⊆{1,…,Nℓ}:∣P∣=mℓ}),ℓ=0,1,…,L−1.(41)P_\ell\sim\operatorname{Unif}\left(\left\{P \subseteq\{1,\ldots,N_\ell\}: |P|=m_\ell\right\}\right), \qquad\ell=0,1,\ldots,L-1. \tag*{(41)}

Furthermore, the entire sequence {Pℓ}ℓ=0L−1\{P_\ell\}_{\ell=0}^{L-1} is statistically independent of the input initialization h0h_0.

Remark C.8 (Role of Assumption A3 and deterministic pruning). Assumption A3 permits closed-form evaluation of the local second moments under uniform random pruning. The error-propagation recursion and discrete-Gronwall bound remain valid for every fixed pruning sequence. Under Assumption A2, their expected form also applies to an arbitrary mask distribution independent of the evaluation input, as in Eq. (13); independence between layer masks is not required for that general bound. For a deterministic selector, the explicit entropy form additionally requires Eq. (10), giving a local term Ψℓ(mℓ)+εA,ℓ\Psi_\ell(m_\ell)+\varepsilon_{A,\ell}. The uniform random pruning theorem below is the special case with local term Ψℓ(mℓ)\Psi_\ell(m_\ell).

Key Lemmas: One-step recursion and discrete Gronwall bound

Lemma C.9 (One-step error decomposition). Let Eℓ≜∥h^ℓ−hℓ∥1\mathcal{E}_\ell\triangleq\left\lVert\widehat{h}_\ell-h_\ell\right\rVert_1 denote the ℓ1\ell_1-norm error at layer ℓ\ell. Under the recursion definitions (36)–(39) and Assumption A2, the error satisfies the following recurrence relation for ℓ=0,…,L−1\ell=0,\ldots,L-1:

Eℓ+1≤(1+αλℓ)Eℓ+α∥δℓ(hℓ,Pℓ)∥1.(42)\mathcal{E}_{\ell+1} \le(1+\alpha\lambda_\ell)\mathcal{E}_\ell+ \alpha\left\lVert\delta_\ell(h_\ell,P_\ell)\right\rVert_1. \tag*{(42)}

Proof. Subtracting (36) from (39) and applying the triangle inequality yields:

Eℓ+1=∥(h^ℓ+αF^ℓ(h^ℓ))−(hℓ+αFℓ(hℓ))∥1≤∥h^ℓ−hℓ∥1+α∥F^ℓ(h^ℓ)−Fℓ(hℓ)∥1.(43)\begin{aligned} \mathcal{E}_{\ell+1} &= \left\lVert(\widehat{h}_\ell+\alpha\widehat{F}_\ell(\widehat{h}_\ell))-(h_\ell+\alpha F_\ell(h_\ell))\right\rVert_1\\ &\le\left\lVert\widehat{h}_\ell-h_\ell\right\rVert_1+\alpha\left\lVert\widehat{F}_\ell(\widehat{h}_\ell)-F_\ell(h_\ell)\right\rVert_1. \tag*{(43)} \end{aligned}

We decompose the functional difference by adding and subtracting F^ℓ(hℓ)\widehat{F}_\ell(h_\ell):

∥F^ℓ(h^ℓ)−Fℓ(hℓ)∥1≤∥F^ℓ(h^ℓ)−F^ℓ(hℓ)∥1+∥F^ℓ(hℓ)−Fℓ(hℓ)∥1≤λℓ∥h^ℓ−hℓ∥1+∥δℓ(hℓ,Pℓ)∥1.(44)\begin{aligned} \left\lVert\widehat{F}_\ell(\widehat{h}_\ell)-F_\ell(h_\ell)\right\rVert_1 &\le\left\lVert\widehat{F}_\ell(\widehat{h}_\ell)-\widehat{F}_\ell(h_\ell)\right\rVert_1\\ &\quad+\left\lVert\widehat{F}_\ell(h_\ell)-F_\ell(h_\ell)\right\rVert_1\\ &\le\lambda_\ell\left\lVert\widehat{h}_\ell-h_\ell\right\rVert_1\\ &\quad+\left\lVert\delta_\ell(h_\ell,P_\ell)\right\rVert_1. \tag*{(44)} \end{aligned}

where the second inequality follows from the Lipschitz property (Assumption A2) and the definition of the injection error {(xref)}(38). Substituting this back into the expression for Eℓ+1E_{\ell+1} concludes the proof.

Lemma C.10 (Global error bound via Discrete Gronwall). Suppose h^0=h0\hat{h}_0 = h_0 (i.e., E0=0E_0 = 0). Then, for any fixed sequence of pruning masks {Pℓ}\{P_\ell\}, the final layer error satisfies:

EL≤α∑ℓ=0L−1(∏k=ℓ+1L−1(1+αλk))⋅∥δℓ(hℓ,Pℓ)∥1.(45)E_L \le\alpha\sum_{\ell=0}^{L-1} \left(\prod_{k=\ell+1}^{L-1}(1+\alpha\lambda_k)\right)\cdot\lVert\delta_\ell(h_\ell,P_\ell)\rVert_1. \tag*{(45)}

Here, we adopt the convention that the empty product ∏k=LL−1(⋅)\prod_{k=L}^{L-1}(\cdot) equals 1.

Note that the product ∏k=ℓ+1L−1(1+αλk)\prod_{k=\ell+1}^{L-1}(1+\alpha\lambda_k) appears because the perturbation injected at layer ℓ\ell is subsequently amplified only by later layers.

Proof. We proceed by induction or simply unrolling the recurrence from Lemma C.9. For E0=0E_0 = 0, we have:

E1≤α∥δ0∥1,E_1 \le\alpha\lVert\delta_0\rVert_1,
E2≤(1+αλ1)E1+α∥δ1∥1≤α(1+αλ1)∥δ0∥1+α∥δ1∥1.(46)\begin{aligned} E_2 &\le(1+\alpha\lambda_1)E_1+\alpha\lVert\delta_1\rVert_1\\ &\le\alpha(1+\alpha\lambda_1)\lVert\delta_0\rVert_1+\alpha\lVert\delta_1\rVert_1. \tag*{(46)} \end{aligned}

Iterating this substitution LL times yields the summation in {(xref)}(45). The term ∥δℓ∥1\lVert\delta_\ell\rVert_1 is introduced at step ℓ\ell and is subsequently scaled by the expansion factors (1+αλk)(1+\alpha\lambda_k) for all future layers k>ℓk>\ell.

Lemma C.11 (Exponential upper bound). For any non-negative sequence {λk}\{\lambda_k\}, the product term admits the exponential upper bound:

∏k=ℓ+1L−1(1+αλk)≤exp⁡(α∑k=ℓ+1L−1λk).(47)\prod_{k=\ell+1}^{L-1}(1+\alpha\lambda_k)\le\exp\left(\alpha\sum_{k=\ell+1}^{L-1}\lambda_k\right). \tag*{(47)}

Proof. The result follows immediately from the elementary inequality 1+x≤ex1+x\le e^x for x≥0x\ge0. Taking the product over kk yields ∏(1+αλk)≤∏eαλk=eα∑λk\prod(1+\alpha\lambda_k)\le\prod e^{\alpha\lambda_k}=e^{\alpha\sum\lambda_k}.

Main Theorem: End-to-end Expected Perturbation Bound

Theorem C.12 (End-to-end perturbation upper bound under layer-wise random pruning). Suppose Assumptions A1–A3 hold. Let the network follow the recursion defined in {(xref)}(36)–(39). The expected ℓ1\ell_1-norm perturbation at the final layer satisfies:

E[∥h^L−hL∥1]≤α∑ℓ=0L−1wℓEx∼Dℓ,Pℓ[∥δℓ(x,Pℓ)∥12].(48)\mathbb{E}\left[\lVert\hat{h}_L-h_L\rVert_1\right]\le\alpha\sum_{\ell=0}^{L-1}w_\ell\sqrt{\mathbb{E}_{x\sim\mathcal{D}_\ell,P_\ell}\left[\lVert\delta_\ell(x,P_\ell)\rVert_1^2\right]}. \tag*{(48)}

where wℓw_\ell denotes the downstream propagation factor for layer ℓ\ell:

wℓ≜∏k=ℓ+1L−1(1+αλk).(49)w_\ell\triangleq\prod_{k=\ell+1}^{L-1}(1+\alpha\lambda_k). \tag*{(49)}

For compactness, define the entropy-dependent local term

Rℓ≜c0(mℓ,Nℓ)+c1(mℓ,Nℓ)[1K+2(log⁡K−Hˉℓ)].(50)R_\ell\triangleq c_0(m_\ell,N_\ell)+c_1(m_\ell,N_\ell)\left[\frac{1}{K}+2(\log K-\bar{H}_\ell)\right]. \tag*{(50)}

Substituting the single-layer bound {(xref)}(34) then yields

E[∥h^L−hL∥1]≤2α∑ℓ=0L−1wℓBℓRℓ.(51)\mathbb{E}\left[\lVert\hat{h}_L-h_L\rVert_1\right]\le2\alpha\sum_{\ell=0}^{L-1}w_\ell B_\ell\sqrt{R_\ell}. \tag*{(51)}

Finally, applying the exponential upper bound from Lemma C.11, we obtain:

E[∥h^L−hL∥1]≤2α∑ℓ=0L−1exp⁡(α∑k=ℓ+1L−1λk)⋅BℓRℓ.(52)\mathbb{E}\left[\lVert\hat{h}_L-h_L\rVert_1\right]\le2\alpha\sum_{\ell=0}^{L-1}\exp\left(\alpha\sum_{k=\ell+1}^{L-1}\lambda_k\right)\cdot B_\ell\sqrt{R_\ell}. \tag*{(52)}

Proof. We commence with the unrolled discrete Gronwall bound established in Lemma C.10 (Eq. (45)):

∥h^L−hL∥1≤α∑ℓ=0L−1wℓ∥δℓ(hℓ,Pℓ)∥1.(53)\lVert\hat{h}_L-h_L\rVert_1\le\alpha\sum_{\ell=0}^{L-1}w_\ell\lVert\delta_\ell(h_\ell,P_\ell)\rVert_1. \tag*{(53)}

Taking the expectation with respect to the initialization h0∼D0h_0\sim\mathcal{D}_0 and the sequence of independent pruning masks {Pℓ}\{P_\ell\}, we have:

E[∥h^L−hL∥1]≤α∑ℓ=0L−1wℓE[∥δℓ(hℓ,Pℓ)∥1].(54)\mathbb{E}\left[\lVert\hat{h}_L-h_L\rVert_1\right]\le\alpha\sum_{\ell=0}^{L-1}w_\ell\mathbb{E}\left[\lVert\delta_\ell(h_\ell,P_\ell)\rVert_1\right]. \tag*{(54)}

Since f(z)=z2f(z)=z^2 is convex, Jensen’s inequality implies E[X]≤E[X2]\mathbb{E}[X]\le\sqrt{\mathbb{E}[X^2]} for any non-negative random variable XX. Applying this to the error term:

E[∥δℓ(hℓ,Pℓ)∥1]≤E[∥δℓ(hℓ,Pℓ)∥12].(55)\mathbb{E}\left[\lVert\delta_\ell(h_\ell,P_\ell)\rVert_1\right]\le\sqrt{\mathbb{E}\left[\lVert\delta_\ell(h_\ell,P_\ell)\rVert_1^2\right]}. \tag*{(55)}

By definition, the distribution of the layer input hℓh_\ell is denoted by Dℓ\mathcal{D}_\ell. Under Assumption A3, the mask PℓP_\ell is independent of hℓh_\ell and uniformly distributed. We can therefore rewrite the expectation over the joint distribution:

E[∥δℓ(hℓ,Pℓ)∥12]=Ex∼Dℓ, Pℓ[∥δℓ(x,Pℓ)∥12].(56)\mathbb{E}\left[\left\|\delta_\ell(h_\ell,P_\ell)\right\|_1^2\right]=\mathbb{E}_{x\sim\mathcal{D}_\ell,\ P_\ell}\left[\left\|\delta_\ell(x,P_\ell)\right\|_1^2\right]. \tag*{(56)}

Substituting (55) into (54) yields the generic bound (48).

To derive the explicit forms, we substitute the single-layer result (34) for the squared error term into (48), which directly yields (51). The final exponential form (52) follows by applying the inequality ∏(1+x)≤exp⁡(∑x)\prod(1+x)\le\exp(\sum x) to the propagation weights wℓw_\ell.

Corollaries and Design Implications

Corollary C.13 (Stability under Depth-scaled Initialization). Consider a scaling regime where α=1L\alpha=\frac{1}{L}. The error bound (52) simplifies to:

E[∥h^L−hL∥1]≤2L∑ℓ=0L−1exp⁡(1L∑k=ℓ+1L−1λk)⋅BℓRℓ.(57)\mathbb{E}\left[\left\|\hat{h}_L-h_L\right\|_1\right]\le\frac{2}{L}\sum_{\ell=0}^{L-1}\exp\left(\frac{1}{L}\sum_{k=\ell+1}^{L-1}\lambda_k\right)\cdot B_\ell\sqrt{R_\ell}. \tag*{(57)}

If the Lipschitz constants satisfy λk≤λmax⁡\lambda_k\le\lambda_{\max}, the propagation factor obeys exp⁡(∑k=ℓ+1L−1λkL)≤eλmax⁡\exp\left(\sum_{k=\ell+1}^{L-1}\frac{\lambda_k}{L}\right)\le e^{\lambda_{\max}}. Under the stated depth scaling, this factor is bounded independently of LL.

Remark C.14 (Scope of the allocation surrogate). For large NℓN_\ell at low removal ratios mℓ/Nℓ≪1m_\ell/N_\ell\ll1, c0c_0 is second order in the removal ratio and c1≈mℓ/Nℓc_1\approx m_\ell/N_\ell. This approximation does not apply to the main 50% pruning setting, where both coefficients approach 1/41/4 as NℓN_\ell grows. Moreover, the coefficients depend on the removal budget and cannot be discarded when optimizing the bound. SPARE uses routing concentration only as a layer-ranking heuristic:

proxy⁡ℓ∝Sℓ(58)\operatorname{proxy}_\ell\propto S_\ell \tag*{(58)}

The allocation rule does not minimize the summed perturbation bound and omits the layer-dependent output scale BℓB_\ell.

Communication cost analysis

2 nodes →\rightarrow 1 node: cross-node EP traffic savings. In EP, each MoE layer incurs two all-to-all exchanges (dispatch + combine), whose activation payload is 2Nkdb2Nkdb bytes per layer, where NN is the number of routed tokens per step (prefill: N=B×TN=B\times T, decode: N=BN=B), dd is hidden width, kk is top-kk routing, and bb is bytes/element. When the EP group spans S=2S=2 nodes and expert ownership is balanced, the expected cross-node fraction is pcross≈1−12=12p_{\mathrm{cross}}\approx1-\frac{1}{2}=\frac{1}{2}. Therefore, the cross-node all-to-all volume per step across LmoeL_{\mathrm{moe}} MoE layers is

Vcross(S=2)≈(2Nkdb)Lmoe⋅12=NkdbLmoe.(59)V_{\mathrm{cross}}(S=2)\approx(2Nkdb)L_{\mathrm{moe}}\cdot\frac{1}{2} =NkdbL_{\mathrm{moe}}. \tag*{(59)}

Plugging DeepSeek-R1-like settings (k=8k=8, d=7168d=7168, b=2b=2 bytes, Lmoe=58L_{\mathrm{moe}}=58),

Vcross(S=2)≈6,651,904 N bytes≈6.65 MB⋅N≈6.34 MiB⋅N per step.(60)\begin{aligned} V_{\mathrm{cross}}(S=2)&\approx6{,}651{,}904\,N\ \text{bytes}\\ &\approx6.65\ \text{MB}\cdot N\\ &\approx6.34\ \text{MiB}\cdot N\ \text{per step}. \tag*{(60)} \end{aligned}

If pruning enables consolidating EP from S=2S=2 to S=1S=1, then pcross=0p_{\mathrm{cross}}=0 and the cross-node traffic vanishes. Hence the saved cross-node communication is simply

ΔVcross(2→1)≈Vcross(S=2)≈6.34 MiB⋅N per step.(61)\Delta V_{\mathrm{cross}}(2\rightarrow1)\approx V_{\mathrm{cross}}(S=2) \approx6.34\ \text{MiB}\cdot N\ \text{per step}. \tag*{(61)}

For example, in decode with batch BB, N=BN=B so the saving is ≈6.34\approx6.34 MiB ×B\times B per step.

References

  1. [1]Anonymous. 2026. AdaWhiten: Adaptive Factor Selection for Low-Rank MoE Compression. Under review.
  2. [2]Luisa Bentivogli, Peter Clark, Ido Dagan, and Danilo Giampiccolo. 2009. The fifth pascal recognizing textual entailment challenge. TAC, 7(8):1.
  3. [3]Tianyu Chen, Shaohan Huang, Yuan Xie, Binxing Jiao, Daxin Jiang, Haoyi Zhou, Jianxin Li, and Furu Wei. 2022. Task-specific expert pruning for sparse mixture-of-experts. arXiv preprint arXiv:2206.00277.arxiv.org/abs/2206.00277
  4. [4]Mohammed Nowaz Rabbani Chowdhury, Meng Wang, Kaoutar El Maghraoui, Naigang Wang, Pin-Yu Chen, and Christopher Carothers. 2024. A provably effective method for pruning experts in fine-tuned sparse mixture-of-experts. In Proceedings of the 41st International Conference on Machine Learning, pages 8815–8847.arxiv.org/abs/2405.16646
  5. [5]Christopher Clark, Kenton Lee, Ming-Wei Chang, Tom Kwiatkowski, Michael Collins, and Kristina Toutanova. 2019. BoolQ: Exploring the surprising difficulty of natural yes/no questions. arXiv preprint arXiv:1905.10044.arxiv.org/abs/1905.10044
  6. [6]Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try the, ai2 reasoning challenge. arXiv preprint arXiv:1803.05457.arxiv.org/abs/1803.05457
  7. [7]Damai Dai, Chengqi Deng, Chenggang Zhao, RX Xu, Huazuo Gao, Deli Chen, Jiashi Li, Wangding Zeng, Xingkai Yu, Yu Wu, et al. 2024. Deepseek-moe: Towards ultimate expert specialization in mixture-of-experts language models. arXiv preprint arXiv:2401.06066.arxiv.org/abs/2401.06066
  8. [8]Zican Dong, Han Peng, Peiyu Liu, Wayne Xin Zhao, Dong Wu, Feng Xiao, and Zhifeng Wang. 2025. Domain-specific pruning of large mixture-of-experts models with few-shot demonstrations. arXiv preprint arXiv:2504.06792.arxiv.org/abs/2504.06792
  9. [9]William Fedus, Barret Zoph, and Noam Shazeer. 2022. Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity. Preprint, arXiv:2101.03961.arxiv.org/abs/2101.03961
  10. [10]Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2020. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300.
  11. [11]Weizhong Huang, Yuxin Zhang, Xiawu Zheng, Fei Chao, Rongrong Ji, and Liujuan Cao. 2025. Discovering important experts for mixture-of-experts models pruning through a theoretical perspective. In The Thirty-ninth Annual Conference on Neural Information Processing Systems.DOI
  12. [12]Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, and Ion Stoica. 2025. Live-codebench: Holistic and contamination free evaluation of large language models for code. In International Conference on Learning Representations.DOI
  13. [13]Ajay Jaiswal, Jianyu Wang, Yixiao Li, Pingzhi Li, Tianlong Chen, Zhangyang Wang, Chong Wang, Ruoming Pang, and Xianzhi Du. 2025. Finding fantastic experts in moes: A unified study for expert dropping strategies and observations. arXiv preprint arXiv:2504.05586.arxiv.org/abs/2504.05586
  14. [14]Yeskendir Koishekenov, Alexandre Berard, and Vassilina Nikoulina. 2023. Memory-efficient nllb-200: Language-specific expert pruning of a massively multilingual machine translation model. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3567–3585.arxiv.org/abs/2212.09811
  15. [15]Mike Lasby, Ivan Lazarevich, Nish Sinnadurai, Sean Lie, Yani Ioannou, and Vithursan Thangarasa. 2025. Reap the experts: Why pruning prevails for one-shot moe compression. arXiv preprint arXiv:2510.13999.arxiv.org/abs/2510.13999
  16. [16]Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan Firat, Yanning Huang, Maxim Krikun, Noam Shazeer, and Zhifeng Chen. 2020. Gshard: Scaling giant models with conditional computation and automatic sharding. arXiv preprint arXiv:2006.16668.arxiv.org/abs/2006.16668
  17. [17]Lin Li, Yan Wang, and Zhuopeng Wang. 2026. C-GNN-PRUNE: A unified graph-based framework for structure-aware pruning of mixture-of-experts models. Proceedings of the AAAI Conference on Artificial Intelligence, 40(27):22976–22984.DOI
  18. [18]Wei Li, Lujun Li, Hao Gu, You-Liang Huang, Mark G Lee, Shengjie Sun, Wei Xue, and Yike Guo. 2025. Moe-svd: Structured mixture-of-experts llms compression via singular value decomposition. In Forty-second International Conference on Machine Learning.
  19. [19]Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2024. Let’s verify step by step. In International Conference on Learning Representations.arxiv.org/abs/2305.20050

Paper details

vlnc:W_p3nyx7hs
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Computer Science

Not recorded for this paper · View statement →

Looking for related papers…
Contents