mlsanityData to 14 Oct 2026

Dr.LLM: Dynamic Layer Routing in LLMs

arXiv 2510.12773 ↗First posted 14 Oct 2025cs.CL cs.AI cs.LGcited by 12

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) process every token through all layers of a transformer stack, causing wasted computation on simple queries and insufficient flexibility for harder ones that need deeper reasoning. Adaptive-depth methods can improve efficiency, but prior approaches rely on costly inference-time search, architectural changes, or large-scale retraining, and in practice often degrade accuracy despite efficiency gains. We introduce Dr. LLM, Dynamic routing of Layers for LLMs, a retrofittable framework that equips pretrained models with lightweight per-layer routers deciding to skip, execute, or repeat a block. Routers are trained with explicit supervision: using Monte Carlo Tree Search (MCTS), we derive high-quality layer configurations that preserve or improve accuracy under a compute budget. Our design, windowed pooling for stable routing, focal loss with class balancing, and bottleneck MLP routers, ensures robustness under class imbalance and long sequences. On ARC (logic) and DART (math), Dr. LLM improves accuracy by up to +3.4%p while saving 5 layers per example on average. Routers generalize to out-of-domain tasks (MMLU, GSM8k, AIME, TruthfulQA, SQuADv2, GPQA, PIQA, AGIEval) with only 0.85% accuracy drop while retaining efficiency, and outperform prior routing methods by up to +7.7%p. Overall, Dr. LLM shows that explicitly supervised routers retrofit frozen LLMs for budget-aware, accuracy-driven inference without altering base weights. Code is available at https://github.com/parameterlab/dr-llm.

Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 29 of its 34 references that are in the map. First posted on arXiv 14 Oct 2025.

Builds on

29 of 34 references.

References · 29

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  3. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  4. 2024Qwen2.5 Technical Reportcited by 4,942
  5. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  6. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  7. 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
  8. 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,975
  9. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  10. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
  11. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
  12. 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 716
17 more
  1. 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 596
  2. 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 415
  3. 2024ShortGPT: Layers in Large Language Models are More Redundant Than You Expectcited by 383
  4. 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 332
  5. 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 307
  6. 2020BERT Loses Patience: Fast and Robust Inference with Early Exitcited by 273
  7. 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 258
  8. 2023Looped Transformers as Programmable Computerscited by 237
  9. 2023Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2cited by 229
  10. 2023Looped Transformers are Better at Learning Learning Algorithmscited by 149
  11. 2025Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computationcited by 133
  12. 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
  13. 2024DART-Math: Difficulty-Aware Rejection Tuning for Mathematical Problem-Solvingcited by 95
  14. 2024Calibrating Large Language Models Using Their Generations Onlycited by 65
  15. 2025Adaptive Layer-skipping in Pre-trained LLMscited by 27
  16. 2025Skip a Layer or Loop it? Test-Time Depth Adaptation of Pretrained LLMscited by 16
  17. 2024Router-Tuning: A Simple and Effective Approach for Enabling Dynamic-Depth in Transformerscited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 11.

12 papers.