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

通过学习缓存加速深度学习推理

Accelerating Deep Learning Inference via Learned Caches

Amazon Web Services(亚马逊云科技);Amazon(亚马逊);University of Wisconsin - Madison(威斯康星大学麦迪逊分校)

Arjun Balasubramanian, Adarsh Kumar, Yuhan Liu, Han Cao, Shivaram Venkataraman, Aditya Akella

摘要:

深度神经网络(DNN)由于其在解决现实世界问题方面的高准确性而在多个领域得到越来越多的采用。然而,这种高准确性是通过构建更深的网络来实现的,这对面向用户的应用程序所需的低延迟推理提出了根本性的挑战。当前的低延迟解决方案在准确性上进行权衡,或者未能利用预测服务工作负载中的固有时间局部性。我们观察到缓存DNN的隐藏层输出可以引入一种后期绑定形式,其中推理请求只消耗所需的计算量。这使得能够实现低延迟的机制,加上利用时间局部性的能力。然而,传统的缓存方法会产生很高的内存开销和查找延迟,导致我们设计学习缓存-由不断更新的简单ML模型组成的缓存。我们提出了GATI的设计,GATI是一个端到端的预测服务系统,它结合了用于低延迟DNN推理的学习缓存。结果表明,GATI可以在实际工作负载上将推理延迟减少高达7.69倍。

英文摘要:

Deep Neural Networks (DNNs) are witnessing increased adoption in multiple domains owing to their high accuracy in solving real-world problems. However, this high accuracy has been achieved by building deeper networks, posing a fundamental challenge to the low latency inference desired by user-facing applications. Current low latency solutions trade-off on accuracy or fail to exploit the inherent temporal locality in prediction serving workloads. We observe that caching hidden layer outputs of the DNN can introduce a form of late-binding where inference requests only consume the amount of computation needed. This enables a mechanism for achieving low latencies, coupled with an ability to exploit temporal locality. However, traditional caching approaches incur high memory overheads and lookup latencies, leading us to design learned caches - caches that consist of simple ML models that are continuously updated. We present the design of GATI, an end-to-end prediction serving system that incorporates learned caches for low-latency DNN inference. Results show that GATI can reduce inference latency by up to 7.69X on realistic workloads.

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

↑