Spectral-MoE: Heterogeneous Per-Layer Expert Utilization in Dense-to-MoE Conversion
cs.LG
Submitted: 2026-10-13
Updated: 2026-10-13
Comments: 17 pages, 5 figures. Project repository: https://github.com/ZacharyBroveak/Spectral-MoE
Code: https://github.com/ZacharyBroveak/Spectral-MoE
License: http://creativecommons.org/licenses/by/4.0/
The gist: Large language models impose substantial memory demands and arithmetic costs during inference.
Abstract
Large language models impose substantial memory demands and arithmetic costs during inference. Dense-to-mixture-of-experts (MoE) conversion is a model optimization technique that aims to reduce these arithmetic costs. Dense-to-MoE conversion partitions pretrained feed-forward network (FFN) neurons into experts and selects a subset for each token. Leading methods fall into two categories: analytic methods produce a converted model quickly using heuristics, while learning methods produce a model much more slowly by optimizing via gradients. Both approaches, however, fix the same active expert count, or "utilization," at every layer. We introduce Spectral-MoE, which learns to allocate a utilization budget heterogeneously across layers. Its name draws a metaphor between separating a dense FFN into experts and separating a light beam into its spectrum. Spectral-MoE consists of two distinct approaches: a static approach that uses a single per-layer scalar which is shared across tokens, and a dynamic approach which emits a per-token schedule. We demonstrate that both allocators improve performance over uniform on both the analytic-based and learning-based SOTA dense-to-MoE methods. At 25% FFN utilization, dynamic allocation reduces WikiText-2 perplexity relative to uniform by 1.04, 2.96, and 2.71 points on the learned base for Llama-2-7B, Llama-3-8B, and Qwen2.5-7B, respectively. The corresponding reductions on the analytic base are 2.45, 6.26, and 2.17 points. On the learned base, dynamic allocation improves six-task mean accuracy over uniform by an average of 1.5, 4.2, and 3.6 percentage points across the three models at FFN utilizations of 12.5%, 25%, and 50%, respectively. These results establish per-layer expert utilization as a novel optimization axis in dense-to-MoE conversion.
Sources
- Language Models are Few-Shot Learners
- BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions
- Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
- HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networks
- SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot
- The Llama 3 Herd of Models
- Learning both Weights and Connections for Efficient Neural Networks
- LoRA: Low-Rank Adaptation of Large Language Models
- Harder Tasks Need More Experts: Dynamic Routing in MoE Models
- AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration
- Alloc-MoE: Budget-Aware Expert Activation Allocation for Efficient Mixture-of-Experts Inference
- Decoupled Weight Decay Regularization
- Pointer Sentinel Mixture Models
- 2 OLMo 2 Furious
- PyTorch: An Imperative Style, High-Performance Deep Learning Library
- Analytical FFN-to-MoE Restructuring via Activation Pattern Analysis
- LLaMA-MoE v2: Exploring Sparsity of LLaMA from Perspective of Mixture-of-Experts with Post-Training
- Qwen2.5 Technical Report
- A Simple and Effective Pruning Approach for Large Language Models
- Exploiting Activation Sparsity with Dense to Dynamic-k Mixture-of-Experts Conversion
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks