paper-with-me

홈 › Papers

Routoo: Learning to Route to Large Language Models Effectively

2024-01-25 · Alireza Mohammadshahi, Arshad Rafiq Shaikh, Majid Yazdani

LLMs with superior response quality--particularly larger or closed-source models--often come with higher inference costs, making their deployment inefficient and costly. Meanwhile, developing foundational LLMs from scratch is becoming increasingly resource-intensive and impractical for many applications. To address the challenge of balancing quality and cost, we introduce Routoo, an architecture designed to optimize the selection of LLMs for specific prompts based on performance, cost, and efficiency. Routoo provides controllability over the trade-off between inference cost and quality, enabling significant reductions in inference costs for a given quality requirement. Routoo comprises two key components: a performance predictor and cost-aware selector. The performance predictor is a lightweight LLM that estimates the expected performance of various underlying LLMs on a given prompt without executing them. The cost-aware selector module then selects the most suitable model based on these predictions and constraints such as cost and latency, significantly reducing inference costs for the same quality. We evaluated Routoo using the MMLU benchmark across 57 domains employing open-source models. Our results show that Routoo matches the performance of the Mixtral 8x7b model while reducing inference costs by one-third. Additionally, by allowing increased costs, Routoo surpasses Mixtral's accuracy by over 5% at equivalent costs, achieving an accuracy of 75.9%. When integrating GPT4 into our model pool, Routoo nearly matches GPT4's performance at half the cost and exceeds it with a 25% cost reduction. These outcomes highlight Routoo's potential to significantly reduce inference costs without compromising quality, and even to establish new state-of-the-art results by leveraging the collective capabilities of multiple LLMs.

📄 PDF Abstract BibTeX arXiv:2401.13979

Code (1)

leeroo-ai/leeroo_orchestrator 공식 구현

Tasks

MMLUMulti-task Language Understanding

Similar Papers 제목 키워드 기반

Route Sparse Autoencoder to Interpret Large Language Models

2025-03-11 · Wei Shi, Sihang Li, Tao Liang, Mingyang Wan 외

Mechanistic interpretability of large language models (LLMs) aims to uncover the internal processes of information propagation and reasoning. Sparse autoencoders (SAEs) have demonstrated promise in this domain by extract…

AutoMix: Automatically Mixing Language Models

2023-10-19 · Pranjal Aggarwal, Aman Madaan, Ankit Anand, Srividya Pranavi Potharaju 외

Large language models (LLMs) are now available from cloud API providers in various sizes and configurations. While this diversity offers a broad spectrum of choices, effectively leveraging the options to optimize computa…

Diversity

DiSRouter: Distributed Self-Routing for LLM Selections

2025-10-22 · Hang Zheng, Hongshen Xu, Yongkai Lin, Shuai Fan 외 arxiv

The proliferation of Large Language Models (LLMs) has created a diverse ecosystem of models with highly varying performance and costs, necessitating effective query routing to balance performance and expense. Current rou…

Analytic Subspace Routing: How Recursive Least Squares Works in Continual Learning of Large Language Model

2025-03-17 · Kai Tong, Kang Pan, Xiao Zhang, Erli Meng 외

Large Language Models (LLMs) possess encompassing capabilities that can process diverse language-related tasks. However, finetuning on LLMs will diminish this general skills and continual finetuning will further cause se…

Continual LearningLanguage ModelingLanguage ModellingLarge Language Model

MLLM-Routed Heterogeneous Ensembles for Robust Cross-Dataset Image Classification

2026-08-13 · Daniel Perkins, John Squires, Janou Milligan, Chandra Raskoti 외 arxiv

Modern image classification models excel when trained on single task-specific datasets but often struggle to generalize across domains and difficulty levels. We propose ARMDIL, an Adaptive Router for Multi-Domain Image c…

Image Classification