Neural Bandit Based Optimal LLM Selection for a Pipeline of Subtasks
Baran Atalar, Eddie Zhang, Carlee Joe-Wong

TL;DR
This paper introduces a neural bandit algorithm for sequentially selecting optimal LLMs for subtasks in a pipeline, improving success rates and reducing costs without needing prior performance data.
Contribution
It presents a novel neural contextual bandit approach for sequential LLM selection in task pipelines, with theoretical regret guarantees and empirical validation.
Findings
The algorithm achieves sublinear regret in task number.
It outperforms existing LLM selection methods on real datasets.
Abstract
As large language models (LLMs) become increasingly popular, there is a growing need to predict which out of a set of LLMs will yield a successful answer to a given query at low cost. This problem promises to become even more relevant as LLM agents are asked to solve an increasing variety of "agentic'' AI tasks. Such tasks are often broken into smaller subtasks, each of which can then be executed by a LLM expected to perform well on that specific subtask. For example, to extract a diagnosis from medical records, one can first select an LLM to summarize the record, select another to validate the summary, and then select a possibly different LLM to extract the diagnosis from the summarized record. Unlike existing LLM selection or routing algorithms, this setting requires selecting a sequence of LLMs, with the output of each LLM feeding into the next and potentially influencing its…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
