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

远距离推测:边缘-云推测解码何时真正有效

Speculation at a Distance: Where Edge-Cloud Speculative Decoding Actually Pays Off

University of Victoria(维多利亚大学)

Yuan Lyu, Bharath Irukulapati, Jaya Prakash Champati

AI总结:

本文通过闭式不等式分析分布式推测解码(DSD)在广域网边缘-云通信下的延迟收益,指出其仅在低RTT场景下优于共置SD,并发现多租户容量是DSD的主要优势。

摘要:

推测解码(SD)在草稿模型和目标模型共置时可将LLM推理加速1.5-3倍。这催生了一种分布式变体(DSD),将草稿模型置于边缘设备,而目标模型留在云端。我们通过闭式不等式证明,在广域网边缘-云通信下,DSD的每请求延迟收益有限。如果服务器可以同时托管两个模型,共置SD比同步DSD具有更低的延迟和通信开销,且每输出FLOPs和模型权重内存相同。流水线技术仅在往返时间(RTT)小于边缘草稿时间窗口的低RTT场景下才能使DSD与共置SD竞争;在广域网RTT下,云往返时间仍然太大,流水线DSD无法击败共置SD。相对于云自回归解码,DSD只能在给定目标模型速度、接受率和RTT的有界窗口内减少延迟。DSD对于没有仅验证器接口的闭源API也不可行。DSD的主要应用场景出现在多租户容量中。在跨客户端重叠下,卸载草稿计算使饱和的云服务器能够以相同的每客户端速率维持$(1 + \gamma\,t_d/t_v)$倍更多的并发客户端,其中$\gamma$是推测长度,$t_d$和$t_v$分别是每步草稿和验证时间。因此,DSD应主要通过多租户容量和服务器吞吐量来评估,而不仅仅是单请求延迟。

英文摘要:

Speculative decoding (SD) accelerates LLM inference by $1.5$-$3$ times when the draft and target models are co-located. This has motivated a distributed variant (DSD) that places the draft model on an edge device while the target stays in the cloud. We show with closed-form inequalities that DSD's per-request latency benefit is limited under WAN edge-cloud communication. If the server can host both models, co-located SD has lower latency and communication than synchronous DSD, with the same per-output FLOPs and model-weight memory. Pipelining can make DSD competitive with co-located SD only in low-RTT regimes where the round trip is shorter than the edge drafting time window; at WAN RTTs, the cloud round trip remains too large for pipelined DSD to beat co-located SD. Against cloud autoregressive decoding, DSD can reduce latency only inside a bounded window given the target-model speed, acceptance rate, and RTT. DSD is also infeasible against closed-source APIs without a verifier-only interface. The main case for DSD appears in multi-tenant capacity. Under cross-client overlap, offloading draft compute lets a saturated cloud server sustain $(1 + γ\,t_d/t_v)$ times more concurrent clients at the same per-client rate, where $γ$ is the speculation length and $t_d, t_v$ are the per-step draft and verification times. DSD should therefore be evaluated primarily by multi-tenant capacity and server throughput, not only by single-request latency.

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

↑