Duo-LLM: A Framework for Studying Adaptive Computation in Large Language Models
On the map: Mixture-of-experts → Expert routing strategies
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
- 2024Routing Experts: Learning to Route Dynamic Experts in Multi-modal Large Language Models19 Jul
- 2022Mixture-of-Experts with Expert Choice Routing18 Feb
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity11 Jan
Other references · 30
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,615
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
- 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 778
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 475
- 2022ST-MoE: Designing Stable and Transferable Sparse Expert Modelscited by 391
18 more
- 2021Understanding Dataset Difficulty with V-Usable Informationcited by 288
- 2024Do Llamas Work in English? On the Latent Language of Multilingual Transformerscited by 275
- 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 242
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
- 2022MegaBlocks: Efficient Sparse Training with Mixture-of-Expertscited by 204
- 2024Not All Experts are Equal: Efficient Expert Pruning and Skipping for Mixture-of-Experts Large Language Modelscited by 140
- 2022The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformerscited by 121
- 2020Analyzing Individual Neurons in Pre-trained Language Modelscited by 97
- 2023SkipDecode: Autoregressive Skip Decoding with Batching and Caching for Efficient LLM Inferencecited by 89
- 2024MoMa: Efficient Early-Fusion Pre-training with Mixture of Modality-Aware Expertscited by 61
- 2020Scalable Transfer Learning with Expert Modelscited by 48
- 2024Flextron: Many-in-One Flexible Large Language Modelcited by 42
- 2024Toward Inference-optimal Mixture-of-Expert Large Language Modelscited by 19
- 2023OrchestraLLM: Efficient Orchestration of Language Models for Dialogue State Trackingcited by 17
- 2024EE-Tuning: An Economical yet Scalable Solution for Tuning Early-Exit Large Language Modelscited by 13
- 2024Mixture-of-Modules: Reinventing Transformers as Dynamic Assemblies of Modulescited by 11
- 2019Conditional Computation for Continual Learningcited by 7
- 2023SHARCS: Efficient Transformers through Routing with Dynamic Width Sub-networkscited by 6
Built on by
Citing papers per year: 2025: 3; 2026: 3.
6 papers.
- 2025Inner Thinking Transformer: Leveraging Dynamic Depth Scaling to Foster Adaptive Internal Thinkingcited by 56
- 2025Adaptive Layer-skipping in Pre-trained LLMscited by 24
- 2025MoE-PHDS: One MoE checkpoint for flexible runtime sparsitycited by 0
- 2026N-vium: Mixture-of-Exits Transformer for Accelerated Exact Generationcited by 0
- 2026Unifying Data, Memory, and Compute Efficiency in LLM training: A Surveycited by 0
- 2026End-to-End Dynamic Sparsity for Resource-Adaptive LLM Inferencecited by 0
- 2026End-to-End Dynamic Sparsity for Resource-Adaptive LLM Inference26 Jun 2026
- 2026Unifying Data, Memory, and Compute Efficiency in LLM training: A Survey9 Jun 2026
- 2026N-vium: Mixture-of-Exits Transformer for Accelerated Exact Generation13 May 2026
- 2025MoE-PHDS: One MoE checkpoint for flexible runtime sparsity27 Sep 2025
- 2025Adaptive Layer-skipping in Pre-trained LLMs31 Mar 2025
- 2025Inner Thinking Transformer: Leveraging Dynamic Depth Scaling to Foster Adaptive Internal Thinking19 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2025SpecRouter: Adaptive Routing for Multi-Level Speculative Decoding in Large Language Models
- 2025From Dense to Dynamic: Token-Difficulty Driven MoEfication of Pre-Trained LLMs
- 2026Token-Level LLM Collaboration via FusionRoute
- 2025QuickSilver -- Speeding up LLM Inference through Dynamic Token Halting, KV Skipping, Contextual Token Fusion, and Adaptive Matryoshka Quantization
- 2024Minions: Accelerating Large Language Model Inference with Aggregated Speculative Execution
- 2025HELIOS: Adaptive Model And Early-Exit Selection for Efficient LLM Inference Serving
- 2024OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models
- 2026AE-LLM: Adaptive Efficiency Optimization for Large Language Models