atlas

Research map / Large language models / Reasoning and chain of thought

Efficient Contextual LLM Cascades through Budget-Constrained Policy Learning

NeurIPS 2024 · Large language models › Reasoning and chain of thought · approach: Routing, pruning and distillation for reasoning · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TREACLE, a DQN-based budget-constrained RL policy that jointly chooses LLM and prompt per question with re-querying, using query embeddings and response-consistency state features, cutting cost up to 85% on GSM8K, CSQA and LLC.

Problem

Answering a stream of reasoning questions with multiple LLMs and prompt styles that differ in accuracy, monetary cost and latency, while respecting a long-term monetary and latency budget and not knowing which option is correct for each question.

Approach

Formulates LLM and prompt selection as a budget-constrained MDP (CMDP) solved by a DQN policy whose state includes question text embedding, response consistency across re-queries, token lengths, re-query counts, and normalized remaining budget; actions are return, re-query, or move to the next LLM-prompt pair in a list sorted by accuracy-to-cost ratio.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
adapt per-query latency estimate hourly (historical average) in budget denominator instead of fixed latency (ablation)TREACLE · GSM8K, time-varying API latency, $0.6 budgetaccuracy (%): 86.4 vs 76.1Helped
Re-querying disabled during training and testing (ablation)TREACLE and Calibrated Cascade · GSM8K, budget sweepaccuracyHurt
Ordering LLM-prompt options by accuracy-to-cost ratio in cascadeTREACLE action space · GSM8Kcost minimization (theoretical)No clear effect
Llama-2-7b/13b replaced by fine-tuned MetaMath modelsTREACLE · GSM8K, new LLMsaccuracyHelped
Fine-tune DistilBERT accuracy estimator of FrugalGPT on new LLM trajectoriesFrugalGPT · GSM8K, new LLMs and pricesaccuracyNo clear effect
Fine-tune TREACLE on few samples of new LLM optionsTREACLE · GSM8K, new cheaper LLM optionsadaptation sample countHelped
Re-querying with consistency-aware policy (2-consistency) vs. response consistency featureTREACLE learned policy · GSM8K, $0.30 budget, alpha=1/20fraction of responses 2-consistentNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K CSQA LLC

Benchmarks: GSM8K CSQA LLC

Metrics: accuracy monetary cost latency

Baselines: FrugalGPT Calibrated cascade Majority Voting Offline knapsack Online knapsack Single model

Builds on: FrugalGPT Deep Q-Network Chain-of-thought prompting AutoMix Mixture of Thought

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy