ExpertWeaver: Unlocking the Inherent MoE in Dense LLMs with GLU Activation Patterns

Ziyu Zhao, Tong Zhu, Zhi Zhang, Tiantian Fan, Kun Kuang, Zhongyu Wei, Fei Wu, Yu Cheng · DOI

Abstract

Mixture-of-Experts (MoE) effectively scales model capacity while preserving computational efficiency through sparse expert activation. However, training high-quality MoEs from scratch is prohibitively expensive. A promising alternative is to convert pretrained dense models into sparse MoEs. Existing dense-to-MoE methods fall into two categories: dynamic structural pruning that converts dense models into MoE architectures with moderate sparsity to balance performance and inference efficiency, and downcycling approaches that use pretrained dense models to initialize highly sparse MoE architectures. However, existing methods break the intrinsic activation patterns within dense models, leading to suboptimal expert construction. In this work, we argue that the Gated Linear Unit (GLU) mechanism provides a natural blueprint for dense-to-MoE conversion. We show that the fine-grained neural-wise activation patterns of GLU reveal a coarse-grained structure, uncovering an inherent MoE architecture composed of consistently activated universal neurons and dynamically activated specialized neurons. Leveraging this discovery, we introduce ExpertWeaver, a training-free framework that partitions neurons according to their activation patterns and constructs shared experts and specialized routed experts with layer-adaptive configurations. Our experiments demonstrate that ExpertWeaver significantly outperforms existing methods, both as a training-free dynamic structural pruning technique and as a downcycling strategy for superior MoE initialization.

Introduction

Mixture-of-Experts (MoE) models have emerged as the gold standard for scaling Large Language Models (LLMs). By activating only a fraction of parameters for any given token, MoEs allow for massive capacity without a proportional increase in inference costs. Despite these benefits, training a high-quality MoE from scratch remains computationally prohibitive for most researchers.

To mitigate this, researchers have explored "dense-to-MoE" conversion—transforming pre-trained dense models into sparse architectures. Current strategies typically involve Dynamic Structural Pruning (converting to ~25% sparsity) or Downcycling (initializing >75% sparse MoEs for further training). However, these methods often treat neurons as interchangeable blocks, splitting weights arbitrarily and breaking the intrinsic activation patterns learned during pre-training. This results in "expert interference," requiring significant retraining to restore the model's internal logic.

Methodology: The ExpertWeaver Framework

ExpertWeaver addresses these limitations by treating the Gated Linear Unit (GLU)—a ubiquitous component in modern architectures like Llama and Qwen—as a natural blueprint for MoE conversion. The framework operates in four distinct stages:

  1. Activation Profiling: The model processes a diverse calibration set (e.g., Flan-v2) to record how individual neurons in GLU layers respond to various tasks.
  2. Identifying Neuron Roles: Using the Coefficient of Variation (CV) of these activations, ExpertWeaver distinguishes between Universal Neurons (low CV, firing consistently across tasks) and Specialized Neurons (high CV, firing only in specific contexts like math or coding).
  3. Layer-Adaptive Construction: Rather than a uniform split, ExpertWeaver employs a "U-shaped" allocation. Shallow and deep layers receive more "shared experts" (universal neurons), while middle layers—which exhibit higher specialization—are assigned more "routed experts."
  4. Training-Free Routing: Routers are initialized by averaging the original GLU gating weights of neurons within each expert cluster, ensuring the router inherits the model's pre-trained gating logic.
The ExpertWeaver framework: (a) GLU mechanism, (b) recording activation patterns, (c) layer-wise configuration based on CV, and (d) expert/gate construction.

Key Insights and Ideas

GLU as an Inherent MoE

A central discovery of this work is that dense models are not behaviorally dense. The GLU mechanism acts as a fine-grained, neuron-level router. ExpertWeaver simply aggregates these micro-behaviors into macro-level experts, preserving the model's functional logic.

The Universal Core and Layer Heterogeneity

The identification of a "universal core" of neurons vital across all tasks justifies the use of shared experts, a design choice that significantly outperforms architectures where every token is routed exclusively to specialized experts. Furthermore, the degree of specialization varies significantly by depth. Boundary layers act as generalists, while middle layers are highly specialized.

Box plot of Coefficient of Variation (CV) across layers, demonstrating the high specialization in middle layers compared to the more universal behavior in shallow and deep layers.

Experimental Results

Superior Pruning and Downcycling

In zero-shot settings at 25% sparsity, ExpertWeaver outperformed established methods like Wanda and CMoE. On Llama3-8B, it achieved a 60.4% average score, a 5.6% relative improvement over previous state-of-the-art techniques. In downcycling experiments using Qwen2.5-7B, ExpertWeaver retained 87.6% of the original dense model's performance after only 200B tokens of continued pre-training (CPT) on FineWeb-Edu.

Real-world Efficiency

Beyond benchmark scores, ExpertWeaver-converted models show tangible hardware benefits. On NVIDIA H100 GPUs, a converted Qwen2.5-7B demonstrated significantly higher throughput (Requests Per Second) and lower latency compared to its dense counterpart, proving the framework's practical utility for deployment.

Conclusion

ExpertWeaver demonstrates that the inherent activation patterns in dense LLMs provide a robust foundation for sparse MoE conversion. While a performance gap remains between converted sparse models and their dense parents, ExpertWeaver significantly narrows this margin without requiring expensive training from scratch. Future work will focus on further reducing the data requirements for downcycling and exploring how these activation patterns evolve as models scale to hundreds of billions of parameters.

Summary updated

Abstract

Mixture-of-Experts (MoE) effectively scales model capacity while preserving computational efficiency through sparse expert activation. However, training high-quality MoEs from scratch is prohibitively expensive. A promising alternative is to convert pretrained dense models into sparse MoEs. Existing dense-to-MoE methods fall into two categories: \textbf{dynamic structural pruning} that converts dense models into MoE architectures with moderate sparsity to balance performance and inference efficiency, and \textbf{downcycling} approaches that use pretrained dense models to initialize highly sparse MoE architectures. However, existing methods break the intrinsic activation patterns within dense models, leading to suboptimal expert construction. In this work, we argue that the Gated Linear Unit (GLU) mechanism provides a natural blueprint for dense-to-MoE conversion. We show that the fine-grained neural-wise activation patterns of GLU reveal a coarse-grained structure, uncovering an inherent MoE architecture composed of consistently activated universal neurons and dynamically activated specialized neurons. Leveraging this discovery, we introduce ExpertWeaver, a training-free framework that partitions neurons according to their activation patterns and constructs shared experts and specialized routed experts with layer-adaptive configurations. Our experiments demonstrate that ExpertWeaver significantly outperforms existing methods, both as a training-free dynamic structural pruning technique and as a downcycling strategy for superior MoE initialization.
BibTeX
@inproceedings{zhao2026expertweaver,
  author = {Ziyu Zhao and Tong Zhu and Zhi Zhang and Tiantian Fan and Kun Kuang and Kun Kuang and Zhongyu Wei and Fei Wu and Yu Cheng},
  title = {{ExpertWeaver: Unlocking the Inherent MoE in Dense LLMs with GLU Activation Patterns}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=cRs6HUUUay},
}
Figure