ARK:在分散式大语言模型推理中避免KV缓存传输的路由冲突
ARK: Avoiding Routing Collisions for KV Cache Transfer in Disaggregated LLM Inference
AI总结:
针对分散式LLM推理中KV缓存传输的路由冲突问题,提出分布式大象流路径预留机制ARK,通过协调发送方选择源端口避免哈希冲突,模拟显示其可显著降低流完成时间和首包时间。
摘要:
分散式大语言模型(LLM)推理将预填充阶段和解码阶段分离到不同的GPU池,产生大量KV缓存传输。由于这些传输持续数百毫秒至数秒,它们表现为主导链路带宽利用率的巨型大象流。在这种情况下,无状态等价多路径路由(ECMP)可能表现不佳:哈希冲突可能导致一条 spine 链路过载,而其他链路空闲,使传输时间延长数秒。然而这种持续性使协调变得可行,由于这些流是长寿命的,即使是轻量级的一对多协调也可在其生命周期内摊销。我们提出ARK,一种分布式大象流路径预留机制。ARK协调发送方选择源端口,使哈希将并发流映射到不同的spine,无需交换机更改或接收方侧数据包重排序。数据包级远程直接内存访问(RDMA)模拟显示,在中等负载下,ARK将平均流完成时间(FCT)和P95 FCT分别降低多达27.3%和34.0%,并进一步将平均首包时间(TTFT)降低多达12.9%。
英文摘要:
Disaggregated LLM inference separates the prefill and decode phases across GPU pools, generating massive KV-cache transfers. Because these transfers last hundreds of milliseconds to seconds, they behave as mega elephant flows that dominate link bandwidth utilization. In this regime, stateless ECMP can perform poorly: hash collisions may overload one spine link while leaving others idle, stretching transfer times by seconds. Yet this same persistence makes coordination practical. Since these flows are long-lived, even lightweight one-to-all coordination can be amortized over their lifetime. We present ARK, a distributed elephant-flow path reservation mechanism. ARK coordinates senders to choose source ports whose hashes map concurrent flows onto distinct spines, without requiring switch changes or receiver-side packet reordering. Packet-level RDMA simulations show that ARK reduces mean and P95 FCT by up to 27.3% and 34.0% under moderate load, and further reduces mean TTFT by up to 12.9%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。