DCApr 22

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

arXiv:2606.147118.4Has Code
Predicted impact top 39% in DC · last 90 daysOriginality Incremental advance
AI Analysis

For privacy-conscious edge deployments, SWARM-LLM offers a practical method to enhance SLM performance without excessive cloud reliance.

SWARM-LLM coordinates a swarm of edge-based small language models with an optional cloud foundation model, improving performance on hard questions while limiting cloud usage to about 25% of queries, achieving a practical trade-off between accuracy, latency, and cost.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes