Beyond Magnitude: Contrastive Routing for Modular Mixture-of-Experts

Nikolaos Xiros, Dimitrios Damianos, Maria-Eleni Zoumpoulidi, Leon Voukoutis, Vassilis Katsouros +1 more
9/1/2026
cs.CL

No official code found. Best implementation: athena-ilsp/CoRM (0 stars, Apache-2.0, last commit 2026-08-24).

Abstract

In current Mixture-of-Experts architectures, routing is performed based on representations dominated by structure shared across all tokens, limiting expert specialization. We show that contrasting each token against an Exponential Moving Average of the layer's hidden states, rather than routing on absolute magnitude, concentrates the routing signal onto a low-dimensional, highly separable subspace. Building on this, we propose the Contrastive Routing Mechanism (CoRM), which scores each expert by the gap between its affinity for the incoming token and its affinity for this shared reference state, interpreted through a distinct per-expert projection. The resulting experts have routing boundaries that align with linguistic structure significantly more than the Top-k baseline. Our experiments show that CoRM improves average zero-shot accuracy by +0.67 to +1.69 points (Top-1) and +1.38 to +1.77 points (Top-2) over standard Top-k MoE baselines on nine zero-shot reasoning benchmarks, at the minimal cost of 2.9% added parameters and 2.6% added FLOPs per token.

View on arXivView PDF

Code Implementations(1)

athena-ilsp/CoRMCommunity68%
Apache-2.0

Official code for CoRM (from "Beyond Magnitude: Contrastive Routing for Modular Mixture-of-Experts"), a MoE router that scores experts by a contrastive attention gap against a dynamic EMA reference state, rather than raw activation magnitude.

00Aug 24, 20261 months agoApache-2.0

Similar Papers

Cite this paper

@article{xiros2026beyond,
  title  = {Beyond Magnitude: Contrastive Routing for Modular Mixture-of-Experts},
  author = {Nikolaos Xiros and Dimitrios Damianos and Maria-Eleni Zoumpoulidi and Leon Voukoutis and Vassilis Katsouros and Georgios Paraskevopoulos},
  year   = {2026},
  eprint = {2609.01100},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.01100v1}
}

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/2609.01100.svg)](https://codeofpaper.com/paper/2609.01100)

Discussion