[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-82041-en":3,"doc-seo-82041-105":29,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":20,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":13,"seo_description":14,"update_tm":27,"read_time":28},82041,7971461740909,"Levi","https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d",8,"Research & Report","Sticky Routing: Training MoE Models for Memory-Efficient Inference","Mixture-of-Experts (MoE) models activate only a sparse expert subset per token, but consecutive tokens often route to different experts, triggering frequent expert weight swaps between fast memory and slow storage on edge devices. StickyMoE introduces a differentiable routing consistency loss that penalizes abrupt expert switches across adjacent tokens, encouraging stable expert assignments over semantically coherent spans. The method requires no architectural changes, adds a single hyperparameter λ, and enables co-adaptation during pretraining, reducing switch rates up to 59% while improving perplexity and reducing cache misses up to 3.92×.","arXiv :2607 .08780v1 [ cs .LG] 12 Jun 2026  \nSticky Routing: Training MoE Models for Memory-Efficient  \nInference  \nAli Kayyam  \nBrainChip Inc., Laguna Hills, CA  \n[akayyam@brainchip. com](akayyam@brainchip. com)  \nAbstract  \nMixture-of-Experts (MoE) models activate only a sparse subset of experts per token, yet consecutive tokens frequently activate different experts—causing constant weight swapping between slow storage and fast memory on edge devices. Existing remedies are either systemlevel (caching heuristics) or post-hoc (router fine-tuning), leaving the root cause unchanged during pretraining. We propose StickyMoE, a differentiable routing consistency loss that penalises abrupt expert switches between adjacent tokens, encouraging the router to maintain the same expert assignment across semantically coherent spans. StickyMoE requires no architectural changes, adds a single hyperparameter λ, and unlike post-hoc methods, allows expert representations and routing decisions to co-adapt from the first training step. Experiments on small and medium MoE language models show that StickyMoE reduces the expert switch rate by up to 59% while simultaneously improving perplexity on the medium model, and reduces cache misses by up to 3.92 × , Pareto-dominating post-hoc fine-tuning on the quality–locality frontier. Routing temporal locality is most efficiently instilled at training time. Code is available at: [https://github.com/alikayyam/sticky_moe.git](https://github.com/alikayyam/sticky_moe.git).  \n1 Introduction  \nThe Mixture-of-Experts (MoE) architecture has emerged as one of the most practically important techniques for scaling large language models (LLMs) without a proportional increase in per-token computation [Shazeer et al. , 2017 , Fedus et al. , 2022 , Lepikhin et al. , 2021] . By replacing dense feed-forward network (FFN) sublayers with a collection of N expert FFNs and a learned sparse router, MoE models can possess billions of parameters while activating only a small subset—typically 1 or 2 experts out of 8–128—for each input token. This property makes MoE architectures theoretically attractive for edge deployment: if only 2 of 64 experts need to be resident in fast memory at any moment, the effective working-set size is a small fraction of the total parameter count.  \nThe expert-swapping problem. In practice, this promise is undermined by the temporal inconsistency of standard MoE routers. Because the router makes an independent routing decision for every token based solely on that token’s hidden representation, consecutive tokensin a sequence routinely activate entirely different experts [Zhou et al. , 2025] . On a system with limited GPU VRAM or on-device SRAM, each such switch requires evicting the currently cached expert weights and loading new ones from CPU RAM or flash storage. PCIe and NVMe bandwidth is one to two orders of magnitude lower than GPU memory bandwidth; a single expert weight transfer can therefore dominate the latency of the forward pass itself [Xue et al. , 2024 , Zhu et al. , 2025] . The result is that MoE models, despite their theoretical sparsity advantage, can be slower than comparably-sized dense models on memory-constrained hardware.  \nWhy existing solutions are insufficient. Prior work addresses this problem from two directions. System-level approaches maintain an expert cache in fast memory and use eviction policies (LRU, LFU) or learned prefetchers to reduce cache miss rates [Xue et al. , 2024 , Kamahoriet al. , 2024 , Zhang et al. , 2025] . While practically useful, these methods are fundamentally reactive: they try to exploit whatever locality the model’s router happens to produce, but cannot improve routers that are intrinsically inconsistent. Post-hoc approaches fine-tune only the router of an already-trained model to increase expert reuse [Zhu et al. , 2026], which is more targeted but still treats the symptom rather than the cause: the expert representations have already been shaped b","cbCail5mWPoa9bid","https://ap.wps.com/l/cbCail5mWPoa9bid","pdf",774219,1,24,"English","en",105,"# Introduction\n## The expert-swapping problem\n## Why existing solutions are insufficient\n## Our proposal and training objective\n## Contributions","[{\"question\":\"What problem does StickyMoE address in MoE inference?\",\"answer\":\"StickyMoE targets temporal inconsistency in standard MoE routers, where consecutive tokens frequently activate different experts, causing repeated weight swapping between slow and fast memory on memory-limited devices.\"},{\"question\":\"How does StickyMoE improve routing behavior during training?\",\"answer\":\"StickyMoE adds a differentiable routing consistency loss that penalizes abrupt changes in the router’s gate distributions between adjacent tokens, promoting consistent expert assignments across coherent spans.\"},{\"question\":\"Does StickyMoE require architectural changes or only router training?\",\"answer\":\"StickyMoE requires no architectural modifications and applies to standard top-k MoE routers by adding the proposed training objective; it co-trains with the language modeling loss from the first update.\"}]",1784177756,60,{"code":4,"msg":30,"data":31},"ok",{"site_id":24,"language":23,"slug":32,"title":13,"keywords":33,"description":14,"schema_data":34,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":27},"sticky-routing-training-moe-models-for-memory-efficient-inference","",{"@graph":35,"@context":85},[36,53,68],{"@type":37,"itemListElement":38},"BreadcrumbList",[39,43,47,50],{"item":40,"name":41,"@type":42,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":44,"name":45,"@type":42,"position":46},"https://docshare.wps.com/document/","Document",2,{"item":48,"name":12,"@type":42,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":42,"position":52},"https://docshare.wps.com/document/sticky-routing-training-moe-models-for-memory-efficient-inference/82041/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":62,"encodingFormat":60,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":40,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-07-17","2026-07-16",true,{"@type":65,"interactionType":66,"userInteractionCount":20},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"What problem does StickyMoE address in MoE inference?","Question",{"text":75,"@type":76},"StickyMoE targets temporal inconsistency in standard MoE routers, where consecutive tokens frequently activate different experts, causing repeated weight swapping between slow and fast memory on memory-limited devices.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"How does StickyMoE improve routing behavior during training?",{"text":80,"@type":76},"StickyMoE adds a differentiable routing consistency loss that penalizes abrupt changes in the router’s gate distributions between adjacent tokens, promoting consistent expert assignments across coherent spans.",{"name":82,"@type":73,"acceptedAnswer":83},"Does StickyMoE require architectural changes or only router training?",{"text":84,"@type":76},"StickyMoE requires no architectural modifications and applies to standard top-k MoE routers by adding the proposed training objective; it co-trains with the language modeling loss from the first update.","https://schema.org",{"og:url":51,"og:type":87,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":89,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,109,114,119,122,127,130,134],{"id":20,"doc_module":4,"doc_module_name":45,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":46,"doc_module":4,"doc_module_name":45,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":45,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":45,"category_name":107,"show_sort_weight":28,"slug":108},5,"Comic","comic",{"id":110,"doc_module":4,"doc_module_name":45,"category_name":111,"show_sort_weight":112,"slug":113},6,"Technology",50,"technology",{"id":115,"doc_module":4,"doc_module_name":45,"category_name":116,"show_sort_weight":117,"slug":118},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":45,"category_name":12,"show_sort_weight":120,"slug":121},30,"research-report",{"id":123,"doc_module":4,"doc_module_name":45,"category_name":124,"show_sort_weight":125,"slug":126},9,"Religion & Spirituality",20,"religion-spirituality",{"id":125,"doc_module":4,"doc_module_name":45,"category_name":128,"show_sort_weight":125,"slug":129},"World Cup","world-cup",{"id":131,"doc_module":4,"doc_module_name":45,"category_name":132,"show_sort_weight":131,"slug":133},10,"Lifestyle","lifestyle",{"id":135,"doc_module":4,"doc_module_name":45,"category_name":136,"show_sort_weight":106,"slug":137},19,"General","general"]