arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2202.12429cs.DCcs.LG
收藏

BagPipe:加速深度推荐模型训练

BagPipe: Accelerating Deep Recommendation Model Training

University of Wisconsin-Madison(威斯康星大学麦迪逊分校);University of Chicago(芝加哥大学)

Saurabh Agarwal, Chengpo Yan, Ziyi Zhang, Shivaram Venkataraman

AI总结:

BagPipe针对深度推荐模型训练中嵌入访问开销大的问题,利用嵌入访问倾斜性和离线训练可前瞻性,通过缓存、预取、Oracle Cacher及分解式架构实现最高5.6倍加速,同时保持同步训练的收敛性与可复现性。

摘要:

基于深度学习的推荐模型(DLRM)广泛应用于多个业务关键型应用中。高效训练此类推荐模型具有挑战性,因为它们包含数十亿基于嵌入的参数,导致嵌入访问带来显著开销。通过对现有DLRM训练系统进行性能分析,我们观察到约75%的迭代时间花费在嵌入访问和模型同步上。本文的关键见解在于,嵌入访问具有特定结构,可用于加速训练。我们观察到嵌入访问呈现严重倾斜分布,约1%的嵌入占总访问量的92%以上。此外,我们观察到在离线训练期间,可以前瞻未来的批次,以准确确定未来哪个迭代需要哪些嵌入。基于这些见解,我们开发了Bagpipe,一个用于训练深度推荐模型的系统,该系统利用缓存和预取使远程嵌入访问与计算重叠。我们设计了一个Oracle Cacher,这是一个新组件,使用前瞻算法生成最优缓存更新决策,同时提供针对陈旧性的强一致性保证。我们还设计了一个逻辑复制、物理分区的缓存,并表明我们的设计可以减少分布式环境中的同步开销。最后,我们提出了一种分解式系统架构,并表明我们的设计可以实现低开销的容错能力。我们使用三个数据集和四个模型进行的实验表明,与最先进的基线相比,Bagpipe提供了高达5.6倍的加速,同时提供与同步训练相同的收敛性和可复现性保证。

英文摘要:

Deep learning based recommendation models (DLRM) are widely used in several business critical applications. Training such recommendation models efficiently is challenging because they contain billions of embedding-based parameters, leading to significant overheads from embedding access. By profiling existing systems for DLRM training, we observe that around 75\% of the iteration time is spent on embedding access and model synchronization. Our key insight in this paper is that embedding access has a specific structure which can be used to accelerate training. We observe that embedding accesses are heavily skewed, with around 1\% of embeddings representing more than 92\% of total accesses. Further, we observe that during offline training we can lookahead at future batches to determine exactly which embeddings will be needed at what iteration in the future. Based on these insights, we develop Bagpipe, a system for training deep recommendation models that uses caching and prefetching to overlap remote embedding accesses with the computation. We design an Oracle Cacher, a new component that uses a lookahead algorithm to generate optimal cache update decisions while providing strong consistency guarantees against staleness. We also design a logically replicated, physically partitioned cache and show that our design can reduce synchronization overheads in a distributed setting. Finally, we propose a disaggregated system architecture and show that our design can enable low-overhead fault tolerance. Our experiments using three datasets and four models show that Bagpipe provides a speed up of up to 5.6x compared to state of the art baselines, while providing the same convergence and reproducibility guarantees as synchronous training.

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

↑