Mixture-of-Experts models often trigger frequent expert switching between consecutive tokens, causing costly weight swaps between storage and fast memory. This work introduces StickyMoE, a differentiable routing consistency loss that penalizes abrupt switches, encouraging the router to maintain assignments across semantically coherent spans. Unlike post-hoc fine-tuning, this method integrates directly into pretraining without architectural changes.
- StickyMoE adds a single hyperparameter lambda to penalize abrupt expert switches during training.
- Encourages router consistency across adjacent tokens to reduce memory bandwidth pressure.
- No architectural modifications required; integrates directly into the pretraining loop.
- Addresses the root cause of weight swapping rather than relying on caching heuristics.
- Enables more memory-efficient inference on edge devices by stabilizing expert activation.