mlsanityData to 14 Oct 2026

TriRoute: Unified Learned Routing for Joint Adaptive Attention, Experts, and KV-Cache Allocation

arXiv 2607.06601 ↗First posted 7 Jul 2026cs.LG cs.AIcited by 0

On the map: Mixture-of-experts → Expert routing strategies

also in 1 more
Abstract (arXiv)

Conditional computation can decouple language model quality from per-token inference cost, yet leading techniques act on a single axis in isolation: Mixture-of-Experts (MoE) sparsifies the FFN, Mixture-of-Depths (MoD) skips whole transformer blocks, and KV-cache quantization compresses attention memory. We argue these three decisions (attention resolution, expert selection, and cache bit-width) are strongly coupled and should be made jointly: a token rare enough to warrant full attention may also need high-precision caching regardless of which expert processes it. We introduce TriRoute, a single lightweight controller shared across all three axes that, for every token at every layer, emits a coordinated policy: (i) an attention mode (skip/local/full), (ii) a sparse set of FFN experts (with a null expert recovering MoD), and (iii) a KV-cache bit-width. The controller trains end-to-end via a heterogeneous relaxation (Gumbel-Softmax with straight-through estimation for categorical decisions and load-balanced top-k gating for experts) under a Lagrangian budget constraint that turns the average compute and memory cost into a controllable knob. We identify a cross-axis routing-collapse cascade in naive joint training, where collapse on one axis propagates to the others, and address it with per-axis normalization and a coupling-aware balancing loss. On decoder-only models from 160M to 1.3B parameters at compute-optimal token counts, TriRoute Pareto-dominates the best independent MoD+MoE+KV-quantization combination at matched inference FLOPs and memory, while better preserving tail-case robustness on rare entities, code, and arithmetic that pure perplexity optimization erodes. Post-hoc analysis reveals interpretable structure: the controller allocates full attention and high-precision cache to sentence-initial positions, rare subwords, and named entities, while cheaply routing function words.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Expert routing strategies, one of 12 directions in Mixture-of-experts. Builds on 52 of its 58 references that are in the map. First posted on arXiv 7 Jul 2026.

Builds on

52 of 58 references.

Closest ancestors · 4

Same direction, newest first

  1. 2023SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention13 Dec
  2. 2022Mixture of Attention Heads: Selecting Attention Heads Per Token11 Oct
  3. 2022Mixture-of-Experts with Expert Choice Routing18 Feb
  4. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity11 Jan

Other references · 48

  1. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  2. 2020Scaling Laws for Neural Language Modelscited by 6,586
  3. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  4. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  5. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  6. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  7. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  8. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
  9. 2020Longformer: The Long-Document Transformercited by 3,413
  10. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  11. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  12. 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,739
36 more
  1. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  2. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  3. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,079
  4. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
  5. 2024Mixtral of Expertscited by 1,823
  6. 2020GLU Variants Improve Transformercited by 1,804
  7. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
  8. 2020Big Bird: Transformers for Longer Sequencescited by 1,684
  9. 2020Reformer: The Efficient Transformercited by 1,668
  10. 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Shardingcited by 1,631
  11. 2019Generating Long Sequences with Sparse Transformerscited by 1,546
  12. 2019Root Mean Square Layer Normalizationcited by 1,480
  13. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  14. 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,148
  15. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
  16. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
  17. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
  18. 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Modelscited by 867
  19. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
  20. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
  21. 2018Universal Transformerscited by 647
  22. 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
  23. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 591
  24. 2016Adaptive Computation Time for Recurrent Neural Networkscited by 506
  25. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 439
  26. 2022DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to Power Next-Generation AI Scalecited by 404
  27. 2022ST-MoE: Designing Stable and Transferable Sparse Expert Modelscited by 399
  28. 2021BASE Layers: Simplifying Training of Large, Sparse Modelscited by 320
  29. 2022Confident Adaptive Language Modelingcited by 310
  30. 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 258
  31. 2022Unified Scaling Laws for Routed Language Modelscited by 253
  32. 2021Hash Layers For Large Sparse Modelscited by 237
  33. 2019Depth-Adaptive Transformercited by 236
  34. 2022MegaBlocks: Efficient Sparse Training with Mixture-of-Expertscited by 209
  35. 2019Adaptive Attention Span in Transformerscited by 149
  36. 2023CoLT5: Faster Long-Range Transformers with Conditional Computationcited by 84

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Attention-Aware Routing: Coupling Routing and Attention in MoEs
  2. 2026ARM: Attention with Routed-Memory for Learnable Sparse Control
  3. 2025Unifying Mixture of Experts and Multi-Head Latent Attention for Efficient Language Models
  4. 2026Sticky Routing: Training MoE Models for Memory-Efficient Inference
  5. 2025Mixture of Weight-shared Heterogeneous Group Attention Experts for Dynamic Token-wise KV Optimization
  6. 2025Task-KV: Task-aware KV Cache Optimization via Semantic Differentiation of Attention Heads
  7. 2026SoftMoE: Soft Differentiable Routing for Mixture-of-Experts in LLMs
  8. 2026Kwai Summary Attention Technical Report