[Paper Review] Merge, Then Compress: Demystify Efficient SMoE with Hints from Its Routing Policy
This paper proposes MC-SMoE, a novel framework that first merges sparse Mixture-of-Experts (SMoE) via routing policy-guided expert consolidation, then compresses the merged experts using low-rank and structural sparsity. By leveraging activation frequencies and routing similarity, M-SMoE reduces redundancy and memory use, enabling up to 80% memory reduction and 20% FLOPs savings with negligible performance drop across 8 benchmarks.
Sparsely activated Mixture-of-Experts (SMoE) has shown promise to scale up the learning capacity of neural networks, however, they have issues like (a) High Memory Usage, due to duplication of the network layers into multiple copies as experts; and (b) Redundancy in Experts, as common learning-based routing policies suffer from representational collapse. Therefore, vanilla SMoE models are memory inefficient and non-scalable, especially for resource-constrained downstream scenarios. In this paper, we ask: Can we craft a compact SMoE model by consolidating expert information? What is the best recipe to merge multiple experts into fewer but more knowledgeable experts? Our pilot investigation reveals that conventional model merging methods fail to be effective in such expert merging for SMoE. The potential reasons are: (1) redundant information overshadows critical experts; (2) appropriate neuron permutation for each expert is missing to bring all of them in alignment. To address this, we propose M-SMoE, which leverages routing statistics to guide expert merging. Specifically, it starts with neuron permutation alignment for experts; then, dominant experts and their "group members" are formed; lastly, every expert group is merged into a single expert by utilizing each expert's activation frequency as their weight for merging, thus diminishing the impact of insignificant experts. Moreover, we observed that our proposed merging promotes a low dimensionality in the merged expert's weight space, naturally paving the way for additional compression. Hence, our final method, MC-SMoE (i.e., Merge, then Compress SMoE), further decomposes the merged experts into low-rank and structural sparse alternatives. Extensive experiments across 8 benchmarks validate the effectiveness of MC-SMoE. For instance, our MC-SMoE achieves up to 80% memory and a 20% FLOPs reduction, with virtually no loss in performance.
Motivation & Objective
- To address high memory usage and expert redundancy in sparse Mixture-of-Experts (SMoE) models, especially in resource-constrained deployment scenarios.
- To investigate whether expert information can be effectively consolidated into fewer, more knowledgeable experts without performance degradation.
- To develop a merging strategy that outperforms conventional model merging techniques in SMoE settings.
- To explore whether merged experts are inherently more compressible, enabling further efficiency gains.
Proposed method
- M-SMoE uses routing statistics to guide expert merging: first aligning neurons across experts via permutation to ensure feature correspondence.
- It forms expert groups by identifying dominant experts and their 'group members' based on routing policy similarity.
- Experts within each group are merged using activation frequency as a weighted average, reducing the impact of less significant experts.
- The merged experts are found to lie in a lower-dimensional weight space, enabling further compression.
- MC-SMoE applies low-rank and structural sparsity to the merged experts, achieving additional parameter and FLOPs reduction.
- The method is evaluated end-to-end on 8 NLP benchmarks using switch-base-32 SMoE models.
Experimental results
Research questions
- RQ1Can expert information in SMoE be effectively consolidated into fewer, more knowledgeable experts without performance loss?
- RQ2Why do conventional model merging methods fail in SMoE settings, and what are the key failure modes?
- RQ3How can routing policies be leveraged to guide expert merging and identify redundant vs. dominant experts?
- RQ4Does merging experts naturally lead to a lower-dimensional weight space that enables further compression?
- RQ5What is the relative contribution of merging versus compression in achieving memory and FLOPs efficiency?
Key findings
- MC-SMoE achieves up to 80% memory reduction and 20% FLOPs reduction on the switch-base-32 SMoE model with minimal performance drop across 8 benchmarks.
- M-SMoE outperforms C-SMoE (compression-only) on all tasks, demonstrating that merging is more effective than compression alone for maintaining performance.
- Frequency-weighted merging consistently outperforms uniform and Fisher-weighted merging, with a 1.5–2% accuracy gain on average across tasks.
- The merged experts from M-SMoE exhibit lower intrinsic dimensionality, enabling effective downstream compression via low-rank and structural sparsity.
- Later SMoE layers show higher compressibility, as indicated by the distribution of remaining parameters in the heatmap visualization.
- The ablation study confirms that frequency-aware merging suppresses redundant experts, preventing critical knowledge from being overshadowed.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.