arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.03632cs.SE
收藏

CALM:一种面向服务质量的自适应协调方法,用于基于小型语言模型的系统中路由

CALM: A Self-Adaptive Orchestration Approach for QoS-Aware Routing in Small Language Model based Systems

IIIT Hyderabad(印度信息技术研究所海德拉巴分校)

Hemang Jain, Divyansh Pandey, Karthik Vaidhyanathan

AI总结:

CALM通过自适应协调机制优化小型语言模型路由,降低延迟和能耗,提升服务质量

摘要:

人工智能系统面临各种类型的运行不确定性,从动态工作负载、资源需求、模型漂移等。这些不确定性对整体服务质量(QoS)有重大影响。这在语言模型(LM)启用的系统中尤为明显,因为令牌生成的自回归性质引入了延迟、能耗和响应质量的变异性。这些系统由大语言模型(LLM)驱动,如果是本地运行则资源消耗大,如果是通过API使用则会引发隐私和成本问题。虽然部署小型语言模型(SLM)可以节省资源,但往往无法满足现实世界中多样性和规模的需求。为此,我们认为,与其依赖单一SLM,不如利用具有专门优势的SLM协调舰队,使系统能够动态适应变化的上下文和工作负载模式。然而,要实现这种方法的全部潜力,需要智能协调和持续适应。为此,我们引入了CALM,一种基于MAPE-K的自适应协调机制。我们的方法持续监控用户查询,分析SLM的QoS指标,确定最佳SLM进行使用,将查询路由到识别的SLM并进一步增强效果和效率,利用缓存和调度来决定应保留在内存中的SLM。我们的评估显示,与单一LLM基线相比,CALM将延迟减少了约40%,能耗减少了50%,同时保持了领域特定任务性能。

英文摘要:

AI-enabled systems are subjected to various types of runtime uncertainties, ranging from dynamic workloads, resource requirements, model drift, etc. These uncertainties have a big impact on the overall Quality of Service (QoS). This is particularly true in the case of Language Model (LM) enabled systems where the autoregressive nature of token generation introduces variability in latency, energy usage and response quality. These systems, powered by LLMs, are either resource-intensive (if run on-prem) or raise privacy/cost concerns (if leveraged using APIs). While deploying a Small Language Model (SLM) can be resource-efficient, it often falls short in addressing the diversity and scale of real-world requirements. To this, we argue that, rather than relying on any one SLM, leveraging a coordinated fleet of SLMs, each with specialized strengths can enable systems to dynamically adapt to shifting contexts and workload patterns. However, realizing the full potential of such an approach demands intelligent orchestration and continuous adaptation. To this end, we introduce CALM , a self-adaptive orchestration mechanism based on MAPE-K. Our approach continuously monitors user queries, analyzes the QoS metrics of the SLMs, identifies the optimal SLM to be used, routes the query to the identified SLM and further to enhance the effectiveness and efficiency, leverages caching and scheduling to decide the SLMs to be kept in memory. Our evaluation shows that CALM reduces latency by approximately 40% and energy consumption by 50%, while preserving domain-specific task performance when compared to single-LLM baselines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑