GoodSpeed: 通过自适应猜测解码优化公平的好吞吐量在分布式边缘推断中
GoodSpeed: Optimizing Fair Goodput with Adaptive Speculative Decoding in Distributed Edge Inference
AI总结:
GOODSPEED通过自适应猜测解码优化分布式边缘推断中的公平好吞吐量,采用梯度调度算法实现资源高效分配。
摘要:
大型语言模型(LLMs)已经革新了自然语言处理,但其高计算需求对实时推断提出了重大挑战,尤其是在多用户服务器猜测解码和资源受限环境中。猜测解码作为一种加速LLM推断的有前途的技术,通过使用轻量级草案模型生成候选标记,随后由更大的、更准确的模型进行验证。然而,确保高好吞吐量(接受标记的有效率)和多个草案服务器与中央验证服务器合作中的公平性仍然是一个开放的挑战。本文介绍了一个新的分布式推断框架GOODSPEED,通过自适应猜测解码优化好吞吐量。GOODSPEED采用一个中央验证服务器,协调一组异构的草案服务器,每个服务器运行一个小语言模型生成猜测标记。为了有效管理资源分配,GOODSPEED结合了梯度调度算法,动态分配令牌验证任务,最大化一个对数效用函数,以确保服务器之间的比例公平。通过并行处理所有草案服务器的猜测输出,该框架使验证服务器与分布式草案生成器之间实现了高效的协作,从而在延迟和吞吐量方面进行了优化。通过严格的流体样本路径分析,我们证明GOODSPEED在稳态条件下收敛到最佳的好吞吐量分配,并在动态负载下保持接近最优的性能,具有可证明的误差界。这些结果表明,GOODSPEED为分布式LLM推断系统中的多服务器猜测解码提供了可扩展、公平和高效的解决方案。
英文摘要:
Large language models (LLMs) have revolutionized natural language processing, yet their high computational demands pose significant challenges for real-time inference, especially in multi-user server speculative decoding and resource-constrained environments. Speculative decoding has emerged as a promising technique to accelerate LLM inference by using lightweight draft models to generate candidate tokens, which are subsequently verified by a larger, more accurate model. However, ensuring both high goodput (the effective rate of accepted tokens) and fairness across multiple draft servers cooperating with a central verification server remains an open challenge. This paper introduces GOODSPEED, a novel distributed inference framework that optimizes goodput through adaptive speculative decoding. GOODSPEED employs a central verification server that coordinates a set of heterogeneous draft servers, each running a small language model to generate speculative tokens. To manage resource allocation effectively, GOODSPEED incorporates a gradient scheduling algorithm that dynamically assigns token verification tasks, maximizing a logarithmic utility function to ensure proportional fairness across servers. By processing speculative outputs from all draft servers in parallel, the framework enables efficient collaboration between the verification server and distributed draft generators, streamlining both latency and throughput. Through rigorous fluid sample path analysis, we show that GOODSPEED converges to the optimal goodput allocation in steady-state conditions and maintains near-optimal performance with provably bounded error under dynamic workloads. These results demonstrate that GOODSPEED provides a scalable, fair and efficient solution for multi-server speculative decoding in distributed LLM inference systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。