atlas

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

Hybrid LLM: Cost-Efficient and Quality-Aware Query Routing

ICLR 2024 · Large language models › Reasoning and chain of thought · approach: Routing, pruning and distillation for reasoning · 7 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 a BERT-style (DeBERTa-v3-large) router that sends easy queries to a small LLM and hard ones to a large LLM, using probabilistic and transformed soft labels from BART-score quality gaps, to trade quality for cost at test time.

Problem

Serving every query with an expensive large LLM is costly, while small LLMs lag in response quality; a method is needed to route queries between small and large models with a tunable quality-cost tradeoff.

Approach

Train an encoder router to predict the probability that the small model's response is at least as good as the large model's (using sampled responses and BART-score quality gaps), with a data transformation that relaxes the threshold by t to fix label imbalance when the small model is much weaker; a single model call is made per query.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add probabilistic router training (soft labels from 10 sampled responses) instead of deterministic labelsrouter trained on Llama-2 (7b)/Llama-2 (13b) pair · MixInstruct small gap, 20% cost advantageBART score drop (%): 0.1 -> -0.1Helped
add data transformation (relaxed threshold t* labels) to probabilistic router (ablation)router on FLAN-t5 (800m)/Llama-2 (13b) large gap pair · MixInstruct large gap, 40% cost advantageBART score drop (%): 13.1 -> 10.3 vs r_probHelped
add data transformation to probabilistic routerrouter on Llama-2 (13b)/GPT-3.5-turbo pair · MixInstruct medium gap, 20% cost advantageBART score drop (%): 0.8 vs 0.8No clear effect
add data transformation to probabilistic router at low cost advantagerouter on Llama-2 (7b)/Llama-2 (13b) small gap pair · MixInstruct small gap, 10% cost advantageBART score drop (%): -0.1 (r_prob) vs 0.1 (r_trans)Hurt
probabilistic router vs deterministic router on medium gap pair at 40% cost advantagerouter on Llama-2 (13b)/GPT-3.5-turbo · MixInstruct medium gap, 40% cost advantageBART score drop (%): r_prob slightly outperforms r_detHelped
route queries to small model via router instead of all-at-largeLlama-2 (7b) routed with Llama-2 (13b) at 20% and 40% cost advantage · MixInstruct small gapBART score drop (%): up to 20% cost advantage with no drop (r_prob, r_trans)Helped
router-based routing with large quality gap (FLAN-t5 800m vs Llama-2 13b)r_det and r_prob routers · MixInstruct large gap, 40% cost advantageBART score drop (%): marginally better than randomNo clear effect
use BART-score-trained routers evaluated with GPT-4 score under high quality-gap correlationrouters trained on BART quality gaps · GPT-4 evaluation, high correlation (r=0.46)GPT-4 score performance drop: up to 1% drop at 20% cost advantage, 2.1% at 40%Helped
router DeBERTa-v3-large (300M) instead of LLM generation for routing decisionrouting overhead · latency measurementlatency (s): 0.036 s vs 0.46 s (FLAN-t5 800m) and 14.61 s (Llama-2 13b)Helped

Surprising findings

Limitations

Experimental setup

Datasets: MixInstruct

Benchmarks: MixInstruct

Metrics: BART score cost advantage performance drop GPT-4 score

Baselines: all-at-large all-at-small random routing

Builds on: DeBERTa-v3 BART score MixInstruct

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