Skip to main content
QUICK REVIEW

[Paper Review] Towards Efficient Mixture of Experts: A Holistic Study of Compression Techniques

Shwai He, D.S. Dong|arXiv (Cornell University)|Jun 4, 2024
Data Stream Mining TechniquesComputer Science3 citations
TL;DR

This paper proposes a unified framework for compressing Mixture-of-Experts (MoE) models through two complementary strategies: Expert Slimming (compressing individual experts via quantization and pruning) and Expert Trimming (removing entire experts or modules). The authors introduce aggressive pruning techniques—Layer Drop and Block Drop—that remove entire MoE or attention blocks, achieving a 6.05× speedup and only 20.0GB memory usage on Mixtral-8×7B while preserving over 92% of the original performance.

ABSTRACT

Scaling large language models has driven remarkable advancements across various domains, yet the continual increase in model size presents significant challenges for real-world deployment. The Mixture of Experts (MoE) architecture offers a promising solution by dynamically selecting and activating only a subset of experts during inference, thus substantially reducing computational costs while preserving high performance. Despite these benefits, MoE introduces new inefficiencies, such as excessive parameters and communication overhead. In this work, we present a holistic study of compression techniques for Mixture of Experts to enhance both efficiency and scalability. While recent efforts have focused on Expert Trimming, which reduces the number of experts, these approaches still suffer from considerable communication and computational costs. To address this, we propose more aggressive strategies, such as Layer Drop, which removes entire MoE layers, and Block Drop, which eliminates transformer blocks. Surprisingly, these aggressive pruning techniques not only preserve model performance but also substantially improve computation and memory efficiency. Furthermore, beyond Expert Trimming, we also introduce Expert Slimming, which compresses individual experts to further boost performance and can be seamlessly integrated with Expert Trimming. Extensive experimental results demonstrate the effectiveness of our proposed methods-Layer Drop and Block Drop-along with the comprehensive recipe that integrates Expert Slimming and Expert Trimming, achieving a 6.05x speedup with 77.1% reduced memory usage while maintaining over 92% of performance on Mixtral-8x7B. Our code is released at https://github.com/CASE-Lab-UMD/Unified-MoE-Compression.

Motivation & Objective

  • Address the under-explored challenge of compressing Mixture-of-Experts (MoE) models to improve efficiency for real-world deployment.
  • Systematically analyze redundancy and communication overhead in MoE architectures, particularly parameter duplication and inter-expert communication costs.
  • Develop a unified compression framework that integrates both expert-level compression (Slimming) and structural module removal (Trimming) for holistic optimization.
  • Identify and explore new design spaces in MoE compression, especially coarse-grained pruning strategies like Layer Drop and Block Drop.
  • Provide a practical, end-to-end compression recipe combining Slimming and Trimming for practitioners to deploy efficient MoE models.

Proposed method

  • Propose a unified framework that integrates two compression perspectives: Expert Slimming (compressing individual experts) and Expert Trimming (removing structured modules).
  • Apply Expert Slimming using quantization (specifically AWQ) and pruning to reduce model size and inference cost at the expert level.
  • Introduce Layer Drop, which removes all experts in an MoE layer, and Block Drop, which removes both attention and MoE layers in a transformer block.
  • Use similarity-based metrics (e.g., feature and parameter similarity) to validate the feasibility of coarse-grained pruning like Layer Drop and Block Drop.
  • Combine Expert Slimming and Expert Trimming in a sequential pipeline: first apply quantization, then apply aggressive pruning (Layer/Block Drop) to further reduce FLOPs and memory.
  • Leverage hardware-friendly quantization (AWQ) to maintain performance while drastically reducing memory usage, especially effective in MoE settings.

Experimental results

Research questions

  • RQ1How can existing compression techniques be systematically unified and adapted for Mixture-of-Experts (MoE) models, which exhibit unique redundancy and communication patterns?
  • RQ2To what extent can coarse-grained pruning strategies like Layer Drop and Block Drop outperform fine-grained expert removal (Expert Drop) in balancing performance and efficiency?
  • RQ3What is the optimal combination of Expert Slimming and Expert Trimming techniques for maximizing inference speed and minimizing memory usage in MoE models?
  • RQ4How do model-specific characteristics (e.g., expert redundancy, feature similarity) influence the choice and effectiveness of compression strategies?
  • RQ5Can training-free compression methods be effectively combined with post-compression fine-tuning to further improve performance without retraining from scratch?

Key findings

  • Layer Drop and Block Drop, as aggressive pruning strategies, outperform fine-grained Expert Drop by significantly reducing both FLOPs and memory usage while maintaining high performance.
  • The combination of AWQ quantization and Block Drop achieves a 6.05× speedup and only 20.0GB memory usage on Mixtral-8×7B, preserving over 92% of the original performance across multiple benchmarks.
  • Expert Trimming via Block Drop reduces FLOPs from 54.4T to 46.0T on Mixtral-8×7B, while maintaining a high average score of 68.0 on the MMLU benchmark.
  • On DeepSeek-MoE-16B, the combined method achieves a 3.67× speedup with only 8.4GB memory usage, demonstrating strong generalization across different MoE architectures.
  • The framework reveals that MoE models like DeepSeek-MoE have higher expert redundancy and lower feature similarity than Mixtral, suggesting task- and model-specific compression strategies.
  • Post-compression fine-tuning is feasible and beneficial, as the framework enables efficient, trainable compressed MoE models without full retraining.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.