arXiv:2609.05820cs.LGSep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.05820

Online Learning with LLM Experts from Limited Feedback

Wang Wei, Soumyabrata Pal, Koyel Mukherjee, Franck Dernoncourt, Ryan A. Rossi, Branislav Kveton, Hoda Eldardiry

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study adaptive routing of prompts to large language model (LLM) experts to maximize response quality in an online setting with limited feedback. We formulate it as a bandit problem with KK actions that represent experts and dd features that encode prompts, over a horizon of TT rounds. We propose algorithms that strategically select and observe rewards to minimize regret. In the full-information setting, we achieve a regret of O~(dT/m)\tilde{O}(dT/\sqrt{m}), while in the bandit setting we achieve O~(dTK/m)\tilde{O}(dT\sqrt{K/m}), where m≪Tm \ll T is a budget on feedback. Our experiments show that we efficiently learn high-quality routing strategies across diverse LLMs from limited feedback.

1 Introduction

Large language models (LLMs) are pervasive nowadays. OpenAI's GPT models (OpenAI et al., 2023), LLaMA3 (Dubey et al., 2024), and Mistral AI (Mistral AI, 2025) have been successfully used to solve many tasks, such as document processing and code generation. Different LLMs have different costs and capabilities (Artificial Analysis, 2025). The diversity of costs, even within the same family of models, can be stark (OpenAI, 2025). The diverse capabilities of LLMs are obvious from public datasets. For instance, the Nectar dataset (Zhu et al., 2024) contains responses to 183k prompts of many popular models judged by GPT-4. When GPT-3.5-Turbo, GPT-3.5-Turbo-Instruct, GPT-4, GPT-4-0613, LLaMA-2-7B-Chat, and Mistral-7B-Instruct are judged, the win rates of the models are 0.182, 0.091, 0.203, 0.319, 0.073, and 0.132. Therefore, no model dominates the others more than a third of the time and adaptation is beneficial.

We formulate the problem of online learning with LLM experts as follows. We have KK different LLMs and interact with them sequentially over TT

rounds. In each round, a prompt arrives and we route it to one expert, conditioned on the prompt. The expert responds and its response is associated with some reward, which is unobserved. This is because the responses of LLMs are generally not evaluated by their users. Our goal is to learn to route each prompt to the expert with the highest mean reward. This is impossible without feedback. Therefore, we make a realistic assumption that we get access to limited feedback that is as good as that from humans. This could be human feedback or a stronger LLM used as an LLM judge (Li et al., 2024b,a; LLM-as-a-Judge, 2025). This feedback is expensive, either because of human labor or computation cost, and thus we can only use it m≪Tm \ll T times, where mm is determined by the available budget. The tradeoff between rewards and feedback is not clear a priori. Therefore, we maximize rewards under the constraint on feedback rather than a linear combination of the two quantities. Finally, this problem is inherently online since user prompts are revealed only upon interaction, making offline solutions infeasible. Routing decisions must be made sequentially in real time, with no prior knowledge of the prompt distribution.

We solve our problem as a contextual bandit (Langford and Zhang, 2008; Li et al., 2010; Lattimore and Szepesvari, 2019) with KK experts, where each LLM is an expert and the context is an embedding of the prompt. The main difference from all prior work on contextual bandits is that only mm rewards out of TT can be observed. The agent can decide what to observe and when to observe it, as long as it could have observed it before. The main challenge in the algorithm design is doing it at a near-optimal rate in a regret minimization setting. The control over what to observe and when to observe it differentiates our work from other bandit settings that involve partial observations and we discuss these extensively in Section C. The online setting with limited feedback on LLM response

*Corresponding author.

quality differentiates our work from prior LLM optimization approaches, which are typically studied in offline settings or do not directly optimize response quality. We also discuss them in Section C. We make the following contributions:

  1. We study the full-information setting (Section 3), where the agent can observe the rewards of all experts in any past round. The key idea in our algorithm is to progressively observe rewards of the experts with the highest information gain. The algorithm is computationally efficient and its regret is O~(dT/m)\tilde{O}(dT/\sqrt{m}), which matches our lower bound up to d\sqrt{d}. Note that the bound is O~(T)\tilde{O}(\sqrt{T}) when m=Ω(T)m = \Omega(T).

  2. We also study the bandit setting (Section 4), where the agent can only observe at a certain round the reward of the expert who has generated the response for that round. The key idea in our algorithm is to progressively observe rewards of the experts with the highest information gain, separately for each LLM expert. The algorithm is computationally efficient and its regret is O~(dTK/m)\tilde{O}(dT\sqrt{K/m}). The additional K\sqrt{K} factor comparing to the full-information setting is due KK times less feedback.

  3. We extend the bandit setting to varying expert costs where the price of evaluating the responses of experts is non-uniform. Due to space constraints, this result has been moved to Section A.

  4. We evaluate all algorithms empirically on the Nectar dataset (Zhu et al., 2024) and show that they can learn a high-quality routing agent for many popular LLMs experts, such as GPT-3.5, GPT-4, LLaMA, and Mistral (Section 5).

Technical Novelty: A key challenge in our analysis is bounding the reward gap between the optimal and selected experts for prompts without feedback. Unlike standard linear bandits, limited feedback prevents immediate updates to the covariance matrix, making it difficult to bound regret using standard techniques. To address this in the full-information setting, we introduce a novel feedback strategy: at regular intervals, we select past prompts that maximize the determinant of the covariance matrix. This approach quickly reduces uncertainty in important directions and allows us to

bound regret. We further show that periodic feedback selection performs nearly as well as hindsight-optimal choices. In the bandit setting, we extend this approach by maintaining separate confidence sets per expert to ensure accurate regret guarantees.

Outline: In Section 2, we state our problem and define our model. In Sections 3 and 4, we describe our algorithms for the full-information and bandit settings, respectively, along with providing theoretical guarantees. In Section A, we extend our bandit algorithm to the setting with varying costs of evaluating experts. In Section 5, we provide empirical results using our algorithms. Finally, in Section B, we provide detailed proofs for all our results.

References (17)