[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-328119-105":59,"doc-detail-328119-en":131,"doc-similar-328119":164},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","triroute-unified-learned-routing-for-joint-adaptive-attention-experts-and-kv-cache-allocation","TriRoute - Unified Learned Routing for Joint Adaptive Attention, Experts, and KV-Cache Allocation","","TriRoute unifies conditional computation decisions in large language models by jointly optimizing attention mode (skip/local/full), Mixture-of-Experts selection (including a null expert for depth skipping), and KV-cache quantization bit-width for each token at every transformer layer. A single lightweight controller is trained end-to-end with language modeling under one Lagrangian budget constraint, using Gumbel-Softmax with straight-through estimation and load-balanced top-k gating. The method mitigates routing-collapse cascades via per-axis normalization and coupling-aware balancing. On decoder-only models from 160M to 1.3B, TriRoute traces a dominating Pareto frontier while preserving tail-case robustness versus perplexity-only tuning.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/triroute-unified-learned-routing-for-joint-adaptive-attention-experts-and-kv-cache-allocation/328119/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/triroute-unified-learned-routing-for-joint-adaptive-attention-experts-and-kv-cache-allocation/328119.png","ImageObject",300,407,{"name":92,"@type":93},"Genevieve","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-23","2026-09-21",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",24,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What are the three coupled decisions TriRoute optimizes jointly?","Question",{"text":113,"@type":114},"TriRoute jointly decides an attention mode (skip/local/full), selects a sparse set of FFN experts (with a null expert for MoD-like skipping), and chooses the KV-cache bit-width used to store each token for future attention.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How is TriRoute trained while keeping inference cost controlled?",{"text":118,"@type":114},"The controller is trained end-to-end with the language-modeling objective using a heterogeneous relaxation scheme and a single Lagrangian budget constraint that turns compute-and-memory cost into a controllable knob.",{"name":120,"@type":111,"acceptedAnswer":121},"What issue does TriRoute address during joint routing training?",{"text":122,"@type":114},"TriRoute identifies and mitigates an across-axis routing-collapse cascade that can arise in naive joint training, using per-axis normalization and a coupling-aware balancing loss.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},328119,1790171535,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":145,"read_time":146,"preview_page_count":19,"preview_urls":147},1374391974585,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","arXiv :2607 .0660 1v 1 [ cs .LG] 7 Jul 2026  \nTriRoute: Unified Learned Routing for Joint Adaptive Attention, Experts, and KV-Cache Allocation  \nAndrii Balashov  Olena Ponomarova   \nUkrainian State University of Science and Technologies  \n[andbalashov@hotmail. com](andbalashov@hotmail. com) [o. a. ponomarova@ust. edu. ua](o. a. ponomarova@ust. edu. ua)  \nAbstract  \nConditional computation promises to decouple a language model’s quality from its pertoken inference cost, but the leading techniques each act on a single axis and are developed in isolation: Mixture-of-Experts (MoE) sparsifies the feed-forward network, Mixture-of-Depths (MoD) skips whole transformer blocks, and KV-cache quantization compresses attention memory. We argue that these three decisions—how much attention resolution, which experts, and how many bits of cache a token deserves—are strongly coupled and should be made jointly. We introduce TriRoute, a single lightweight controller that, for every token at every layer, emitsa coordinated policy over all three axes: (i) an attention mode (skip / local / full), (ii) a sparse set of FFN experts (including a null expert that recovers MoD), and (iii) a KV-cache bit-width that governs how the token is remembered by future queries. The controller is trained end-to-end with the language-modeling objective using a heterogeneous relaxation scheme—Gumbel-Softmax with straight-through estimation for the categorical attention and bit decisions, and load-balanced top-k gating for experts—under a single Lagrangian budget constraint that turns the average compute-and-memory cost into a controllable knob. We identify and mitigate across-axis routing-collapse cascade that afflicts naive joint training, using per-axis normalization and a coupling-aware balancing loss. On decoder-only models from 160M to 1.3B parameters trained at compute-optimal token counts, TriRoute traces a Pareto frontier that dominates the best independently-tuned combination of MoD + MoE + KV-quantization at matched inference FLOPs and memory, while better preserving tail-case robustness (rare entities, code, arithmetic) that pure perplexity optimization erodes. A post-hoc analysis shows the controller learns interpretable structure: it spends attention resolution and cache bits on sentence-initial tokens, rare subwords, and named entities, while cheaply routing function words and predictable continuations. Our results suggest that a shared learned controller—rather than three hand-tuned mechanisms—is a principled way to spend a fixed inference budget where it matters most.  \n1 Introduction  \nThe dominant cost of deploying large language models (LLMs) is incurred at inference, one token ata time, and it is remarkably uniform: a dense transformer spends the same floating-point operations and allocates the same key/value (KV) cache memory for a syntactically trivial function word as it does for a rare named entity that anchors the meaning of a paragraph. This uniformity is statistically wasteful. A long line of conditional computation research has sought to break it, and three techniques now dominate practice, each acting on a different part of the transformer block:  \n• Mixture-of-Experts (MoE) sparsifies the feed-forward network (FFN), routing each token toa small subset of experts and thereby decoupling parameter count from active FLOPs [20, 31 , 44] .  \n• Mixture-of-Depths (MoD) makes depth token-adaptive, learning a per-block gate that lets a  \ntoken bypass an entire attention+FFN sublayer [38], echoing earlier adaptive-depth and early-exit work [15, 18 , 24 , 41] .  \n• KV-cache quantization compresses the attention memory that dominates long-context serving, storing keys and values at 2–4 bits with carefully chosen group scales [26, 33] .  \nThese mechanisms are almost always studied—and tuned—independently. Yet the decisions they make are not independent. Consider a rare entity token such as the surname in “. . . signed by Nakamura on Tuesday”. MoD may ","cbCaivJXJxFXE9B2","https://ap.wps.com/l/cbCaivJXJxFXE9B2","pdf",636855,22,"English","# Abstract\n# 1 Introduction","[{\"question\":\"What are the three coupled decisions TriRoute optimizes jointly?\",\"answer\":\"TriRoute jointly decides an attention mode (skip/local/full), selects a sparse set of FFN experts (with a null expert for MoD-like skipping), and chooses the KV-cache bit-width used to store each token for future attention.\"},{\"question\":\"How is TriRoute trained while keeping inference cost controlled?\",\"answer\":\"The controller is trained end-to-end with the language-modeling objective using a heterogeneous relaxation scheme and a single Lagrangian budget constraint that turns compute-and-memory cost into a controllable knob.\"},{\"question\":\"What issue does TriRoute address during joint routing training?\",\"answer\":\"TriRoute identifies and mitigates an across-axis routing-collapse cascade that can arise in naive joint training, using per-axis normalization and a coupling-aware balancing loss.\"}]","TriRoute - Unified Learned Routing for Joint Adaptive Attention, Experts, and KV-Cache Allocation | PDF",1789978687,55,[148,152,156,160],{"page_no":8,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/da7ddf2966198fb50f7ab43dd3ede287.webp",983,1272,{"page_no":14,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/fae726d5fa546ec527c5e2933564a39b.webp",982,1270,{"page_no":81,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6914c002ff61a93d829b72aa9559bc6d.webp",981,1269,{"page_no":19,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/88d13c0c30628242586fe167054f149d.webp",980,1268,{"list":165,"token":66},[166,173,179,186,192,198,205,212,219,225],{"doc_id":167,"doc_title":168,"file_type":138,"home_preview_img_url":169,"slug":170,"view_count":171,"category_name":40,"create_tm":172},82559,"MosaicKV Serving Long-Context LLM with Dynamic Two-D KV Cache Compression","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808763145/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108279&Signature=2cSSoQ9q5g814AV4wIIPwzZP%2F7E%3D","mosaickv-serving-long-context-llm-with-dynamic-two-d-kv-cache-compression",43,1784181525,{"doc_id":174,"doc_title":175,"file_type":138,"home_preview_img_url":176,"slug":177,"view_count":46,"category_name":40,"create_tm":178},85630,"KVEraser: Learning to Steer KV Cache for Efficient Localized Context Erasing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809333636/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108279&Signature=mY0rpmdC40AViWbfEdt5lHvxh1I%3D","kveraser-learning-to-steer-kv-cache-for-efficient-localized-context-erasing",1784205093,{"doc_id":180,"doc_title":181,"file_type":138,"home_preview_img_url":182,"slug":183,"view_count":184,"category_name":40,"create_tm":185},82040,"Signed Symmetric Quantization for Few-Bit Integers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808662592/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108279&Signature=0no3WnHEChSmm6wY5%2B30yh4Slxw%3D","signed-symmetric-quantization-for-few-bit-integers",23,1784177753,{"doc_id":187,"doc_title":188,"file_type":138,"home_preview_img_url":189,"slug":190,"view_count":184,"category_name":40,"create_tm":191},83385,"Ensemble Diversity Optimization for Subjective Supervision","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808840736/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108279&Signature=yNBF2Y%2FpN4m5osEHtYvlRcjztNc%3D","ensemble-diversity-optimization-for-subjective-supervision",1784187137,{"doc_id":193,"doc_title":194,"file_type":138,"home_preview_img_url":195,"slug":196,"view_count":140,"category_name":40,"create_tm":197},273589,"WHITEMATTER: ALL-TO-ALL CROSS-LAYER CONNECTIONS VIA KV MIXING","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899953255/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108279&Signature=jQC4kj3uSA2dCq3kfzZY3fzeJw4%3D","whitematter-all-to-all-cross-layer-connections-via-kv-mixing",1789472221,{"doc_id":199,"doc_title":200,"file_type":138,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":40,"create_tm":204},273842,"TreeWY - Speculative Verification for Gated DeltaNet Hybrids - Abstract","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899968782/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108279&Signature=ZnK7tm7JJfwEi%2Bu48i%2Fw1KljeEo%3D","treewy-speculative-verification-for-gated-deltanet-hybrids-abstract",18,1789472971,{"doc_id":206,"doc_title":207,"file_type":138,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":40,"create_tm":211},84657,"Multi-Turn Distributed Inference with Mixture of Experts for 6G Edge Cloud Networks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809194805/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108279&Signature=qsm44dYodVdtC6%2BNa3TRIIN71Ss%3D","multi-turn-distributed-inference-with-mixture-of-experts-for-6g-edge-cloud-networks",29,1784197515,{"doc_id":213,"doc_title":214,"file_type":138,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":40,"create_tm":218},82625,"OmniPilot: An Uncertainty-Aware LLM Inference Advisor for Heterogeneous GPU Clusters","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808770698/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108279&Signature=iLN6g6Lsg7HMcSw90ErQwGlmZfI%3D","omnipilot-an-uncertainty-aware-llm-inference-advisor-for-heterogeneous-gpu-clusters",21,1784181881,{"doc_id":220,"doc_title":221,"file_type":138,"home_preview_img_url":222,"slug":223,"view_count":184,"category_name":40,"create_tm":224},327569,"Training Hybrid Block Diffusion Language Models with Partial Bidirectionality","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909333383/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108279&Signature=HSFfCRgzfOY3tIuTkrCmlwRflro%3D","training-hybrid-block-diffusion-language-models-with-partial-bidirectionality",1789977573,{"doc_id":226,"doc_title":227,"file_type":138,"home_preview_img_url":228,"slug":229,"view_count":230,"category_name":40,"create_tm":231},83948,"Benchmarking KV Cache Optimizations for Long-Context Serving","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809117799/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108279&Signature=LafuClbsDG%2FTgnaOHa8eYDIzaPI%3D","benchmarking-kv-cache-optimizations-for-long-context-serving",32,1784191616]