arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.09035cs.DCcs.CLcs.LG
收藏

P/D-Device:云与设备间分离的大语言模型

P/D-Device: Disaggregated Large Language Model between Cloud and Devices

Yibo Jin, Yixu Xu, Yue Chen, Chengbin Wang, Tao Wang, Jiaqi Huang, Rongfei Zhang, Yiming Dong, Yuting Yan, Ke Cheng, Yingjie Zhu, Shulan Wang, Qianqian Tang, Sh… 展开作者

Yibo Jin, Yixu Xu, Yue Chen, Chengbin Wang, Tao Wang, Jiaqi Huang, Rongfei Zhang, Yiming Dong, Yuting Yan, Ke Cheng, Yingjie Zhu, Shulan Wang, Qianqian Tang, Shuaishuai Meng, Guanxin Cheng, Ze Wang, Shuyan Miao, Ketao Wang, Wen Liu, Yifan Yang, Tong Zhang, Anran Wang, Chengzhou Lu, Tiantian Dong, Yongsheng Zhang, Zhe Wang, Hefei Guo, Hongjie Liu, Wei Lu, Zhengyong Zhang

AI总结:

针对云端解码资源占用和设备端预填充延迟高的问题,提出在云与设备间分离大语言模型的 P/D-Device 方案,通过云端辅助预填充与速度控制,显著降低 TTFT 并提升云端吞吐量。

摘要:

服务分离的大语言模型已在工业实践中被广泛采用以提升性能。然而,在解码阶段生成过多 token,即长时间占用资源,本质上阻碍了云实现更高的吞吐量。同时,由于设备端资源有限,首 token 时间(TTFT),即预填充阶段的延迟,会随着提示词长度的增加而急剧上升。为了应对这种资源瓶颈,即云端的长时间占用和设备端有限的计算能力,我们提出在云与设备之间分离大语言模型。也就是说,云端仅在预填充阶段帮助每个设备处理部分内容。具体而言,设备从云端接收到第一个 token 后,与其自身的预填充解耦,立即响应用户以实现更低的 TTFT。随后,来自云端的后续 token 通过速度控制器呈现,以平滑 TPOT(每个输出 token 的时间),直到设备赶上进度。在控制云端资源使用的同时,利用接收到的 token 来分摊设备端预填充。此外,在云端预填充期间,可以利用已生成的中间数据来优化提示词,从而进一步加速设备端推理。我们实现了 P/D-Device 这一方案,并确认了其优于其他替代方案。我们进一步提出了一种算法来确定最佳设置。真实轨迹实验表明,TTFT 至少降低 60%,最大 TPOT 约为几十毫秒,云端吞吐量最多提升 15 倍。

英文摘要:

Serving disaggregated large language models has been widely adopted in industrial practice for enhanced performance. However, too many tokens generated in decoding phase, i.e., occupying the resources for a long time, essentially hamper the cloud from achieving a higher throughput. Meanwhile, due to limited on-device resources, the time to first token (TTFT), i.e., the latency of prefill phase, increases dramatically with the growth on prompt length. In order to concur with such a bottleneck on resources, i.e., long occupation in cloud and limited on-device computing capacity, we propose to separate large language model between cloud and devices. That is, the cloud helps a portion of the content for each device, only in its prefill phase. Specifically, after receiving the first token from the cloud, decoupling with its own prefill, the device responds to the user immediately for a lower TTFT. Then, the following tokens from cloud are presented via a speed controller for smoothed TPOT (the time per output token), until the device catches up with the progress. On-device prefill is then amortized using received tokens while the resource usage in cloud is controlled. Moreover, during cloud prefill, the prompt can be refined, using those intermediate data already generated, to further speed up on-device inference. We implement such a scheme P/D-Device, and confirm its superiority over other alternatives. We further propose an algorithm to decide the best settings. Real-trace experiments show that TTFT decreases at least 60%, maximum TPOT is about tens of milliseconds, and cloud throughput increases by up to 15x.

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

↑