Lune

ICLR2024Top-tier venue

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

Dujian Ding, Ankur Mallick, Chi Wang, Robert Sim, Subhabrata Mukherjee, Victor Rühle, Laks V. S. Lakshmanan, Ahmed Hassan Awadallah

Abstract

Large language models (LLMs) excel in most NLP tasks but also require expensive cloud servers for deployment due to their size, while smaller models that can be deployed on lower cost (e.g., edge) devices, tend to lag behind in terms of response quality. Therefore in this work we propose a hybrid inference approach which combines their respective strengths to save cost and maintain quality. Our approach uses a router that assigns queries to the small or large model based on the predicted query difficulty and the desired quality level. The desired quality level can be tuned dynamically at test time to seamlessly trade quality for cost as per the scenario requirements. In experiments our approach allows us to make up to 40% fewer calls to the large model, with no drop in response quality.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

78 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • MatFormer: Nested Transformer for Elastic Inference cites Fast Inference from Transformers via Speculative Decoding
  • Universal Model Routing for Efficient LLM Inference cites Measuring Massive Multitask Language Understanding
  • Universal Model Routing for Efficient LLM Inference cites MatFormer: Nested Transformer for Elastic Inference
  • Universal Model Routing for Efficient LLM Inference cites BARTScore: Evaluating Generated Text as Text Generation
  • Universal Model Routing for Efficient LLM Inference cites AutoMix: Automatically Mixing Language Models
  • Universal Model Routing for Efficient LLM Inference cites Fast Inference from Transformers via Speculative Decoding
  • Universal Model Routing for Efficient LLM Inference cites RouterDC: Query-Based Router by Dual Contrastive Learning for Assembling Large Language Models
  • Universal Model Routing for Efficient LLM Inference cites The Curious Case of Neural Text Degeneration
  • AutoMix: Automatically Mixing Language Models cites Deberta: decoding-Enhanced Bert with Disentangled Attention
  • RouterDC: Query-Based Router by Dual Contrastive Learning for Assembling Large Language Models cites Measuring Massive Multitask Language Understanding
  • RouterDC: Query-Based Router by Dual Contrastive Learning for Assembling Large Language Models cites Deberta: decoding-Enhanced Bert with Disentangled Attention
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers78

  1. AutoMix: Automatically Mixing Language ModelsPranjal Aggarwal, Aman Madaan, Ankit Anand, Srividya Pranavi Potharaju et al.NeurIPS 2024 · 145 citations
  2. RouterDC: Query-Based Router by Dual Contrastive Learning for Assembling Large Language ModelsShuhao Chen, Weisen Jiang, Baijiong Lin, James T. Kwok et al.NeurIPS 2024 · 113 citations
  3. DynamoLLM: Designing LLM Inference Clusters for Performance and Energy EfficiencyJovan Stojkovic, Chaojie Zhang, Íñigo Goiri, Josep Torrellas et al.HPCA 2025 · 106 citations
  4. Universal Model Routing for Efficient LLM InferenceWittawat Jitkrittum, Harikrishna Narasimhan, Ankit Singh Rawat, Jeevesh Juneja et al.ICLR 2026 · 99 citations
  5. MatFormer: Nested Transformer for Elastic InferenceDevvrit, Sneha Kudugunta, Aditya Kusupati, Tim Dettmers et al.NeurIPS 2024 · 97 citations

Builds on11

  1. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
  2. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
  3. Deberta: decoding-Enhanced Bert with Disentangled AttentionPengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu ChenICLR 2021 · 3,729 citations
  4. Fast Inference from Transformers via Speculative DecodingYaniv Leviathan, Matan Kalman, Yossi MatiasICML 2023 · 1,472 citations
  5. BARTScore: Evaluating Generated Text as Text GenerationWeizhe Yuan, Graham Neubig, Pengfei LiuNeurIPS 2021 · 1,143 citations

Related papers

  1. BEST-Route: Adaptive LLM Routing with Test-Time Optimal ComputeDujian Ding, Ankur Mallick, Shaokun Zhang, Chi Wang et al.ICML 2025
  2. RouteLLM: Learning to Route LLMs from Preference DataIsaac Ong, Amjad Almahairi, Vincent Wu, Wei-Lin Chiang et al.ICLR 2025
  3. Firewall Routing: Blocking Leads to Better Hybrid Inference for LLMsRunyu Peng, Yunhua Zhou, Kai Lv, Yang Gao et al.EMNLP 2025
  4. EC-RAG: Towards Efficient Edge-Cloud Retrieval-Augmented Generation SystemsLiang Wang, Kai Wang, Ranjun Jia, Kai Lu et al.ICDE 2026
  5. Selective Deferred Routing: Enabling Cost-Efficient Collaboration between Local SLMs and Remote LLMsQijun Miao, Zhixuan FangICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines