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.
When Swarm Learning meets energy series data: A decentralized collaborative learning design based on blockchain
Southern University of Science and Technology(南方科技大学);Eastern Institute of Technology(东方理工大学);Ningbo Institute of Digital Twin(宁波数字孪生研究院);China University of Petroleum (Beijing)(中国石油大学(北京))
Communication-Efficient Collaborative LLM Inference over LEO Satellite Networks
Peking University Shenzhen Graduate School(北京大学深圳研究生院);Frontier Research Center, Pengcheng Laboratory(鹏城实验室前沿研究中心);Pengcheng Laboratory(鹏城实验室);Department of Electrical and Computer Engineering, University of Waterloo(滑铁卢大学电气与计算机工程系)
Collaborative Inference in DNN-based Satellite Systems with Dynamic Task Streams
State Key Laboratory of Networking and Switching Technology, Beijing University of Posts and Telecommunicatons(网络与交换技术国家重点实验室,北京邮电大学);Distributed System Group, TU Wien(分布式系统组,维也纳工业大学)
A Survey on Collaborative DNN Inference for Edge Intelligence
College of Electronic and Information Engineering, Nanjing University of Aeronautics and Astronautics(南京航空航天大学电子与信息工程学院);Department of Computing, The Hong Kong Polytechnic University(香港理工大学计算学系)
Petals: Collaborative Inference and Fine-tuning of Large Models
HSE University(高等经济大学);Yandex(扬德克斯);University of Washington(华盛顿大学);Hugging Face(拥抱脸);ENS Paris-Saclay(巴黎萨克雷高等师范学院);Yandex School of Data Analysis(扬德克斯数据分析学院)
CANS: Accelerating Multiuser Collaborative Edge Inference via Cooperative Autodidactic NeuroSurgeon
Harbin Institute of Technology Shenzhen(哈尔滨工业大学(深圳));Politecnico di Milano(米兰理工大学);Harbin Institute of Technology(哈尔滨工业大学);Fudan University(复旦大学);Shanghai Academy of Artificial Intelligence for Science(上海人工智能科学研究院)
Galaxy: A Resource-Efficient Collaborative Edge AI System for In-situ Transformer Inference
School of Computer Science and Engineering, Sun Yat-sen University(中山大学计算机科学与工程学院);IoT Thrust and Research Center for Digital World with Intelligent Things, HKUST (Guangzhou)(香港科技大学(广州)智能物联数字世界研究中心及物联网学科);Data Science and Analytics Thrust, HKUST (Guangzhou)(香港科技大学(广州)数据科学与分析学科);Department of Computer Science and Engineering, HKUST(香港科技大学计算机科学与工程系)