加速端云协同推理:基于近无气泡流水线优化
Accelerating End-Cloud Collaborative Inference via Near Bubble-free Pipeline Optimization
AI总结:
针对端云协同推理中的流水线气泡问题,提出COACH框架,通过离线递归分治优化模型划分与量化、在线自适应量化调整及上下文感知缓存,实现近无气泡推理,在保持准确率的同时提升1.7倍推理速度和2.1倍吞吐量。
摘要:
端云协同通过将部分推理工作负载从端设备卸载到云服务器,为增强DNN推理中的服务质量(QoS)提供了一种有前景的策略。尽管潜力巨大,复杂的模型架构和动态网络条件会在流水线执行中引入大量气泡(即空闲等待时间),导致资源利用效率低下和QoS退化。为应对这些挑战,我们提出了一个名为COACH的新框架,旨在实现近无气泡的流水线协同推理,从而实现低推理延迟和高系统吞吐量。首先,COACH采用一个离线组件,利用高效的递归分治算法来优化模型划分和传输量化,以最小化流水线气泡的出现。随后,COACH中的在线组件采用自适应量化调整和上下文感知缓存策略,以进一步稳定流水线执行。具体而言,COACH分析缓存中中间数据与标签语义中心之间的相关性及其对量化调整的影响,从而有效适应网络波动。我们的实验证明了COACH在降低推理延迟和提升系统吞吐量方面的有效性。值得注意的是,在保持相当准确性的同时,COACH相比基线实现了高达1.7倍的推理加速和2.1倍的系统吞吐量提升。
英文摘要:
End-cloud collaboration offers a promising strategy to enhance the Quality of Service (QoS) in DNN inference by offloading portions of the inference workload from end devices to cloud servers. Despite the potential, the complex model architectures and dynamic network conditions will introduce numerous bubbles (\ie, idle waiting time) in pipeline execution, resulting in inefficient resource utilization and degraded QoS. To address these challenges, we introduce a novel framework named COACH, designed for near bubble-free pipeline collaborative inference, thereby achieving low inference latency and high system throughput. Initially, COACH employs an \textit{offline} component that utilizes an efficient recursive divide-and-conquer algorithm to optimize both model partitioning and transmission quantization, aiming to minimize the occurrence of pipeline bubbles. Subsequently, the \textit{online} component in COACH employs an adaptive quantization adjustment and a context-aware caching strategy to further stabilize pipeline execution. Specifically, COACH analyzes the correlation between intermediate data and label semantic centers in the cache, along with its influence on the quantization adjustment, thereby effectively accommodating network fluctuations. Our experiments demonstrate the efficacy of COACH in reducing inference latency and enhancing system throughput. Notably, while maintaining comparable accuracy, COACH achieves up to 1.7x faster inference and 2.1x higher system throughput than baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。