Lune

ACL2025Top-tier venue

Masks Can be Learned as an Alternative to Experts

Peiyu Liu, Tianwen Wei, Bo Zhu, Xin Zhao, Shuicheng Yan

Abstract

In this work, we investigate how to sparsify a pre-trained dense large language model into a mixture-of-experts (MoE) architecture for faster inference. Our approach applies mask matrix to the activations for each expert, constrained by L 0 regularization to minimize the number of activated parameters. To ensure minimal performance loss under this constraint, we initialize the model with all parameters active and progressively sparsify it during training. This approach proves more efficient than one-shot sparsification techniques, which typically require significant resources for performance recovery. Moreover, our approach automatically identifies shared, token-specific, and inactive experts, allowing for more efficient allocation of computational resources. Through extensive experiments, we achieve up to 97% performance retention on downstream tasks with only 50% of the feed-forward parameters activated in dense models. Beyond improving inference efficiency, this strategy of sharing computational units among experts provides a principled foundation for building more scalable and generalizable MoE architectures, paving the way for future expert-based model designs. Our code is available at https:// github.com/lpyhdzx/Mixture-of-Masks .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Domain-Specific Pruning of Large Mixture-of-Experts Models with Few-shot Demonstrations cites DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models
  • Domain-Specific Pruning of Large Mixture-of-Experts Models with Few-shot Demonstrations cites Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning
  • Measuring Massive Multitask Language Understanding cites PIQA: Reasoning about Physical Commonsense in Natural Language
  • LinkAlign: Scalable Schema Linking for Real-World Large-Scale Multi-Database Text-to-SQL cites Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning
  • DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models cites PIQA: Reasoning about Physical Commonsense in Natural Language
  • DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models cites Measuring Massive Multitask Language Understanding
  • DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models cites GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding
  • Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning cites PIQA: Reasoning about Physical Commonsense in Natural Language
  • Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning cites Measuring Massive Multitask Language Understanding
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Domain-Specific Pruning of Large Mixture-of-Experts Models with Few-shot DemonstrationsZican Dong, Han Peng, Peiyu Liu, Xin Zhao et al.NeurIPS 2025 · 24 citations
  2. LinkAlign: Scalable Schema Linking for Real-World Large-Scale Multi-Database Text-to-SQLYihan Wang, Peiyu Liu, Xin YangEMNLP 2025 · 2 citations
  3. Adaptive Diffusion Freezing: Privacy-preserving Diffusion Models Against Membership Inference AttacksJialu Guo, Xiao Han, Junjie WuCCS 2026

Builds on7

  1. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
  2. PIQA: Reasoning about Physical Commonsense in Natural LanguageYonatan Bisk, Rowan Zellers, Ronan Le Bras, Jianfeng Gao et al.AAAI 2020 · 2,916 citations
  3. GShard: Scaling Giant Models with Conditional Computation and Automatic ShardingDmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen et al.ICLR 2021 · 1,954 citations
  4. Sheared LLaMA: Accelerating Language Model Pre-training via Structured PruningMengzhou Xia, Tianyu Gao, Zhiyuan Zeng, Danqi ChenICLR 2024 · 453 citations
  5. DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language ModelsDamai Dai, Chengqi Deng, Chenggang Zhao, R. X. Xu et al.ACL 2024 · 171 citations

Related papers

  1. Analytical FFN-to-MoE Restructuring via Activation Pattern AnalysisZehua Pei, Hui-Ling Zhen, Lancheng Zou, Xianzhi Yu et al.ACL 2026 · 6 citations
  2. Efficiently Editing Mixture-of-Experts Models with Compressed ExpertsYifei He, Yang Liu, Chen Liang, Hany Hassan AwadallaEMNLP Findings 2025
  3. XMoE: Sparse Models with Fine-grained and Adaptive Expert SelectionYuanhang Yang, Shiyi Qi, Wenchao Gu, Chaozheng Wang et al.ACL Findings 2024 · 10 citations
  4. DSMoE: Matrix-Partitioned Experts with Dynamic Routing for Computation-Efficient Dense LLMsMinxuan Lv, Zhenpeng Su, Leiyu Pan, Yizhe Xiong et al.EMNLP 2025
  5. ModularMoE: Fast LLM Customization with Parameter-Sharing Mixture-of-Experts for Low-Resource SettingsJiaxing Liu, Qi Qi, Haifeng Sun, Dunjun Li et al.ACL Findings 2026
Dusk over the sea between two cliffs drawn in fine vertical lines