Synera通过设备与云端协同推理,显著提升大模型生成质量并降低服务成本。
Synera: Synergistic LLM Serving across Device and Cloud at Scale
- 采用选择性卸载、无阻塞并行推理和可扩展批处理实现设备-云协同
- 生成质量提升1.20至5.47倍,延迟与现有方案相当
- 适合移动终端部署高精度大模型的场景,尤其关注性能与成本平衡
大型语言模型(LLMs)正成为各类移动操作系统的核心组件,推动交互式聊天机器人和个人助手等智能应用的发展。然而,其部署面临生成质量下降和延迟增加等性能挑战。以往工作主要依赖云端卸载或本地小型语言模型(SLMs),前者受限于通信瓶颈,后者因资源限制牺牲生成质量。本文提出Synera,一种设备-云端协同的大模型服务系统,通过高效的小型-大型模型协同机制,挖掘设备-云协同推理中未被充分利用的优化机会,包括卸载决策、流水线阻塞和批处理瓶颈。为实现性能提升,Synera引入通信高效的有选择性卸载、无阻塞并行推理及可扩展的云端批处理设计。在真实测试平台上的广泛评估表明,相较于主流基线,Synera在生成质量上提升1.20–5.47倍,且延迟保持一致;相比传统云端服务,在多个基准上降低8.2%–16.5%的服务成本。
原文摘要 · Abstract (English)
Large Language Models (LLMs) are becoming key components in various mobile operating systems, driving smart applications like interactive chatbots and personal assistants. While bringing enhanced intelligence to mobile ends, their deployment suffers from a set of performance challenges, especially the generation quality degradation and prolonged latency. Prior works have mainly relied on solutions of cloud offloading or on-device Small Language Models (SLMs). However, the former is usually limited by the communication bottleneck, and the latter sacrifices generation quality due to resource constraints. To mitigate these limitations, this paper proposes Synera, a device-cloud synergistic LLM serving system that applies an efficient SLM-LLM synergistic mechanism. Through empirical studies on LLM's unique computing characteristics, Synera identifies a set of underexplored optimization opportunities in device-cloud synergistic LLM inference, including offloading decisions, pipeline stalls, and batching bottlenecks. To translate them into enhanced performance, Synera introduces tailored designs of communication-efficient selective offloading, stall-free parallel inference, and scalable cloud batching. Extensive evaluations with real-world testbeds show that Synera enables 1.20-5.47x better generation quality against competitive baselines with on-par latency performance. Compared with existing cloud serving, Synera achieves 8.2-16.5% lower cloud serving cost on various benchmarks.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。