ExpertNavigator: Functionally Coherent Expert Grouping and Pairwise-Ranked Routing for High-Fidelity Dense-to-MoE Conversion

Xiaohan Qin, Cancheng Zhang, Xiaoxing Wang, Xiangdong Zhang, Yebin Yang, Ning Liao, Junchi YanNeurIPS 2026

TL;DR

Dense Large Language Models (LLMs) are secretly lazy: for any given word, only a tiny fraction of their feed-forward neurons actually do the heavy lifting. ExpertNavigator takes advantage of this by surgically slicing standard dense models into fast, sparse Mixture-of-Experts (MoE) architectures—retaining up to 97.8% of the original model's intelligence while firing only 60% of its feed-forward parameters.

What Problem Does This Paper Address?

Every time you prompt a traditional "dense" LLM, every parameter wakes up to process every token, creating massive memory and compute bottlenecks. Yet researchers have noticed implicit sparsity: most neurons in the Feed-Forward Network (FFN)—which eats up the bulk of the compute—contribute almost nothing to a specific token.

Instead of permanently deleting parameters (pruning), Dense-to-MoE conversion slices existing FFN layers into small "expert" modules and adds a lightweight router to dynamically switch on only the top-$k$ experts needed per token.

Figure 1: Comparison between MoE and Dense-to-MoE conversion. The latter slices FFN weights from a dense LLM into experts and adds a lightweight router for hard top-k inference.

However, retrofitting a dense model into an MoE usually causes a painful drop in quality due to two flaws:

  1. Awkward Expert Grouping: Modern LLMs use SwiGLU-style FFNs, where a neuron's output depends on three interacting weight matrices ($W_g, W_{\text{up}}, W_{\text{down}}$). Prior methods group neurons by looking only at the gating branch ($W_g$), accidentally forcing unrelated neurons to fire together.
  2. Unstable Router Training: Unlike native MoEs that use smooth, continuous weights, converted MoEs use strict binary (on/off) switches at inference. Previous methods try to train routers to predict the exact magnitude of expert outputs—a noisy, shifting target across hundreds of tiny experts that destabilizes training.

Methods

ExpertNavigator overhauls the conversion pipeline across four targeted stages:

Figure 2: Overview of the proposed ExpertNavigator pipeline, consisting of four stages: expert grouping, router training, layer-wise sparsity allocation, and STE-based adaptation.
  • Functionally Coherent Grouping: Instead of looking solely at gating weights, the authors measure a neuron's full output norm across all three SwiGLU matrices. They build a graph where edge weights represent how strongly two neurons co-contribute across tokens, then partition this graph into equal-sized experts (16 neurons each) that naturally cooperate.
  • Pairwise-Ranked Routing: Because hard top-$k$ routing is just a discrete selection problem, the router doesn't need to guess exact activation magnitudes—it just needs to know who beats whom. Using a RankNet-style pairwise ranking loss, the router simply learns the relative ordering of experts.
  • Adaptive Layer-wise Sparsity: Not all layers specialize equally. Using the Coefficient of Variation (CV) of expert scores, the system measures how "peaked" or "flat" expert contributions are per layer, allocating more active experts to diffuse layers and fewer to specialized ones under a fixed global budget.
  • STE Joint Adaptation: Freezing the experts and only training the router leaves a lingering mismatch. To let the model and router adapt together despite non-differentiable hard switches, the authors run a brief full-parameter fine-tuning pass using a Straight-Through Estimator (STE)—keeping strict binary masks in the forward pass while sneaking smooth softmax gradients through the backward pass.

Datasets

No new benchmarks were introduced.

  • Conversion & Adaptation: All clustering, router training (~0.5B tokens), and STE adaptation (~0.5B tokens) draw from the open-source Ultra-FineWeb pretraining corpus—tiny compared to the >10T tokens used to pretrain modern base models.
  • Evaluation: Tested across nine standard benchmarks covering factual knowledge, math, and commonsense reasoning: MMLU, NQ-Open, SciQ, PIQA, MathQA, ARC-Challenge/Easy, HellaSwag, and WinoGrande.

Key Insights and Ideas

  • The "Middle Layers Work Harder" Phenomenon: When the adaptive sparsity algorithm distributed compute across Qwen-2.5-7B and LLaMA-3.1-8B, an identical hourglass pattern emerged naturally: shallow layers (near embeddings) and deep layers (near the output head) needed fewer active experts, while middle layers demanded higher budgets. Intermediate layers do the heavy semantic composition, requiring broader neuron cooperation.
Figure 3: Relative layer-wise activation budgets allocated by our adaptive sparsity scheme for Qwen- 2.5-7B and LLaMA-3.1-8B.
  • Order Beats Scale: Switching router supervision from regressing exact output norms to pairwise ranking consistently boosted downstream accuracy. Ignoring global scale shifts makes router learning dramatically better conditioned.
  • Every Piece Pulls Its Weight: Even before applying full-model STE adaptation, combining functional grouping, pairwise routing, and adaptive sparsity already beat every existing Dense-to-MoE baseline.

Key Results

Tested on Qwen-2.5-7B, LLaMA-3.1-8B, and Qwen-2.5-14B, ExpertNavigator consistently outperformed prior conversion baselines (MoEfication, D2DMoE, CMoE, LTE):

  • Near-Lossless Quality: At a 60% FFN activation budget, ExpertNavigator retained 97.8% of dense Qwen-2.5-7B's average score (actually beating the dense model slightly on PIQA and ARC-C), 92.2% on LLaMA-3.1-8B, and 96.4% on Qwen-2.5-14B.
  • High Sparsity Resilience: Under an aggressive 30% activation budget on Qwen-2.5-7B, it retained 88.9% of dense performance (compared to 74.5% for the runner-up, D2DMoE).
  • Real-World Speedup: Activating 60% of FFN parameters cut inference FLOPs by ~30% and delivered an end-to-end wall-clock generation speedup of over 15%.

Limitations and Future Work

  • The Granularity Trade-off: Grouping 16 neurons per expert preserves dense behavior remarkably well, but tiny experts fragment memory access and limit hardware efficiency. Coarser experts speed up hardware execution but degrade model quality; finding the sweet spot remains open.
  • Hardware Bottlenecks: A 30% drop in theoretical FLOPs currently yields a ~15% real-world speedup. Closing that gap will require custom GPU kernels and system-level optimizations tailored to fine-grained, dynamic routing.

Summary updated

Abstract

Dense large language models (LLMs) exhibit implicit sparsity at inference time: for a given token, only a small subset of FFN neurons contributes dominantly. This observation motivates *Dense-to-MoE conversion*, which partitions FFN neurons into experts and employs a lightweight router to sparsely activate experts for efficiency. However, existing conversion methods often incur non-trivial quality degradation under a fixed activation budget, largely due to suboptimal expert construction and unstable router learning in fine-grained settings. Motivated by this, we present **ExpertNavigator**, which improves Dense-to-MoE conversion with a more functionally coherent expert grouping method and a more stable and effective pairwise-ranked router training strategy, leading to markedly better quality under the same activation budget. Moreover, we further introduce an adaptive layer-wise sparsity allocation strategy to better utilize a global activation budget, and apply STE-based joint training to enhance model-router compatibility under hard routing. Experiments across various benchmarks show that ExpertNavigator consistently outperforms prior Dense-to-MoE approaches under different sparsity budgets, retaining up to **97.8%** of the dense model's average score while activating only 60% of FFN parameters, substantially narrowing the gap to dense models and delivering practical efficiency gains. The project page is available at https://github.com/jianke0604/ExpertNavigator.
BibTeX
@inproceedings{qin2026expertnavigator,
  author = {Xiaohan Qin and Cancheng Zhang and Xiaoxing Wang and Xiangdong Zhang and Yebin Yang and Ning Liao and Junchi Yan},
  title = {{ExpertNavigator: Functionally Coherent Expert Grouping and Pairwise-Ranked Routing for High-Fidelity Dense-to-MoE Conversion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=o3Q8xJvP0x},
}
Figure