mlsanityData to 14 Oct 2026

PickLLM: Context-Aware RL-Assisted Large Language Model Routing

arXiv 2412.12170 ↗First posted 12 Dec 2024cs.LG cs.AIcited by 13

Not on the map. Why?

Abstract (arXiv)

Recently, the number of off-the-shelf Large Language Models (LLMs) has exploded with many open-source options. This creates a diverse landscape regarding both serving options (e.g., inference on local hardware vs remote LLM APIs) and model heterogeneous expertise. However, it is hard for the user to efficiently optimize considering operational cost (pricing structures, expensive LLMs-as-a-service for large querying volumes), efficiency, or even per-case specific measures such as response accuracy, bias, or toxicity. Also, existing LLM routing solutions focus mainly on cost reduction, with response accuracy optimizations relying on non-generalizable supervised training, and ensemble approaches necessitating output computation for every considered LLM candidate. In this work, we tackle the challenge of selecting the optimal LLM from a model pool for specific queries with customizable objectives. We propose PickLLM, a lightweight framework that relies on Reinforcement Learning (RL) to route on-the-fly queries to available models. We introduce a weighted reward function that considers per-query cost, inference latency, and model response accuracy by a customizable scoring function. Regarding the learning algorithms, we explore two alternatives: PickLLM router acting as a learning automaton that utilizes gradient ascent to select a specific LLM, or utilizing stateless Q-learning to explore the set of LLMs and perform selection with a ε-greedy approach. The algorithm converges to a single LLM for the remaining session queries. To evaluate, we utilize a pool of four LLMs and benchmark prompt-response datasets with different contexts. A separate scoring function is assessing response accuracy during the experiment. We demonstrate the speed of convergence for different learning rates and improvement in hard metrics such as cost per querying session and overall response latency.

Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 19 of its 33 references that are in the map. First posted on arXiv 12 Dec 2024.

Builds on

19 of 33 references.

References · 19

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  4. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  5. 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
  6. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  7. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
  8. 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 853
  9. 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 721
  10. 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 682
  11. 2019ELI5: Long Form Question Answeringcited by 575
  12. 2023LLM-Blender: Ensembling Large Language Models with Pairwise Ranking and Generative Fusioncited by 564
7 more
  1. 2023Large Language Model Routing with Benchmark Datasetscited by 172
  2. 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 143
  3. 2021SimCLS: A Simple Framework for Contrastive Learning of Abstractive Summarizationcited by 132
  4. 2023AutoMix: Automatically Mixing Language Modelscited by 125
  5. 2023Fly-Swat or Cannon? Cost-Effective Language Model Choice via Meta-Modelingcited by 95
  6. 2022SummaReranker: A Multi-Task Mixture-of-Experts Re-ranking Framework for Abstractive Summarizationcited by 61
  7. 2017Implications of Decentralized Q-learning Resource Allocation in Wireless Networkscited by 6

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 10; 2026: 3.

13 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2026Dynamic Model Routing and Cascading for Efficient LLM Inference: A Survey
  2. 2025LLM Bandit: Cost-Efficient LLM Generation via Preference-Conditioned Dynamic Routing
  3. 2025Adaptive LLM Routing under Budget Constraints
  4. 2025Dynamic LLM Routing and Selection based on User Preferences: Balancing Performance, Cost, and Ethics
  5. 2025Lookahead Routing for Large Language Models
  6. 2024TensorOpera Router: A Multi-Model Router for Efficient LLM Inference
  7. 2026Dynamic Mixed-Precision Routing for Efficient Multi-step LLM Interaction
  8. 2024Efficient Sequential Decision Making with Large Language Models