Efficient Contextual LLM Cascades through Budget-Constrained Policy Learning
Not on the map. Why?
Abstract (arXiv)
Recent successes in natural language processing have led to the proliferation of large language models (LLMs) by multiple providers. Each LLM offering has different inference accuracy, monetary cost, and latency, and their accuracy further depends on the exact wording of the question (i.e., the specific prompt). At the same time, users often have a limit on monetary budget and latency to answer all their questions, and they do not know which LLMs to choose for each question to meet their accuracy and long term budget requirements. To navigate this rich design space, we propose TREACLE (underlineThrifty underlineReasoning via underlineContext-Aware underlineLLM and Prompt Sunderlineelection), a reinforcement learning policy that jointly selects the model and prompting scheme while respecting the user's monetary cost and latency constraints. TREACLE uses the problem context, including question text embeddings (reflecting the type or difficulty of a query) and the response history (reflecting the consistency of previous responses) to make smart decisions. Our evaluations on standard reasoning datasets (GSM8K, CSQA, and LLC) with various LLMs and prompts show that TREACLE enables cost savings of up to 85% compared to baselines, while maintaining high accuracy. Importantly, it provides the user with the ability to gracefully trade off accuracy for cost.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 12 of its 17 references that are in the map. First posted on arXiv 17 Apr 2024.
Builds on
12 of 17 references.
References · 12
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2023Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMscited by 946
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
- 2022Teaching Models to Express Their Uncertainty in Wordscited by 731
- 2023MetaMath: Bootstrap Your Own Mathematical Questions for Large Language Modelscited by 724
- 2022Prompting GPT-3 To Be Reliablecited by 258
- 2018Complex Sequential Question Answering: Towards Learning to Converse Over Linked Question Answer Pairs with a Knowledge Graphcited by 67
Built on by
Citing papers per year: 2024: 2; 2025: 5; 2026: 4.
11 papers.
- 2024What is the Role of Small Models in the LLM Era: A Surveycited by 41
- 2025Device-Cloud Collaborative LLM Inference with Multi-Modal, Multi-Task, Multi-Turn Conversationscited by 13
- 2024Privacy-preserved LLM Cascade via CoT-enhanced Policy Learningcited by 8
- 2025BAMAS: Structuring Budget-Aware Multi-Agent Systemscited by 5
- 2025Bridging On-Device and Cloud LLMs for Collaborative Reasoning: A Unified Methodology for Local Routing and Post-Trainingcited by 4
- 2026Is Escalation Worth It? On the Depth of LLM Cascadescited by 3
- 2025Smaller, Smarter, Closer: The Edge of Collaborative Generative AIcited by 2
- 2025CoLM: Collaborative Large Models via A Client-Server Paradigmcited by 0
- 2026INFRAMIND: Infrastructure-Aware Multi-Agent Orchestrationcited by 0
- 2026RLCascadeRouter: Quality-Estimator-Free Cascade Routing via Reinforcement Learningcited by 0
- 2026LIMBO: Lifelong Inference-Time Memory and Budget Optimization for LLM Agentscited by 0
- 2026LIMBO: Lifelong Inference-Time Memory and Budget Optimization for LLM Agents12 Sep 2026
- 2026RLCascadeRouter: Quality-Estimator-Free Cascade Routing via Reinforcement Learning16 Aug 2026
- 2026INFRAMIND: Infrastructure-Aware Multi-Agent Orchestration9 Jun 2026
- 2026Is Escalation Worth It? On the Depth of LLM Cascades7 May 2026
- 2025BAMAS: Structuring Budget-Aware Multi-Agent Systems26 Nov 2025
- 2025CoLM: Collaborative Large Models via A Client-Server Paradigm10 Nov 2025
- 2025Bridging On-Device and Cloud LLMs for Collaborative Reasoning: A Unified Methodology for Local Routing and Post-Training28 Sep 2025
- 2025Smaller, Smarter, Closer: The Edge of Collaborative Generative AI22 May 2025
- 2025Device-Cloud Collaborative LLM Inference with Multi-Modal, Multi-Task, Multi-Turn Conversations16 Feb 2025
- 2024Privacy-preserved LLM Cascade via CoT-enhanced Policy Learning10 Oct 2024
- 2024What is the Role of Small Models in the LLM Era: A Survey10 Sep 2024