arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.05894cs.ARcs.AIcs.IRcs.LG
收藏

MicroRec:基于硬件和数据结构的高效推荐推理

MicroRec: Efficient Recommendation Inference by Hardware and Data Structure Solutions

ETH Zurich(苏黎世联邦理工学院);Columbia University(哥伦比亚大学);Alibaba Group(阿里巴巴集团)

Wenqi Jiang, Zhenhao He, Shuai Zhang, Thomas B. Preußer, Kai Zeng, Liang Feng, Jiansong Zhang, Tongxuan Liu, Yong Li, Jingren Zhou, Ce Zhang, Gustavo Alonso

摘要:

深度神经网络广泛应用于个性化推荐系统中。与常规DNN推理工作负载不同,推荐推理是内存受限的,因为需要许多随机内存访问来查找嵌入表。推理在延迟方面也受到很大的限制,因为为用户生成推荐必须在大约几十毫秒内完成。在本文中,我们提出了MicroRec,推荐系统的高性能推理引擎。MicroRec通过以下方式加速推荐推理:(1)重新设计嵌入中涉及的数据结构,以减少所需的查找次数;(2)利用FPGA加速器中的高带宽存储器(HBM)的可用性,通过启用并行查找来解决延迟问题。我们已经在FPGA板上实现了所得到的设计,包括嵌入查找步骤以及完整的推理过程。与优化的CPU基线(16 vCPU,AVX 2启用)相比,MicroRec在吞吐量方面仅在嵌入查找上实现了13.8~ 14.7倍的加速,在整个推荐推理上实现了2.5 ~ 5.4倍的加速。至于延迟,基于CPU的引擎需要毫秒来推断推荐,而MicroRec只需要微秒,这在实时推荐系统中是一个显著的优势。

英文摘要:

Deep neural networks are widely used in personalized recommendation systems. Unlike regular DNN inference workloads, recommendation inference is memory-bound due to the many random memory accesses needed to lookup the embedding tables. The inference is also heavily constrained in terms of latency because producing a recommendation for a user must be done in about tens of milliseconds. In this paper, we propose MicroRec, a high-performance inference engine for recommendation systems. MicroRec accelerates recommendation inference by (1) redesigning the data structures involved in the embeddings to reduce the number of lookups needed and (2) taking advantage of the availability of High-Bandwidth Memory (HBM) in FPGA accelerators to tackle the latency by enabling parallel lookups. We have implemented the resulting design on an FPGA board including the embedding lookup step as well as the complete inference process. Compared to the optimized CPU baseline (16 vCPU, AVX2-enabled), MicroRec achieves 13.8~14.7x speedup on embedding lookup alone and 2.5$~5.4x speedup for the entire recommendation inference in terms of throughput. As for latency, CPU-based engines needs milliseconds for inferring a recommendation while MicroRec only takes microseconds, a significant advantage in real-time recommendation systems.

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

↑