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

面向协同边缘计算中地理分布式大语言模型推理的高效KV缓存迁移

Efficient KV Cache Migration for Geo-Distributed LLM Inference in Collaborative Edge Computing

The Hong Kong Polytechnic University(香港理工大学);National University of Defense Technology(国防科技大学);Wuhan University(武汉大学)

Mingjin Zhang, Jiannong Cao, Tao Wu, Xiangchun Chen, Ne Wang

AI总结:

针对协同边缘计算中分布式LLM推理的KV缓存迁移难题,提出EdgeFlow混合迁移方案,结合并行计算与通信,经实验可将迁移时间最多降低45%,提升了推理的鲁棒性与效率。

摘要:

大语言模型(LLMs)展现出卓越能力,但严重依赖集中式云GPU集群,导致高带宽成本、低延迟及隐私问题。边缘计算通过在边缘服务器上就近部署LLMs为用户提供解决方案,然而单台边缘服务器往往无法满足LLMs的繁重计算需求。协同边缘计算(CEC)整合多个地理分布式异构边缘服务器的资源,共同承载小模型分片及关联键值(KV)缓存以实现分布式推理,以此应对上述挑战。但边缘服务器可能断开连接或轻易过载,因此必须将有状态的KV缓存迁移至其他服务器以保障服务连续性。现有的基于云的KV缓存管理方法,如跨GPU直接传输及从输入令牌重新计算,不适用于带宽受限、资源有限的边缘环境。本研究提出EdgeFlow,一种新型混合KV缓存迁移方案,整合KV缓存直接传输与基于激活的重新计算,利用并行计算与通信最小化迁移时间。在此基础上,构建多节点KV迁移优化问题,设计基于改进线性规划松弛与二分图技术的2-近似算法。在真实分布式LLM推理平台上开展的大量实验表明,EdgeFlow可将迁移时间最多降低45%,显著提升协同边缘计算中分布式LLM推理的鲁棒性与效率。

英文摘要:

Large Language Models (LLMs) have shown exceptional capabilities but rely heavily on centralized cloud GPU clusters, leading to high bandwidth costs, latency, and privacy issues. Edge computing offers a solution by deploying LLMs closer to users on edge servers, yet single edge servers often cannot meet LLMs' heavy computational demands. Collaborative Edge Computing (CEC) addresses this challenge by integrating resources of multiple geo-distributed heterogeneous edge servers, which jointly host small model shards and associated Key-Value (KV) cache for distributed inference. However, edge servers may disconnect or easily become overloaded, making it essential to migrate stateful KV cache to other servers for ensuring continuous service. Existing cloud-based KV cache management methods, such as direct cross-GPUs transmission and recomputation from input tokens are ill-suited for bandwidth-constrained and resource-limited edge environments. In this work, we propose EdgeFlow, a novel hybrid KV cache migration scheme that integrates direct KV cache transmission with activation-based recomputation, leveraging parallel computation and communication to minimize migration time. On this basis, we formulate a multi-node KV migration optimization problem and design a 2-approximation algorithm based on improved linear programming relaxation and bipartite graph techniques. Extensive experiments on a real-world distributed LLM inference platform demonstrate that EdgeFlow reduces migration time by up to 45%, significantly enhancing the robustness and efficiency of distributed LLM inference in collaborative edge computing.

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

↑