Optimizing MoE Routers: Design, Implementation, and Evaluation in Transformer Models

Daniel Fidel Harvey, George Weale, Berk Yilmaz
6/19/2025
cs.LGcs.AI

No confident code implementation found for this paper. 6 possible matches can be shown below.

Abstract

Mixture of Experts (MoE) architectures increase large language model scalability, yet their performance depends on the router module that moves tokens to specialized experts. Bad routing can load imbalance and reduced accuracy. This project designed and implemented different router architectures within Transformer models to fix these limitations. We experimented with six distinct router variants Linear, Attention, Multi-Layer Perceptron (MLP), Hybrid, Hash, and our new MLP-Hadamard. We characterized these routers using BERT and the Qwen1.5-MoE model, looking at parameter efficiency, inference latency, routing entropy, and expert utilization patterns. Our evaluations showed distinct trade-offs: Linear routers offer speed, while MLP and Attention routers provide greater expressiveness. The MLP-Hadamard router shows a unique capability for structured, sparse routing. We successfully replaced and fine-tuned custom routers within the complex, quantized Qwen1.5-MoE model. This work provides a comparative analysis of MoE router designs and offers insights into optimizing their performance for efficient and effective large-scale model deployment.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 6 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{harvey2025optimizing,
  title  = {Optimizing MoE Routers: Design, Implementation, and Evaluation in Transformer Models},
  author = {Daniel Fidel Harvey and George Weale and Berk Yilmaz},
  year   = {2025},
  eprint = {2506.16419},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.16419v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.16419.svg)](https://codeofpaper.com/paper/2506.16419)

Discussion