arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.17059cs.DCcs.AI
收藏

面向P2P网络的LLM分布式推理

Towards Distributed Inference of LLMs on a P2P Network

The University of Texas at Austin(德克萨斯大学奥斯汀分校);Department of Computer Science, The University of Texas at Austin(德克萨斯大学奥斯汀分校计算机科学系)

Shabari S Nair, Krishanu Saini

AI总结:

提出一种去中心化的前缀缓存感知路由方案,用于P2P网络中的LLM推理,通过本地基数树和异步反熵更新缓存信息,避免集中协调和KV缓存传输,在低延迟和偏斜前缀分布下提升性能。

摘要:

前缀缓存可以通过在具有共享提示的请求之间重用KV缓存来减少LLM推理延迟,但集群规模的重用具有挑战性,因为缓存在节点之间是分区的。我们提出了一种用于对等LLM服务的去中心化、前缀缓存感知路由方案。每个节点维护其自身缓存前缀的本地基数树,并使用周期性反熵异步刷新对等缓存的估计。请求被路由到具有最长估计前缀匹配的节点,无需集中协调或KV缓存传输。过时的元数据只会导致缓存未命中,而不会产生错误输出,因此弱一致性足以保证正确性。在模拟MMLU工作负载上的评估表明,去中心化路由在低通信延迟和偏斜前缀分布下改善了延迟,而高网络延迟和亲和性引起的热点限制了其优势。

英文摘要:

Prefix caching can reduce LLM inference latency by reusing KV caches across requests with shared prompts, but cluster-scale reuse is challenging because caches are partitioned across nodes. We propose a decentralized, prefix-cache-aware routing scheme for peer-to-peer LLM serving. Each node maintains a local radix tree of its own cached prefixes and asynchronously refreshed estimates of peer caches using periodic anti-entropy. Requests are routed to the node with the longest estimated prefix match, without centralized coordination or KV-cache transfer. Stale metadata only causes cache misses, not incorrect outputs, making weak consistency sufficient for correctness. Evaluation on simulated MMLU workloads show that decentralized routing improves latency under low communication delay and skewed prefix distributions, while high network latency and affinity-induced hotspots limit its benefits.

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

↑