Manuscript Offprint

arXiv:2610.19232

Spectral-MoE: Heterogeneous Per-Layer Expert Utilization in Dense-to-MoE Conversion

Zachary Broveak, Christian Kubicka, Thierry Tambe

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

Code

1 Introduction

The scaling of large language models (LLMs) has produced remarkable capabilities in natural language understanding and generation (Brown et al., 2020). Realizing these capabilities, however, requires substantial computation and memory bandwidth, with the latter becoming increasingly problematic for performance (Gholami et al., 2024). Optimizing the transformer (Vaswani et al., 2023), the engine powering nearly all LLMs, has therefore become an extensive area of research. In this domain there exist two primary axes along which compression research is performed: quantization (Frantar et al., 2023; Nagel et al., 2020; Xiao et al., 2024; Lin et al., 2026), and pruning (Frantar & Alistarh, 2023; Sun et al., 2024; Han et al., 2015). A third technique, orthogonal to both quantization and pruning, called dense-to-MoE conversion has also begun to emerge (Zhang et al., 2022).

Figure

Figure 1: Benchmark accuracy versus utilization. Dynamic, heterogeneous allocation (learned) extends the frontier of dense-to-MoE performance.

A dense FFN evaluates every neuron for every token. Dense-to-MoE conversion groups these neurons into experts and routes each token to a subset, retaining pretrained weights while reducing active computation. The fraction of experts active for a given token is the “utilization” and the assignment of neurons to expert groups is the neuron-to-expert “partition”. Existing methods differ in how they construct the partition and the token-to-expert router (Zhang et al., 2022; Qu et al., 2024; Pei et al., 2026; Bamba et al., 2026; Szatkowski et al., 2024), but all either use a uniform per-layer allocation or a floating utilization budget. However, research on layer-dependent sensitivity to compression in quantization and pruning work (Dong et al., 2019b;a; Yin et al., 2025) motivates investigating heterogeneous per-layer allocation as a potential optimization axis in dense-to-MoE conversion.

To this end, we present Spectral-MoE, which learns per-layer allocation under a fixed utilization budget via an allocator agnostic to the base dense-to-MoE conversion method. Our contributions are as follows:

  1. Heterogeneous per-layer allocation. We introduce the first formulation of learnable per-layer allocation under a fixed per-token budget for dense-to-MoE conversion. This adds a third optimization axis to dense-to-MoE conversion alongside expert partitioning and routing.

  2. Static and dynamic allocator tiers. We develop a static allocator that learns one scalar per layer shared across tokens and a dynamic allocator that learns a per-token schedule. Both of these techniques are able to adhere to a user defined utilization budget.

  3. Consistent performance gains. We evaluate both static and dynamic allocators on the two leading approaches to dense-to-MoE conversion: analytic methods that convert the model quickly using heuristics (Pei et al., 2026), and learning methods that optimize the model through slower gradient-based training (Bamba et al., 2026). Using our approach, we achieve SOTA mean accuracy at 25% utilization and outperform uniform across budgets (Figure 1).

References (59)