mlsanityData to 7 Oct 2026

Duo-LLM: A Framework for Studying Adaptive Computation in Large Language Models

arXiv 2410.10846 ↗First posted 1 Oct 2024cs.LG cs.CLcited by 6

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

also in 1 more
Abstract (arXiv)

Large Language Models (LLMs) typically generate outputs token by token using a fixed compute budget, leading to inefficient resource utilization. To address this shortcoming, recent advancements in mixture of expert (MoE) models, speculative decoding, and early exit strategies leverage the insight that computational demands can vary significantly based on the complexity and nature of the input. However, identifying optimal routing patterns for dynamic execution remains an open challenge, limiting the full potential of these adaptive methods. To address this need, we study adaptive computation in LLMs more systematically. We propose a novel framework that integrates smaller auxiliary modules within each Feed-Forward Network layer of the LLM. This design enables dynamic routing of tokens based on task complexity: tokens can be processed by either the small or big modules at each layer, or even bypass certain layers entirely. This allows us to introduce a novel notion of a token's difficulty, defined by its potential to benefit from additional computational resources. Importantly, by employing oracles to identify optimal patterns of adaptive computations, we gain valuable insights into the internal workings of LLMs and the routing processes in a simplified heterogeneous MoE setup. We show that trained routers operate differently from oracles and often yield suboptimal solutions. Notably, activating a large module in just one layer outperforms models that use large modules across all layers, underscoring the gap between practical implementations of routing in MoE models and theoretical optima for adaptive computation.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Expert routing strategies, one of 12 directions in Mixture-of-experts. Builds on 33 of its 36 references that are in the map. First posted on arXiv 1 Oct 2024.

Builds on

33 of 36 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024Routing Experts: Learning to Route Dynamic Experts in Multi-modal Large Language Models19 Jul
  2. 2022Mixture-of-Experts with Expert Choice Routing18 Feb
  3. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity11 Jan

Other references · 30

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  5. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
  6. 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
  7. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  8. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  9. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
  10. 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 778
  11. 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 475
  12. 2022ST-MoE: Designing Stable and Transferable Sparse Expert Modelscited by 391
18 more
  1. 2021Understanding Dataset Difficulty with V-Usable Informationcited by 288
  2. 2024Do Llamas Work in English? On the Latent Language of Multilingual Transformerscited by 275
  3. 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 242
  4. 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
  5. 2022MegaBlocks: Efficient Sparse Training with Mixture-of-Expertscited by 204
  6. 2024Not All Experts are Equal: Efficient Expert Pruning and Skipping for Mixture-of-Experts Large Language Modelscited by 140
  7. 2022The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformerscited by 121
  8. 2020Analyzing Individual Neurons in Pre-trained Language Modelscited by 97
  9. 2023SkipDecode: Autoregressive Skip Decoding with Batching and Caching for Efficient LLM Inferencecited by 89
  10. 2024MoMa: Efficient Early-Fusion Pre-training with Mixture of Modality-Aware Expertscited by 61
  11. 2020Scalable Transfer Learning with Expert Modelscited by 48
  12. 2024Flextron: Many-in-One Flexible Large Language Modelcited by 42
  13. 2024Toward Inference-optimal Mixture-of-Expert Large Language Modelscited by 19
  14. 2023OrchestraLLM: Efficient Orchestration of Language Models for Dialogue State Trackingcited by 17
  15. 2024EE-Tuning: An Economical yet Scalable Solution for Tuning Early-Exit Large Language Modelscited by 13
  16. 2024Mixture-of-Modules: Reinventing Transformers as Dynamic Assemblies of Modulescited by 11
  17. 2019Conditional Computation for Continual Learningcited by 7
  18. 2023SHARCS: Efficient Transformers through Routing with Dynamic Width Sub-networkscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 3.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025SpecRouter: Adaptive Routing for Multi-Level Speculative Decoding in Large Language Models
  2. 2025From Dense to Dynamic: Token-Difficulty Driven MoEfication of Pre-Trained LLMs
  3. 2026Token-Level LLM Collaboration via FusionRoute
  4. 2025QuickSilver -- Speeding up LLM Inference through Dynamic Token Halting, KV Skipping, Contextual Token Fusion, and Adaptive Matryoshka Quantization
  5. 2024Minions: Accelerating Large Language Model Inference with Aggregated Speculative Execution
  6. 2025HELIOS: Adaptive Model And Early-Exit Selection for Efficient LLM Inference Serving
  7. 2024OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models
  8. 2026AE-LLM: Adaptive Efficiency Optimization for Large Language Models