Not All Experts are Equal: Efficient Expert Pruning and Skipping for Mixture-of-Experts Large Language Models

Xudong Lu, Qi Liu, Yuhui Xu, Aojun Zhou, Siyuan Huang, Bo Zhang, Junchi Yan, Hongsheng Li

arXiv:2402.14800 · 2026-07-27 공개 · arXiv · PDF

mixture-of-experts post-training inference-speed model-deployment llm-efficiency expert-pruning task-specific expert-skipping

Abstract

A pivotal advancement in the progress of large language models (LLMs) is the emergence of the Mixture-of-Experts (MoE) LLMs. Compared to traditional LLMs, MoE LLMs can achieve higher performance with fewer parameters, but it is still hard to deploy them due to their immense parameter sizes. Different from previous weight pruning methods that rely on specifically designed hardware, this paper mainly aims to enhance the deployment efficiency of MoE LLMs by introducing plug-and-play expert-level sparsification techniques. Specifically, we propose, for the first time to our best knowledge, post-training approaches for task-agnostic and task-specific expert pruning and skipping of MoE LLMs, tailored to improve deployment efficiency while maintaining model performance across a wide range of tasks. Extensive experiments show that our proposed methods can simultaneously reduce model sizes and increase the inference speed, while maintaining satisfactory performance. Data and code will be available at https://github.com/Lucky-Lance/Expert_Sparsity.

한국어 요약

한 줄 요약

Mixtral 8x7B 모델 기반으로 전후 훈련 없이 전문가 수를 줄이고 건너뛸 수 있는 기술로 메모리 사용량 50% 감소 및 1.2× 추론 가속화를 달성.

핵심 기여도

핵심 아이디어

기존 MoE LLMs는 추론 시 일부 전문가만 활성화하지만, 전체 파라미터 크기 자체는 여전히 매우 큼. 이에 따라, **expert-level sparsity**를 도입하여 **전후 훈련 없이** 불필요한 전문가를 제거하거나 건너뛸 수 있도록 함.

**Token reconstruction loss**를 기반으로 전문가 조합을 선택하여, **layer-by-layer 방식**으로 최적의 전문가 집합을 선정. 이는 **모델 성능 유지**와 **메모리 사용량 감소**를 동시에 달성.

또한, **dynamic expert skipping** 기법은 추론 시 특정 전문가를 건너뛰는 방식으로, **실시간으로 전문가 수를 조절**하여 **추론 속도 향상**. 이는 **expert pruning**과 병용 가능하며, **4개 전문가 제거 + dynamic skipping** 시 성능 저하를 최소화하면서도 가속화 가능.

기술적 접근법

주요 결과

의의 및 한계

이 연구는 **expert-level sparsity**를 기반으로 MoE LLMs의 **배포 효율성**을 향상시키는 **최초의 연구**로, **expert pruning**과 **dynamic skipping**을 결합한 새로운 접근법을 제시. 기존 **weight-level pruning**과 달리 **하드웨어 독립적**이며, **plug-and-play** 방식으로 적용 가능.

하지만, **task-specific 모델**에서는 성능 저하가 상대적으로 크며, **추가 fine-tuning**이 필요. 또한, **모델 구조에 따라 전문가 제거가 제한적일 수 있음**. 향후 연구에서는 **가중치 정량화**나 **가중치 pruning**과의 결합 가능성도 제시.

실용적 활용