Online Multi-LLM Selection via Contextual Bandits under Unstructured Context Evolution
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) exhibit diverse response behaviors, costs, and strengths, making it challenging to select the most suitable LLM for a given user query. We study the problem of adaptive multi-LLM selection in an online setting, where the learner interacts with users through multi-step query refinement and must choose LLMs sequentially without access to offline datasets or model internals. A key challenge arises from unstructured context evolution: the prompt dynamically changes in response to previous model outputs via a black-box process, which cannot be simulated, modeled, or learned. To address this, we propose the first contextual bandit framework for sequential LLM selection under unstructured prompt dynamics. We formalize a notion of myopic regret and develop a LinUCB-based algorithm that provably achieves sublinear regret without relying on future context prediction. We further introduce budget-aware and positionally-aware (favoring early-stage satisfaction) extensions to accommodate variable query costs and user preferences for early high-quality responses. Our algorithms are theoretically grounded and require no offline fine-tuning or dataset-specific training. Experiments on diverse benchmarks demonstrate that our methods outperform existing LLM routing strategies in both accuracy and cost-efficiency, validating the power of contextual bandits for real-time, adaptive LLM selection.
Key facts. Cited by 19 papers in the map (data through 14 Oct 2026). Builds on 33 of its 51 references that are in the map. First posted on arXiv 21 Jun 2025.
Builds on
33 of 51 references.
References · 33
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Let's Verify Step by Stepcited by 3,789
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 853
- 2023LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusioncited by 564
- 2025Group-in-Group Policy Optimization for LLM Agent Trainingcited by 497
- 2024Hybrid LLM: Cost-Efficient and Quality-Aware Query Routingcited by 372
- 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 233
21 more
- 2024More Agents Is All You Needcited by 180
- 2024GraphRouter: A Graph-based Router for LLM Selectionscited by 165
- 2023AutoMix: Automatically Mixing Language Modelscited by 125
- 2025Alita: Generalist Agent Enabling Scalable Agentic Reasoning with Minimal Predefinition and Maximal Self-Evolutioncited by 116
- 2025Universal Model Routing for Efficient LLM Inferencecited by 86
- 2015Linear Contextual Bandits with Knapsackscited by 82
- 2017Efficient Contextual Bandits in Non-stationary Worldscited by 62
- 2025MixLLM: Dynamic Routing in Mixed Large Language Modelscited by 59
- 2024Offline Reinforcement Learning for LLM Multi-Step Reasoningcited by 54
- 2024MetaLLM: A High-performant and Cost-efficient Dynamic Framework for Wrapping LLMscited by 41
- 2024Cost-Effective Online Multi-LLM Selection with Versatile Reward Modelscited by 39
- 2024Efficient Prompt Optimization Through the Lens of Best Arm Identificationcited by 37
- 2025Optimizing Model Selection for Compound AI Systemscited by 36
- 2024Eagle: Efficient Training-Free Router for Multi-LLM Inferencecited by 35
- 2024Which LLM to Play? Convergence-Aware Online Model Selection with Time-Increasing Banditscited by 27
- 2022Hierarchical Conversational Preference Elicitation with Bandit Feedbackcited by 10
- 2025A Multi-Agent Conversational Bandit Approach to Online Evaluation and Selection of User-Aligned LLM Responsescited by 8
- 2025Improving Large Language Model Planning with Action Sequence Similaritycited by 7
- 2025Soft Reasoning: Navigating Solution Spaces in Large Language Models through Controlled Embedding Explorationcited by 7
- 2025Practical Adversarial Attacks on Stochastic Bandits via Fake Data Injectioncited by 3
- 2024Adaptive Reinforcement Learning Planning: Harnessing Large Language Models for Complex Information Extractioncited by 2
Built on by
Citing papers per year: 2025: 4; 2026: 15.
19 papers.
Sort:
By area:
- 2025Slm-mux: Orchestrating small language models for reasoningcited by 6
- 2026Federate the Router: Learning Language Model Routers with Sparse and Decentralized Evaluationscited by 3
- 2026WISERouter: LLM Routing with Workload Budget Constraintcited by 3
- 2026Cost-Aware Multi-Objective Bandits: Theory and Application to Budgeted LLM Configuration Evaluationcited by 3
- 2025AGFT: An Adaptive GPU Frequency Tuner for Real-Time LLM Inference Optimizationcited by 2
- 2025Ghost in the Transformer: Detecting Model Reuse with Invariant Spectral Signaturescited by 2
- 2026A Component-Based Survey of Interactions between Large Language Models and Multi-Armed Banditscited by 1
- 2026CASCADE: Case-Based Continual Adaptation for Large Language Models During Deploymentcited by 1
- 2026Latency-Quality Routing for Functionally Equivalent Tools in LLM Agentscited by 1
- 2026Large Language Model Selection with Limited Annotationscited by 1
- 2026Policy Regret for Embedding Model Routing: Contextual Bandits with Low-Rank Expertscited by 1
- 2025Large Language Model Selection with Limited Annotationscited by 0
7 more
- 2026POLAR: Online Learning for LoRA Adapter Caching and Routing in Edge LLM Servingcited by 0
- 2026Bandit Learning in General Open Multi-agent Systemscited by 0
- 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agentscited by 0
- 2026Iterative Critique-and-Routing Controller for Multi-Agent Systems with Heterogeneous LLMscited by 0
- 2026Dead text or binding clause? Measuring and restoring constraint influence in black-box LLM dialoguescited by 0
- 2026OrchSLM: Probing the Dynamics of Small Language Model Orchestrationcited by 0
- 2026CERA-MoA: Co-Evolving Routing Mechanisms with Continually Learning LLM Agentscited by 0
- 2026CERA-MoA: Co-Evolving Routing Mechanisms with Continually Learning LLM Agents16 Sep 2026
- 2026OrchSLM: Probing the Dynamics of Small Language Model Orchestration11 Sep 2026
- 2026Dead text or binding clause? Measuring and restoring constraint influence in black-box LLM dialogues12 Aug 2026
- 2026Cost-Aware Multi-Objective Bandits: Theory and Application to Budgeted LLM Configuration Evaluation5 Aug 2026
- 2026WISERouter: LLM Routing with Workload Budget Constraint26 Jul 2026
- 2026Policy Regret for Embedding Model Routing: Contextual Bandits with Low-Rank Experts12 Jun 2026
- 2026Large Language Model Selection with Limited Annotations24 May 2026
- 2026Latency-Quality Routing for Functionally Equivalent Tools in LLM Agents14 May 2026
- 2026Iterative Critique-and-Routing Controller for Multi-Agent Systems with Heterogeneous LLMs9 May 2026
- 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agents8 May 2026
- 2026Bandit Learning in General Open Multi-agent Systems7 May 2026
- 2026CASCADE: Case-Based Continual Adaptation for Large Language Models During Deployment5 May 2026
7 more
- 2026POLAR: Online Learning for LoRA Adapter Caching and Routing in Edge LLM Serving17 Apr 2026
- 2026Federate the Router: Learning Language Model Routers with Sparse and Decentralized Evaluations29 Jan 2026
- 2026A Component-Based Survey of Interactions between Large Language Models and Multi-Armed Bandits19 Jan 2026
- 2025Ghost in the Transformer: Detecting Model Reuse with Invariant Spectral Signatures9 Nov 2025
- 2025Large Language Model Selection with Limited Annotations10 Oct 2025
- 2025Slm-mux: Orchestrating small language models for reasoning6 Oct 2025
- 2025AGFT: An Adaptive GPU Frequency Tuner for Real-Time LLM Inference Optimization3 Aug 2025
- 2026Latency-Quality Routing for Functionally Equivalent Tools in LLM Agentscited by 1
- 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agentscited by 0
- 2026Iterative Critique-and-Routing Controller for Multi-Agent Systems with Heterogeneous LLMscited by 0
- 2026OrchSLM: Probing the Dynamics of Small Language Model Orchestrationcited by 0
- 2026CERA-MoA: Co-Evolving Routing Mechanisms with Continually Learning LLM Agentscited by 0
- 2026CERA-MoA: Co-Evolving Routing Mechanisms with Continually Learning LLM Agents16 Sep 2026
- 2026OrchSLM: Probing the Dynamics of Small Language Model Orchestration11 Sep 2026
- 2026Latency-Quality Routing for Functionally Equivalent Tools in LLM Agents14 May 2026
- 2026Iterative Critique-and-Routing Controller for Multi-Agent Systems with Heterogeneous LLMs9 May 2026
- 2026PYTHALAB-MERA: Validation-Grounded Memory, Retrieval, and Acceptance Control for Frozen-LLM Coding Agents8 May 2026
- 2026Federate the Router: Learning Language Model Routers with Sparse and Decentralized Evaluationscited by 3
- 2026WISERouter: LLM Routing with Workload Budget Constraintcited by 3
- 2026Cost-Aware Multi-Objective Bandits: Theory and Application to Budgeted LLM Configuration Evaluationcited by 3
- 2025AGFT: An Adaptive GPU Frequency Tuner for Real-Time LLM Inference Optimizationcited by 2
- 2025Ghost in the Transformer: Detecting Model Reuse with Invariant Spectral Signaturescited by 2
- 2026A Component-Based Survey of Interactions between Large Language Models and Multi-Armed Banditscited by 1
- 2026CASCADE: Case-Based Continual Adaptation for Large Language Models During Deploymentcited by 1
- 2026Large Language Model Selection with Limited Annotationscited by 1
- 2025Large Language Model Selection with Limited Annotationscited by 0
- 2026Bandit Learning in General Open Multi-agent Systemscited by 0
- 2026Dead text or binding clause? Measuring and restoring constraint influence in black-box LLM dialoguescited by 0
- 2026Dead text or binding clause? Measuring and restoring constraint influence in black-box LLM dialogues12 Aug 2026
- 2026Cost-Aware Multi-Objective Bandits: Theory and Application to Budgeted LLM Configuration Evaluation5 Aug 2026
- 2026WISERouter: LLM Routing with Workload Budget Constraint26 Jul 2026
- 2026Large Language Model Selection with Limited Annotations24 May 2026
- 2026Bandit Learning in General Open Multi-agent Systems7 May 2026
- 2026CASCADE: Case-Based Continual Adaptation for Large Language Models During Deployment5 May 2026
- 2026Federate the Router: Learning Language Model Routers with Sparse and Decentralized Evaluations29 Jan 2026
- 2026A Component-Based Survey of Interactions between Large Language Models and Multi-Armed Bandits19 Jan 2026
- 2025Ghost in the Transformer: Detecting Model Reuse with Invariant Spectral Signatures9 Nov 2025
- 2025Large Language Model Selection with Limited Annotations10 Oct 2025
- 2025AGFT: An Adaptive GPU Frequency Tuner for Real-Time LLM Inference Optimization3 Aug 2025