{"id":"arxiv:2405.14371","kind":"article","title":"EdgeShard: Efficient LLM Inference via Collaborative Edge Computing","authors":["Mingjin Zhang","Xiaoming Shen","Jiannong Cao","Zeyang Cui","Shan Jiang"],"author_count":5,"year":2024,"published":"2024-12-31","venue":"IEEE Internet of Things Journal","cited_by":229,"doi":"10.1109/jiot.2024.3524255","arxiv_id":"2405.14371","nct_id":null,"source_url":"https://doi.org/10.1109/jiot.2024.3524255","archive_url":"https://space-kitty.com/papers/arxiv:2405.14371","updated":"2024-05-23","pmid":null,"pmcid":null,"openalex_id":"W4405934565","pdf_url":"https://arxiv.org/pdf/2405.14371","abstract":"Large language models (LLMs) have shown great potential in natural language processing and content generation. However, current LLMs heavily rely on cloud computing, leading to prolonged latency, high bandwidth cost, and privacy concerns. Edge computing is promising to address such concerns by deploying LLMs on edge devices, closer to data sources. Some works try to leverage model quantization to reduce the model size to fit the resource-constraint edge devices, but they lead to accuracy loss. Other works use cloud-edge collaboration, suffering from unstable network connections. In this work, we leverage collaborative edge computing to facilitate the collaboration among edge devices and cloud servers for jointly performing efficient LLM inference. We propose a general framework to partition the LLM model into shards and deploy on distributed devices. To achieve efficient LLM inference, we formulate an adaptive joint device selection and model partition problem and design an efficient dynamic programming algorithm to optimize the inference latency and throughput, respectively. Experiments of Llama2 serial models on a heterogeneous physical prototype demonstrate that EdgeShard achieves up to 50% latency reduction and 2x throughput improvement over baseline methods.","abstract_license":"CC0-1.0 (arXiv descriptive metadata)","license":null,"is_open_access":true,"retracted":false,"peer_reviewed":null,"categories":["IoT and Edge/Fog Computing"],"details":null,"provenance":"openalex+arxiv","attribution":"Abstract: arXiv descriptive metadata (CC0). Thank you to arXiv for use of its open access interoperability. This service was not reviewed or approved by, nor does it necessarily express or reflect the policies or opinions of, arXiv.","topics":[{"slug":"efficient-ai","name":"Efficient Training & Inference","domain_slug":"ai"}],"cited_in_dossiers":[]}