PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
July 15, 20242 citationsOpen Access

MetaLLM: A High-performant and Cost-efficient Dynamic Framework for Wrapping LLMs

View Full Paper
QNQuang H. NguyenDHDuy C. HoangJDJuliette Decugis

Key Points

Key points are not available for this paper at this time.

Abstract

The rapid progress in machine learning (ML) has brought forth many large language models (LLMs) that excel in various tasks and areas. These LLMs come with different abilities and costs in terms of computation or pricing. Since the demand for each query can vary, e.g., because of the queried domain or its complexity, defaulting to one LLM in an application is not usually the best choice, whether it is the biggest, priciest, or even the one with the best average test performance. Consequently, picking the right LLM that is both accurate and cost-effective for an application remains a challenge. In this paper, we introduce MetaLLM, a framework that dynamically and intelligently routes each query to the optimal LLM (among several available LLMs) for classification tasks, achieving significantly improved accuracy and cost-effectiveness. By framing the selection problem as a multi-armed bandit, MetaLLM balances prediction accuracy and cost efficiency under uncertainty. Our experiments, conducted on popular LLM platforms such as OpenAI's GPT models, Amazon's Titan, Anthropic's Claude, and Meta's LLaMa, showcase MetaLLM's efficacy in real-world scenarios, laying the groundwork for future extensions beyond classification tasks.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Nguyen et al. (2024) studied this question.

synapsesocial.com/papers/68e6046bb6db643587597b52https://doi.org/10.48550/arxiv.2407.10834
Ask AI
Helpful
Bookmark
Share
View Full Paper