Standard Mixture-of-Experts (MoE) architectures on mobile hardware and edge devices behave like a fickle restaurant customer: constantly changing preferences and forcing the system into a frenzy. In theory, MoE models save resources by activating only a small fraction of parameters. In practice, however, the router switches experts almost at every token. As Ali Kayyam from BrainChip Inc. points out, this constant shuffling triggers an avalanche of weight loading from slow storage into RAM. Consequently, on devices with limited VRAM or SRAM, latency becomes so severe that these "lightweight" MoE models actually run slower than their dense counterparts.

The solution to this problem is elegant and purely mathematical. Kayyam proposed StickyMoE, a method that introduces a differentiable consistency loss function during the training phase. Essentially, the model is penalized for abrupt shifts in the router’s "party line" between adjacent tokens. This forces the system to keep the same expert active for entire semantically coherent blocks. For engineers, the best part is that there is no need to overhaul the architecture: only a single hyperparameter λ is added, allowing the router and expert representations to adapt to each other from the very first step of pre-training.

"Sticky" routing bypasses the hardware bottlenecks that previously stifled the performance of local LLMs.

The data confirms that enforced expert "loyalty" benefits both hardware efficiency and model quality. Key performance metrics for the method include:

Reduction in expert switching frequency by up to 59%. Improved perplexity scores in medium-sized models. Up to a 3.92x reduction in cache misses. Stable performance under restricted PCIe and NVMe bandwidth conditions.

StickyMoE demonstrates that the hardware constraints of edge devices are a problem for mathematicians, not just systems administrators. If you are designing local solutions or smartphone software, transitioning to "sticky" routing is becoming the only way to run heavy models on hardware that lacks the luxury of terabytes of video memory. Optimization at the training stage eliminates the need for makeshift solutions like reactive caching or endless post-release fine-tuning.

Machine LearningLarge Language ModelsOn-Device AIAI ChipsStickyMoE