MESS+:在具有服务水平保证的模型动物园中动态学习的推理时LLM路由
MESS+: Dynamically Learned Inference-Time LLM Routing in Model Zoos with Service Level Guarantees
AI总结:
MESS+是一种随机优化算法,通过实时学习LLM满意度概率并求解每请求优化问题,在保证SLA合规的同时实现成本最优路由,平均节省2倍成本。
摘要:
开放权重的大型语言模型(LLM)动物园提供了访问众多高质量模型的途径,但为特定任务选择合适的模型仍然具有挑战性,且需要专业技术知识。大多数用户只希望获得事实正确、安全且令人满意的回答,而不关心模型的技术细节,而推理服务提供商则优先考虑降低运营成本。这些相互竞争的利益通常通过服务水平协议(SLA)来协调,该协议保证最低服务质量。我们提出了MESS+,一种随机优化算法,用于在提供严格的SLA合规保证的同时,实现成本最优的LLM请求路由。MESS+在用户与系统交互时实时学习LLM的请求满意度概率,并基于此通过求解每个请求的优化问题来做出模型选择决策。我们的算法创新性地结合了虚拟队列和请求满意度预测,并提供了关于成本最优性和约束满足的理论分析。在广泛的最先进的LLM基准测试中,与现有的LLM路由技术相比,MESS+平均实现了2倍的成本节省。
英文摘要:
Open-weight large language model (LLM) zoos provide access to numerous high-quality models, but selecting the appropriate model for specific tasks remains challenging and requires technical expertise. Most users simply want factually correct, safe, and satisfying responses without concerning themselves with model technicalities, while inference service providers prioritize minimizing operating costs. These competing interests are typically mediated through service level agreements (SLAs) that guarantee minimum service quality. We introduce MESS+, a stochastic optimization algorithm for cost-optimal LLM request routing while providing rigorous SLA compliance guarantees. MESS+ learns request satisfaction probabilities of LLMs in real-time as users interact with the system, based on which model selection decisions are made by solving a per-request optimization problem. Our algorithm includes a novel combination of virtual queues and request satisfaction prediction, along with a theoretical analysis of cost optimality and constraint satisfaction. Across a wide range of state-of-the-art LLM benchmarks, MESS+ achieves an average of $2\times$ cost savings compared to existing LLM routing techniques.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。