MxMoE: Mixed-precision Quantization for MoE with Accuracy and Performance Co-Design

Haojie Duanmu, Xiuhong Li, Zhihang Yuan, Size Zheng, Jiangfei Duan +2 more
5/9/2025
cs.LGcs.AI

Official code: cat538/MxMoE (32 stars, last commit 2025-07-04).

Abstract

Mixture-of-Experts (MoE) models face deployment challenges due to their large parameter counts and computational demands. We explore quantization for MoE models and highlight two key insights: 1) linear blocks exhibit varying quantization sensitivity, and 2) divergent expert activation frequencies create heterogeneous computational characteristics. Based on these observations, we introduce MxMoE, a mixed-precision optimization framework for MoE models that considers both algorithmic and system perspectives. MxMoE navigates the design space defined by parameter sensitivity, expert activation dynamics, and hardware resources to derive efficient mixed-precision configurations. Additionally, MxMoE automatically generates optimized mixed-precision GroupGEMM kernels, enabling parallel execution of GEMMs with different precisions. Evaluations show that MxMoE outperforms existing methods, achieving 2.4 lower Wikitext-2 perplexity than GPTQ at 2.25-bit and delivering up to 3.4x speedup over full precision, as well as up to 29.4% speedup over uniform quantization at equivalent accuracy with 5-bit weight-activation quantization. Our code is available at https://github.com/cat538/MxMoE.

View on arXivView PDF

Code Implementations(1)

cat538/MxMoEOfficial100%

[ICML 2025] MxMoE: Mixed-precision Quantization for MoE with Accuracy and Performance Co-Design

3211C++, CudaMay 25, 20251 years ago

Similar Papers

Cite this paper

@article{duanmu2025mxmoe,
  title  = {MxMoE: Mixed-precision Quantization for MoE with Accuracy and Performance Co-Design},
  author = {Haojie Duanmu and Xiuhong Li and Zhihang Yuan and Size Zheng and Jiangfei Duan and Xingcheng Zhang and Dahua Lin},
  year   = {2025},
  eprint = {2505.05799},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.05799v1},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.05799.svg)](https://codeofpaper.com/paper/2505.05799)

Discussion