Dynamic LLM Routing and Selection based on User Preferences: Balancing Performance, Cost, and Ethics

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Piskala, Deepak Babu, Raajaa, Vijay, Mishra, Sachin, Bozza, Bruno
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915168080887808
author Piskala, Deepak Babu
Raajaa, Vijay
Mishra, Sachin
Bozza, Bruno
author_facet Piskala, Deepak Babu
Raajaa, Vijay
Mishra, Sachin
Bozza, Bruno
contents With the widespread deployment of large language models (LLMs) such as GPT4, BART, and LLaMA, the need for a system that can intelligently select the most suitable model for specific tasks while balancing cost, latency, accuracy, and ethical considerations has become increasingly important. Recognizing that not all tasks necessitate models with over 100 billion parameters, we introduce OptiRoute, an advanced model routing engine designed to dynamically select and route tasks to the optimal LLM based on detailed user-defined requirements. OptiRoute captures both functional (e.g., accuracy, speed, cost) and non-functional (e.g., helpfulness, harmlessness, honesty) criteria, leveraging lightweight task analysis and complexity estimation to efficiently match tasks with the best-fit models from a diverse array of LLMs. By employing a hybrid approach combining k-nearest neighbors (kNN) search and hierarchical filtering, OptiRoute optimizes for user priorities while minimizing computational overhead. This makes it ideal for real-time applications in cloud-based ML platforms, personalized AI services, and regulated industries.
format Preprint
id arxiv_https___arxiv_org_abs_2502_16696
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Dynamic LLM Routing and Selection based on User Preferences: Balancing Performance, Cost, and Ethics
Piskala, Deepak Babu
Raajaa, Vijay
Mishra, Sachin
Bozza, Bruno
Machine Learning
Artificial Intelligence
With the widespread deployment of large language models (LLMs) such as GPT4, BART, and LLaMA, the need for a system that can intelligently select the most suitable model for specific tasks while balancing cost, latency, accuracy, and ethical considerations has become increasingly important. Recognizing that not all tasks necessitate models with over 100 billion parameters, we introduce OptiRoute, an advanced model routing engine designed to dynamically select and route tasks to the optimal LLM based on detailed user-defined requirements. OptiRoute captures both functional (e.g., accuracy, speed, cost) and non-functional (e.g., helpfulness, harmlessness, honesty) criteria, leveraging lightweight task analysis and complexity estimation to efficiently match tasks with the best-fit models from a diverse array of LLMs. By employing a hybrid approach combining k-nearest neighbors (kNN) search and hierarchical filtering, OptiRoute optimizes for user priorities while minimizing computational overhead. This makes it ideal for real-time applications in cloud-based ML platforms, personalized AI services, and regulated industries.
title Dynamic LLM Routing and Selection based on User Preferences: Balancing Performance, Cost, and Ethics
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2502.16696