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

Minions:端侧与云端语言模型之间的成本高效协作

Minions: Cost-efficient Collaboration Between On-device and Cloud Language Models

Stanford University(斯坦福大学);Together AI

Avanika Narayan, Dan Biderman, Sabri Eyuboglu, Avner May, Scott Linderman, James Zou, Christopher Re

AI总结:

本研究提出MinionS,一种端侧与云端语言模型协作框架,通过远程模型分解任务为子任务并在本地并行执行,在保持97.9%性能的同时平均降低5.7倍云端推理成本。

摘要:

我们研究了一种新兴的设置,其中一个小型、端侧语言模型(LM)能够访问本地数据,并与前沿的云端托管LM通信,以解决涉及金融、医疗和科学推理的长期文档的真实世界任务。本地-远程协作能否在保持质量的同时降低云端推理成本?首先,我们考虑一种朴素的协作协议,其中本地和远程模型仅通过来回聊天进行交互。由于只有本地模型读取完整上下文,该协议实现了30.4倍的远程成本降低,但仅恢复了前沿模型性能的87%。我们识别出该协议的两个关键限制:本地模型难以(1)遵循远程模型的多步指令,以及(2)在长上下文上进行推理。基于这些观察,我们研究了一种该协议的扩展,称为MinionS,其中远程模型将任务分解为更短文档块上的较容易子任务,这些子任务在本地并行执行。MinionS平均降低了5.7倍的成本,同时恢复了远程模型单独性能的97.9%。我们的分析揭示了影响本地-远程系统中成本与性能权衡的几个关键设计选择。

英文摘要:

We investigate an emerging setup in which a small, on-device language model (LM) with access to local data communicates with a frontier, cloud-hosted LM to solve real-world tasks involving financial, medical, and scientific reasoning over long documents. Can a local-remote collaboration reduce cloud inference costs while preserving quality? First, we consider a naive collaboration protocol where the local and remote models simply chat back and forth. Because only the local model reads the full context, this protocol achieves a 30.4x reduction in remote costs, but recovers only 87% of the performance of the frontier model. We identify two key limitations of this protocol: the local model struggles to (1) follow the remote model's multi-step instructions and (2) reason over long contexts. Motivated by these observations, we study an extension of this protocol, coined MinionS, in which the remote model decomposes the task into easier subtasks over shorter chunks of the document, that are executed locally in parallel. MinionS reduces costs by 5.7x on average while recovering 97.9% of the performance of the remote model alone. Our analysis reveals several key design choices that influence the trade-off between cost and performance in local-remote systems.

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

↑