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

SWARM-LLM:基于边缘的小语言模型的协同推理

SWARM-LLM: Collaborative Inference for Edge-based Small Language Models

School of Computing, Mathematics and Engineering, Charles Sturt University(查尔斯史都华大学计算、数学与工程学院)

Mostafa Dahshan, Quazi Mamun, Tanmoy Debnath

AI总结:

提出SWARM-LLM路由协作层,通过轻量级不确定性估计和安全信号,在边缘SLM、对等SLM协作和云端FM之间动态选择查询处理方式,实现精度、延迟和成本的平衡。

摘要:

大型语言模型(LLM)在广泛任务上表现出色,但通常部署在集中式云基础设施上,带来显著的带宽、延迟和隐私成本。相比之下,小语言模型(SLM)可在边缘设备上运行,但能力和鲁棒性有限。本文介绍SWARM-LLM,一个路由和协作层,协调一小群边缘托管的SLM,并可选择性地使用云端基础模型(FM)。SWARM-LLM针对每个查询,通过轻量级不确定性估计和安全信号,决定是本地回答、与对等SLM协作,还是“召唤”云端FM。我们在商用硬件上实现了一个工作原型,包含三个异构SLM和一个通过API访问的70B参数云端FM,并在包含简单、困难和安全导向查询的受控研究负载上进行了评估。结果表明,与纯边缘部署相比,SWARM-LLM在困难问题上显著提升了性能,同时将云端使用限制在约四分之一的查询中,展示了在注重隐私的边缘部署中精度、延迟和成本之间的实际权衡。实现代码可在GitHub仓库https://github.com/mdahshan/swarm_llm获取。

英文摘要:

Large language models (LLMs) provide strong performance across a wide range of tasks but are typically hosted on centralised cloud infrastructure, incurring significant bandwidth, latency, and privacy costs. In contrast, small language models (SLMs) can run on edge devices but have limited capability and robustness. This paper introduces SWARM-LLM, a routing and collaboration layer that coordinates a small swarm of edge-hosted SLMs with an optional cloud foundation model (FM). SWARM-LLM decides, for each query, whether to answer locally, collaborate with peer SLMs, or "summon" a cloud FM, using lightweight uncertainty estimates and safety signals. We implement a working prototype on commodity hardware with three heterogeneous SLMs and a 70B-parameter cloud FM accessed via API, and evaluate it on a controlled study workload of easy, hard, and safety-oriented queries. Our results show that SWARM-LLM substantially improves performance on hard questions compared to an edge-only deployment, while limiting cloud usage to roughly one quarter of queries, illustrating a practical trade-off between accuracy, latency, and cost for privacy-conscious edge deployments. The implementation code is available at the GitHub repository https://github.com/mdahshan/swarm_llm.

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

↑