arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2504.00434cs.LG
收藏

HERA:面向成本高效AI智能体的混合边缘-云资源分配

HERA: Hybrid Edge-cloud Resource Allocation for Cost-Efficient AI Agents

University of Virginia(弗吉尼亚大学);Microsoft(微软公司)

Shiyi Liu, Haiying Shen, Shuai Che, Mahdi Ghandi, Mingqin Li

AI总结:

本文提出轻量级调度器AIMS,通过策略性分配AI智能体子任务至本地SLM或云端LLM,在保持准确度的同时显著降低成本并提升本地模型使用率。

摘要:

在AI领域,GPT-4等大语言模型(LLM)是AI智能体运行的核心,主要在云端运行,产生高昂的运营成本。随着基于本地的小语言模型(SLM)准确度不断提高,仅依赖云端处理的必要性正受到重新审视。AI智能体对用户请求的响应由一系列子任务或迭代组成。现有方法仅在SLM和LLM之间分配单个请求以确保输出相似,但在AI智能体场景中采用此方法分配每个子任务并不有效,因为SLM会输出不同的后续子任务,从而影响最终输出的准确度。本文首先进行实验分析以理解AI智能体操作的特征。基于我们的发现,我们提出了自适应迭代级模型选择器(AIMS),这是一种轻量级调度器,用于在基于本地的SLM和基于云端的LLM之间自动划分AI智能体的子任务。AIMS考虑了不同的子任务特征,并策略性地决定每个子任务的执行位置,以在达到准确度水平的同时尽可能多地使用SLM。实验结果表明,与HybridLLM相比,AIMS将准确度提高了9.1%,SLM使用率提高了10.8%。与仅云端LLM方法相比,它将45.67%的子任务卸载到本地SLM,同时平均达到相似的准确度。

英文摘要:

In the realm of AI, large language models (LLMs) like GPT-4, central to the operation of AI agents, predominantly operate in the cloud, incurring high operational costs. With local-based small language models (SLMs) becoming more accurate, the necessity of cloud-exclusive processing is being reconsidered. An AI agent's response to a user's request comprises a series of subtasks or iterations. Existing approaches only allocate a single request between SLM and LLM to ensure their outputs are similar, but adopting this approach in the AI agent scenario for assigning each subtask is not effective since SLM will output a different subsequent subtask, which affects the accuracy of the final output. In this paper, we first conduct experimental analysis to understand the features of AI agent operations. Leveraging our findings, we propose the Adaptive Iteration-level Model Selector (AIMS), a lightweight scheduler to automatically partition AI agent's subtasks between local-based SLM and cloud-based LLM. AIMS considers the varying subtask features and strategically decides the location for each subtask in order to use SLM as much as possible while attaining the accuracy level. Our experimental results demonstrate that AIMS increases accuracy by up to 9.1% and SLM usage by up to 10.8% compared to HybridLLM. It offloads 45.67% of subtasks to a local SLM while attaining similar accuracy on average compared with the cloud-only LLM approach.

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

↑