Router Upcycling: Leveraging Mixture-of-Routers in Mixture-of-Experts Upcycling

Junfeng Ran, Guangxiang Zhao, Yuhan Wu, Dawei Zhu, Longyun Wu, Yikai Zhao, Tong Yang, Lin Sun, Xiangzheng Zhang, Sujian LiarXiv 2025 · DOI

Abstract

Mixture-of-Experts (MoE) models have emerged as a dominant architecture for scaling neural networks efficiently, allowing for high parameter counts with constant computational costs. A common practice for developing these models is "upcycling," where a pre-trained dense model is transformed into an MoE by duplicating its layers. However, the initialization of the routing mechanism—the gatekeeper that assigns tokens to experts—remains a critical bottleneck. Traditional methods rely on randomly initialized linear layers, which often lead to representation collapse and poor expert specialization. This paper introduces Router Upcycling, a novel approach that repurposes pre-existing attention heads from the dense model to act as sophisticated routers. By treating routing as an attention mechanism, we achieve a ~2% performance boost across standard benchmarks and significantly improve expert divergence with minimal computational overhead.

Introduction

The efficiency of Mixture-of-Experts (MoE) models stems from their ability to activate only a sparse subset of parameters (experts) for any given input. While training MoE models from scratch is resource-intensive, "upcycling" provides a shortcut by leveraging the weights of established dense models. Despite the success of this approach, the transition from a dense to a sparse architecture introduces a new component: the router.

In standard upcycling, the router is typically a simple linear layer initialized from scratch. This creates a functional mismatch; while the experts (Feed-Forward Networks) possess rich, pre-trained knowledge, the router begins in a state of ignorance. This often results in "representation collapse," where the router fails to distinguish between tokens effectively, sending diverse inputs to the same experts. Consequently, the experts fail to specialize, and the model's potential for increased capacity is wasted. Router Upcycling addresses this by ensuring the router is as "intelligent" as the experts it manages from the very first step of training.

Methodology

Router Upcycling transforms the routing process by framing it as an attention mechanism, utilizing the structural similarities between how attention heads select context and how routers select experts.

1. Router Initialization from Attention Heads

Instead of random weights, the method extracts the Query ($W_Q$) and Key ($W_K$) transformation matrices from the attention layers of the original dense model. In this setup, each input token is transformed into a "query" using these upcycled weights. Each expert is assigned a "key" derived from the average keys in the preceding attention layer. This allows the router to inherit a pre-trained understanding of token relationships and contextual importance.

2. Mixture-of-Routers (MoR)

To increase the expressivity of the routing decision, the authors propose a Mixture-of-Routers architecture. Rather than relying on a single routing head, the model employs multiple routers (matching the number of experts). This multi-perspective approach allows the model to evaluate a token based on different features—such as syntax, semantics, or local context—before finalizing the expert assignment.

3. Dimension Boosting

Individual attention heads in smaller models often have limited dimensionality (e.g., $d=64$). To prevent routing capacity from becoming a bottleneck, the authors implement a dimension boosting strategy. Using a greedy search algorithm, they identify and concatenate pairs of heads with high cosine similarity. This doubles the router's dimensionality to 128, providing the necessary expressivity to handle complex routing decisions without significantly increasing the parameter count.

Experimental Setup

The researchers evaluated Router Upcycling using a Qwen 8x0.5B model (totaling 2.1B parameters). The model was trained on 100 billion tokens from a large-scale multilingual corpus. Performance was measured across a diverse suite of LLM benchmarks:

  • Understanding: OpenbookQA (OBQA).
  • Reasoning: ARC-C, ARC-E, Hellaswag, Winogrande.
  • Knowledge: BoolQ, COPA, TriviaQA, Natural Questions (NQ).

Key Insights and Results

Enhanced Performance and Reasoning

Router Upcycling achieved an average score of 45.83% across all benchmarks, notably outperforming Vanilla Upcycling (43.78%) and other specialized methods like LocMoE. The gains were particularly significant in reasoning-heavy tasks; for instance, on the ARC-E benchmark, Router Upcycling scored 58.02%, a substantial improvement over the 52.73% achieved by the vanilla baseline.

Expert Specialization

Analysis of the model's internal dynamics confirmed that Router Upcycling successfully mitigates representation collapse. Diversity metrics showed a much more specialized distribution of tokens across experts compared to the "flat" distribution seen in vanilla models. Furthermore, the cosine similarity between expert outputs was lower in the upcycled model, proving that the experts were indeed learning distinct functional roles.

Computational Efficiency

The method is remarkably efficient. The additional parameters required for these sophisticated routers amount to roughly 1 million parameters per layer. In the context of a 2.1 billion parameter model, this overhead is negligible, providing what the authors describe as a "free lunch" of improved performance through better initialization.

Discussion and Limitations

While Router Upcycling represents a significant step forward, the study identified a "16-expert ceiling." When scaling the model from 8 to 16 experts, performance gains plateaued or slightly declined. The authors hypothesize that the fixed dimensionality of the repurposed attention heads may limit the "routing capacity" when the number of experts becomes too high.

Additionally, the current implementation ties routers to the specific heads of the preceding layer. Future research could explore "cross-model upcycling," where routers are initialized from more diverse pools of heads or even different architectures entirely. Despite these constraints, Router Upcycling demonstrates that the path to better MoE models lies not just in the experts themselves, but in leveraging the latent intelligence already present in the dense models from which they evolve.

Summary updated

BibTeX
@misc{ran2025router,
  author = {Junfeng Ran and Guangxiang Zhao and Yuhan Wu and Dawei Zhu and Longyun Wu and Yikai Zhao and Tong Yang and Lin Sun and Xiangzheng Zhang and Sujian Li},
  title = {{Router Upcycling: Leveraging Mixture-of-Routers in Mixture-of-Experts Upcycling}},
  year = {2025},
  eprint = {2509.00679},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.00679},
}
Figure