Dynamic Routing as a New Dimension for Test-time Versatility of LLMs
cs.AI
Submitted: 2026-10-03
Updated: 2026-10-03
Comments: Work in progress
License: http://creativecommons.org/licenses/by/4.0/
The gist: Beyond scaling their parameters and data, large language models currently gain versatility on new problems along a single axis: the tokens they spend on chain-of-thought (CoT).
Abstract
Beyond scaling their parameters and data, large language models currently gain versatility on new problems along a single axis: the tokens they spend on chain-of-thought (CoT). We investigate whether dynamic routing programs, which execute a subset of the model's layers or iterate some of them, can open a second axis of test-time adaptation, complementary to CoT and free of any gradient update. Prior work showed that such programs exist and bring accuracy and efficiency gains on problems similar to those they were trained on; we ask whether they can also be identified rapidly, from a handful of demonstrations (3 or 10), by a strategy that transfers across models and tasks without training. First, we find that strategies that select programs by the probability they assign to the demonstrations' labels, arbitrated by the model's own confidence, bring consistent gains: on average over the 49 tasks of MMLU and substantially on four of seven models, and most of all on far out-of-distribution tasks such as ARC-AGI, where programs double the accuracy of a 7B model whose CoT fails. Second, on MMLU across the seven post-trained models, routing complements CoT in practice: the two succeed on different queries, and their composition exceeds CoT alone. Despite these gains, our analyses show that confidence-based selection leaves much of the potential untapped, in two places in particular: (1) in surfacing the routing potential that is already present early in pre-training but becomes harder to select after post-training, and (2) in making models robust to the refinements routing introduces, since unsuccessful routes tend to drive the residual stream out of the distribution that the following layers expect. Together, our results point to dynamic routing as a paradigm for extending the plasticity of existing and future LLMs in rapid test-time adaptation.
Sources
- Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation
- Eliciting Latent Predictions from Transformers with the Tuned Lens
- On the Measure of Intelligence
- Training Verifiers to Solve Math Word Problems
- Do Language Models Use Their Depth Efficiently?
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach
- Dynamic layer selection in decoder-only transformers
- The Llama 3 Herd of Models
- Router-Tuning: A Simple and Effective Approach for Enabling Dynamic-Depth in Transformers
- Dr.LLM: Dynamic Layer Routing in LLMs
- Think Visually, Reason Textually: Vision-Language Synergy in ARC
- Learning to Skip the Middle Layers of Transformers
- Skip a Layer or Loop it? Test-Time Depth Adaptation of Pretrained LLMs
- Skip a Layer or Loop It? Learning Program-of-Layers in LLMs
- Adaptive Layer-skipping in Pre-trained LLMs
- ShortGPT: Layers in Large Language Models are More Redundant Than You Expect
- s1: Simple test-time scaling
- Qwen3 Technical Report
- Mixture-of-Depths: Dynamically allocating compute in transformer-based language models
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems