arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.09407cs.CLcs.AIcs.LG
收藏

CAMPHOR:面向设备端多输入规划与高阶推理的协作智能体

CAMPHOR: Collaborative Agents for Multi-input Planning and High-Order Reasoning On Device

Stanford University(斯坦福大学);Apple(苹果公司)

Yicheng Fu, Raviteja Anantha, Jianpeng Cheng

AI总结:

本文提出CAMPHOR,一个设备端SLM多智能体框架,通过分层架构、参数共享和提示压缩处理多输入与高阶推理,微调后的SLM智能体在任务完成F1上比闭源LLM高约35%,同时无需服务器通信并增强隐私。

摘要:

尽管服务器端的大型语言模型(LLM)在函数调用和复杂推理方面表现出色,但在设备端直接部署小型语言模型(SLM)带来了改善延迟和隐私的机会,同时也引入了准确性和内存方面的独特挑战。我们引入了CAMPHOR,这是一个创新的设备端SLM多智能体框架,旨在处理多个用户输入并在本地对个人上下文进行推理,从而确保隐私得到维护。CAMPHOR采用分层架构,其中一个高阶推理智能体负责分解复杂任务,并协调负责个人上下文检索、工具交互和动态计划生成的专家智能体。通过在智能体间实现参数共享并利用提示压缩,我们显著减小了模型规模、延迟和内存使用。为了验证我们的方法,我们提出了一个新颖的数据集,用于捕获以个性化移动助手用例为中心的多智能体任务轨迹。我们的实验表明,微调后的SLM智能体不仅在任务完成F1上比闭源LLM高出约35%,而且消除了服务器与设备间通信的需求,同时增强了隐私。

英文摘要:

While server-side Large Language Models (LLMs) demonstrate proficiency in function calling and complex reasoning, deploying Small Language Models (SLMs) directly on devices brings opportunities to improve latency and privacy but also introduces unique challenges for accuracy and memory. We introduce CAMPHOR, an innovative on-device SLM multi-agent framework designed to handle multiple user inputs and reason over personal context locally, ensuring privacy is maintained. CAMPHOR employs a hierarchical architecture where a high-order reasoning agent decomposes complex tasks and coordinates expert agents responsible for personal context retrieval, tool interaction, and dynamic plan generation. By implementing parameter sharing across agents and leveraging prompt compression, we significantly reduce model size, latency, and memory usage. To validate our approach, we present a novel dataset capturing multi-agent task trajectories centered on personalized mobile assistant use-cases. Our experiments reveal that fine-tuned SLM agents not only surpass closed-source LLMs in task completion F1 by~35\% but also eliminate the need for server-device communication, all while enhancing privacy.

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

↑