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

AdaSwitch: 一种在小型和大型代理之间自适应切换以实现有效的云-本地协作学习方法

AdaSwitch: Adaptive Switching between Small and Large Agents for Effective Cloud-Local Collaborative Learning

State Key Laboratory of General Artificial Intelligence, Peking University, Beijing, China(一般人工智能国家重点实验室,北京大学,北京,中国);School of Intelligence Science and Technology, Peking University(智能科学与技术学院,北京大学);East China Normal University(东华大学);Chinese Academy of Sciences(中国科学院);Baidu Inc(百度公司);Beijing Institute of Technology(北京理工大学);University of Birmingham(伯明翰大学)

Hao Sun, Jiayi Wu, Hengyi Cai, Xiaochi Wei, Yue Feng, Bo Wang, Shuaiqiang Wang, Yan Zhang, Dawei Yin

AI总结:

本文提出了一种新的LLM使用范式,通过自适应机制在云端和本地部署的LLM之间切换,以提高任务完成性能和效率,通过本地代理处理简单推理步骤,云代理处理复杂推理步骤,实验表明该方法在多个基准测试中有效提升了本地代理的性能。

摘要:

近年来,大型语言模型(LLMs)的发展取得了显著进展。用户面临一个选择:使用基于云的LLMs来获得生成质量,或部署本地LLMs以降低计算成本。前者通常成本高且效率低,而后者通常无法满足需要深入思考过程的推理步骤的性能要求。在本工作中,我们提出了一种新的LLM使用范式,以促进大型云端LLMs和较小本地部署LLMs的协作操作。我们的框架包含两个主要模块:本地代理由相对较小的LLM实例化,处理较简单的推理步骤;云代理配备较大的LLM,处理更复杂的推理步骤。这种协作处理通过自适应机制实现,其中本地代理会内省并主动向云代理寻求帮助,从而有效整合本地部署和云端LLMs的优势,显著提升任务完成性能和效率。我们评估了AdaSwitch在7个基准测试上的表现,涵盖数学推理和复杂问答,使用不同类型的LLMs实例化本地和云代理。实验结果表明,AdaSwitch有效提升了本地代理的性能,有时在计算开销远低于云代理的情况下,也能取得具有竞争力的结果。

英文摘要:

Recent advancements in large language models (LLMs) have been remarkable. Users face a choice between using cloud-based LLMs for generation quality and deploying local-based LLMs for lower computational cost. The former option is typically costly and inefficient, while the latter usually fails to deliver satisfactory performance for reasoning steps requiring deliberate thought processes. In this work, we propose a novel LLM utilization paradigm that facilitates the collaborative operation of large cloud-based LLMs and smaller local-deployed LLMs. Our framework comprises two primary modules: the local agent instantiated with a relatively smaller LLM, handling less complex reasoning steps, and the cloud agent equipped with a larger LLM, managing more intricate reasoning steps. This collaborative processing is enabled through an adaptive mechanism where the local agent introspectively identifies errors and proactively seeks assistance from the cloud agent, thereby effectively integrating the strengths of both locally-deployed and cloud-based LLMs, resulting in significant enhancements in task completion performance and efficiency. We evaluate AdaSwitch across 7 benchmarks, ranging from mathematical reasoning and complex question answering, using various types of LLMs to instantiate the local and cloud agents. The empirical results show that AdaSwitch effectively improves the performance of the local agent, and sometimes achieves competitive results compared to the cloud agent while utilizing much less computational overhead.

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

↑