提升GPU上基于DNN的推荐系统推理的性能上限
Pushing the Performance Envelope of DNN-based Recommendation Systems Inference on GPUs
AI总结:
针对DLRM在GPU上推理时嵌入阶段的性能瓶颈问题,通过编译器优化、软件预取与L2锁定技术,实现嵌入阶段最高103%、整体推理最高77%的性能提升。
摘要:
个性化推荐是互联网上无处不在的应用,众多行业与超大规模企业广泛利用深度学习推荐模型(DLRMs)满足其个性化需求(如广告投放或电影推荐)。随着模型与数据集规模不断扩大,计算和内存需求持续攀升,GPU正越来越多地被用于执行DLRM推理。然而,在满足可接受延迟的同时部署新型DLRM仍然颇具挑战,这使得传统部署方式对GPU的需求日益增长,进而推高了推理服务成本。本文指出,嵌入阶段仍是GPU推理流水线中的主要瓶颈,仅嵌入环节就可导致最高3.2倍的性能下降。\n 为深入理解这一问题,我们开展了详细的微架构特性分析,揭示了标准嵌入核中存在的低占用率问题。通过直接利用编译器优化,我们实现了最优占用率,将性能提升了最高53%。但长内存延迟停顿问题依然存在。为应对这一挑战,我们提出了专用的即插即用式软件预取与L2锁定技术,有助于隐藏并降低延迟。此外,我们提出将二者结合使用,因为它们能够互补。基于A100 GPU、采用大模型与大数据集的实验评估表明,我们提出的技术使嵌入阶段性能提升最高达103%,整个DLRM推理流水线的性能提升最高达77%。
英文摘要:
Personalized recommendation is a ubiquitous application on the internet, with many industries and hyperscalers extensively leveraging Deep Learning Recommendation Models (DLRMs) for their personalization needs (like ad serving or movie suggestions). With growing model and dataset sizes pushing computation and memory requirements, GPUs are being increasingly preferred for executing DLRM inference. However, serving newer DLRMs, while meeting acceptable latencies, continues to remain challenging, making traditional deployments increasingly more GPU-hungry, resulting in higher inference serving costs. In this paper, we show that the embedding stage continues to be the primary bottleneck in the GPU inference pipeline, leading up to a 3.2x embedding-only performance slowdown. To thoroughly grasp the problem, we conduct a detailed microarchitecture characterization and highlight the presence of low occupancy in the standard embedding kernels. By leveraging direct compiler optimizations, we achieve optimal occupancy, pushing the performance by up to 53%. Yet, long memory latency stalls continue to exist. To tackle this challenge, we propose specialized plug-and-play-based software prefetching and L2 pinning techniques, which help in hiding and decreasing the latencies. Further, we propose combining them, as they complement each other. Experimental evaluations using A100 GPUs with large models and datasets show that our proposed techniques improve performance by up to 103% for the embedding stage, and up to 77% for the overall DLRM inference pipeline.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。