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

RecPipe:共同设计模型和硬件,共同优化推荐质量和性能

RecPipe: Co-designing Models and Hardware to Jointly Optimize Recommendation Quality and Performance

Harvard University(哈佛大学);Facebook AI Research(脸书人工智能研究院)

Udit Gupta, Samuel Hsia, Jeff Zhang, Mark Wilkening, Javin Pombra, Hsien-Hsin S. Lee, Gu-Yeon Wei, Carole-Jean Wu, David Brooks

摘要:

深度学习推荐系统必须在严格的尾部延迟目标和高系统负载下提供高质量的个性化内容。本文介绍了RecPipe,一个系统,共同优化推荐质量和推理性能。RecPipe的核心是将推荐模型分解为多阶段管道,以保持质量,同时降低计算复杂性并暴露不同的并行机会。RecPipe实现推理调度器以将多级推荐引擎映射到商品、异构平台(例如,虽然硬件感知调度提高了排序效率,但商用平台受到需要专用硬件的许多限制。因此,我们设计了RecPipeAccel(RPAccel),这是一个自定义加速器,可以联合优化质量,尾部延迟和系统吞吐量。RPAC-cel专门设计用于利用RecPipe开放的独特设计空间。特别是,RPAccel在子批次中处理查询以流水线推荐阶段,实现双重静态和动态嵌入缓存,一组top-k过滤单元和可重新配置的脉动阵列。与现有技术相比,在同等质量下,我们证明RPAccel将延迟和吞吐量提高了3倍和6倍。

英文摘要:

Deep learning recommendation systems must provide high quality, personalized content under strict tail-latency targets and high system loads. This paper presents RecPipe, a system to jointly optimize recommendation quality and inference performance. Central to RecPipe is decomposing recommendation models into multi-stage pipelines to maintain quality while reducing compute complexity and exposing distinct parallelism opportunities. RecPipe implements an inference scheduler to map multi-stage recommendation engines onto commodity, heterogeneous platforms (e.g., CPUs, GPUs).While the hardware-aware scheduling improves ranking efficiency, the commodity platforms suffer from many limitations requiring specialized hardware. Thus, we design RecPipeAccel (RPAccel), a custom accelerator that jointly optimizes quality, tail-latency, and system throughput. RPAc-cel is designed specifically to exploit the distinct design space opened via RecPipe. In particular, RPAccel processes queries in sub-batches to pipeline recommendation stages, implements dual static and dynamic embedding caches, a set of top-k filtering units, and a reconfigurable systolic array. Com-pared to prior-art and at iso-quality, we demonstrate that RPAccel improves latency and throughput by 3x and 6x.

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

↑