paper-with-me

홈 › Papers

A Unified Approach to Routing and Cascading for LLMs

2024-10-14 · Jasper Dekoninck, Maximilian Baader, Martin Vechev

The widespread applicability of large language models (LLMs) has increased the availability of many fine-tuned models of various sizes targeting specific tasks. Given a set of such specialized models, to maximize overall performance, it is important to figure out the optimal strategy for selecting the right model for a given user query. An effective strategy could drastically increase overall performance and even offer improvements over a single large monolithic model. Existing approaches typically fall into two categories: routing, where a single model is selected for each query, and cascading, which runs a sequence of increasingly larger models until a satisfactory answer is obtained. However, both have notable limitations: routing commits to an initial model without flexibility, while cascading requires executing every model in sequence, which can be inefficient. Additionally, the conditions under which these strategies are provably optimal remain unclear. In this work, we derive optimal strategies for both routing and cascading. Building on this analysis, we propose a novel approach called cascade routing, which combines the adaptability of routing with the cost-efficiency of cascading. Our experiments demonstrate that cascade routing consistently outperforms both routing and cascading across a variety of settings, improving both output quality and lowering computational cost, thus offering a unified and efficient solution to the model selection problem.

📄 PDF Abstract BibTeX arXiv:2410.10347

Code (0)

등록된 구현이 없습니다.

Tasks

Model Selection

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

Dynamic Model Routing and Cascading for Efficient LLM Inference: A Survey

2026-02-23 · Yasmin Moslem, John D. Kelleher arxiv

The rapid growth of large language models (LLMs) with diverse capabilities, costs, and domains has created a critical need for intelligent model selection at inference time. While smaller models suffice for routine queri…

Reinforcement Learning

Pay for Hints, Not Answers: LLM Shepherding for Cost-Efficient Inference

2026-01-29 · Ziming Dong, Hardik Sharma, Evan O'Toole, Jaya Prakash Champati 외 arxiv

Large Language Models (LLMs) deliver state-of-the-art performance on complex reasoning tasks, but their inference costs limit deployment at scale. Small Language Models (SLMs) offer dramatic cost savings yet lag substant…

Mathematical ReasoningCode Generation

Routing, Cascades, and User Choice for LLMs

2026-02-10 · Rafid Mahmood arxiv

To mitigate the trade-offs between performance and costs, LLM providers route user tasks to different models based on task difficulty and latency. We study the effect of LLM routing with respect to user behavior. We prop…

SATER: A Self-Aware and Token-Efficient Approach to Routing and Cascading

2025-10-04 · Yuanzhe Shen, Yide Liu, Zisu Huang, Ruicheng Yin 외 arxiv

Large language models (LLMs) demonstrate remarkable performance across diverse tasks, yet their effectiveness frequently depends on costly commercial APIs or cloud services. Model selection thus entails a critical trade-…

Optimising Calls to Large Language Models with Uncertainty-Based Two-Tier Selection

2024-05-03 · Guillem Ramírez, Alexandra Birch, Ivan Titov

Researchers and practitioners operating on a limited budget face the cost-performance trade-off dilemma. The challenging decision often centers on whether to use a large LLM with better performance or a smaller one with …