Dynamic Routing as a New Dimension for Test-time Versatility of LLMs
Michal Štefánik, Marek Kadlčík, Josef Kuchař, Michal Spiegel
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.
Create a lesson
Metadata
- Comments
- Work in progress
Related papers
ActField: Learning Action Effects as Continuous-Time Latent Dynamics
Shared title terminologycs.AIYunpeng Qing, Yuheng Huang, Changxu Wei et al.
Evolving in Thought Space: Training a Small Model at Test Time Unlocks Better Discoveries
Shared title terminologycs.AIChonghe Jiang, Ao Qu, Siyuan Liu et al.
A Generative AI Agent to Emulate Interactive Human-driven Vehicles for Automated Driving Testing in Urban Areas
Shared title terminologycs.AIJia Hu, Changjian Yu, Panqu Wang et al.
TACT-Bench: Testing Adaptive Conversational Threats against Tool-Use Agents
Shared title terminologycs.AIIlia Hashemi Rad, Feijie Wu, Haoyu Wang et al.
GreenDynaMix: Thermal-Aware Dynamic Mixed-Precision MoE LLM Inference Systems
Shared title terminologycs.AIHan-Yi Lin, Kieran Griperay, Qiang Zhou et al.
Revisiting Learning to Delegate: LLM Discovered Heuristics for Large-Scale Vehicle Routing
Shared title terminologycs.AIZhengyang Wang, Renfei Tan, Shuze Daniel Liu et al.