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

DiSCo:基于设备-服务器协作的LLM文本流式服务

DiSCo: Device-Server Collaborative LLM-Based Text Streaming Services

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Purdue University(普渡大学)

Ting Sun, Penghan Wang, Fan Lai

AI总结:

DiSCo提出设备-服务器协作调度器,通过成本感知路由和令牌级迁移,在满足TTFT和TBT要求下优化QoE,降低尾部TTFT 11-52%、平均TTFT 6-78%,并节省高达84%的服务成本。

摘要:

大型语言模型(LLM)在文本流式服务中的迅速崛起,在服务每天数百万个请求时引入了显著的成本和体验质量(QoE)挑战,尤其是在满足实时交互的首令牌时间(TTFT)和令牌间隔时间(TBT)要求方面。我们的真实世界测量表明,基于服务器和基于设备的部署都难以满足多样化的QoE需求:服务器部署面临高成本和最后一跳问题(例如,互联网延迟和动态性),而设备端LLM推理则受限于资源。我们引入了DiSCo,一种设备-服务器协作调度器,旨在通过自适应地路由请求和在端点之间迁移响应生成来优化用户的QoE,同时保持成本约束。DiSCo采用成本感知调度,利用设备端LLM推理的可预测速度与基于服务器的推理的灵活容量来即时调度请求,同时引入令牌级迁移机制以确保迁移期间令牌交付的一致性。在真实世界工作负载上的评估——包括商业服务如OpenAI GPT和DeepSeek,以及开源部署如LLaMA3——表明,DiSCo可以通过减少尾部TTFT(11-52%)和平均TTFT(6-78%)来改善用户的QoE,在不同模型-设备配置下,同时通过其迁移机制大幅降低服务成本高达84%,同时保持相当的QoE水平。

英文摘要:

The rapid rise of large language models (LLMs) in text streaming services has introduced significant cost and Quality of Experience (QoE) challenges in serving millions of daily requests, especially in meeting Time-To-First-Token (TTFT) and Time-Between-Token (TBT) requirements for real-time interactions. Our real-world measurements show that both server-based and on-device deployments struggle to meet diverse QoE demands: server deployments face high costs and last-hop issues (e.g., Internet latency and dynamics), while on-device LLM inference is constrained by resources. We introduce DiSCo, a device-server cooperative scheduler designed to optimize users' QoE by adaptively routing requests and migrating response generation between endpoints while maintaining cost constraints. DiSCo employs cost-aware scheduling, leveraging the predictable speed of on-device LLM inference with the flexible capacity of server-based inference to dispatch requests on the fly, while introducing a token-level migration mechanism to ensure consistent token delivery during migration. Evaluations on real-world workloads -- including commercial services like OpenAI GPT and DeepSeek, and open-source deployments such as LLaMA3 -- show that DiSCo can improve users' QoE by reducing tail TTFT (11-52\%) and mean TTFT (6-78\%) across different model-device configurations, while dramatically reducing serving costs by up to 84\% through its migration mechanism while maintaining comparable QoE levels.

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

↑