English

Analytical FFN-to-MoE Restructuring via Activation Pattern Analysis

Machine Learning 2026-04-24 v3 Artificial Intelligence

Abstract

Scaling large language models (LLMs) improves performance but significantly increases inference costs, with feed-forward networks (FFNs) consuming the majority of computational resources. While Mixture-of-Experts (MoE) architectures can reduce this cost through sparse activation, restructuring existing dense models into MoEs typically requires extensive retraining on hundreds of billions of tokens. We propose an analytical post-training framework that rapidly restructures FFNs into sparse MoE architectures using only a small calibration dataset. The method analyzes neuron activation patterns to partition neurons into always-active shared experts and conditionally activated routed experts, then constructs a router analytically from representative neuron statistics, enabling immediate deployment or optional lightweight fine-tuning. This approach applies both to dense models and recursively to existing MoE models for hierarchical sparsity. Experiments demonstrate up to 1.17×1.17\times speedup in compute-bound scenarios with only minutes of processing and 2k-sample fine-tuning, outperforming methods requiring orders of magnitude more resources.

Keywords

Cite

@article{arxiv.2502.04416,
  title  = {Analytical FFN-to-MoE Restructuring via Activation Pattern Analysis},
  author = {Zehua Pei and Hui-Ling Zhen and Lancheng Zou and Xianzhi Yu and Wulong Liu and Sinno Jialin Pan and Mingxuan Yuan and Bei Yu},
  journal= {arXiv preprint arXiv:2502.04416},
  year   = {2026}
}

Comments

Accepted by ACL 2026 Main

R2 v1 2026-06-28T21:35:21.722Z