通过有界滞后同步集体实现更快的分布式仅推理推荐系统
Faster Distributed Inference-Only Recommender Systems via Bounded Lag Synchronous Collectives
AI总结:
本文提出一种有界滞后同步集体方法,用于优化分布式仅推理推荐系统的性能,尤其在处理不平衡访问和延迟时提升效率。
摘要:
推荐系统是许多大公司实现个性化内容交付以及由此带来的收入的关键。在过去的十年中,深度学习推荐模型(DLRMs)已成为该领域的事实标准。DLRMs推理的主要瓶颈是跨巨大的嵌入表查找稀疏特征,这些表通常被划分在多个节点的聚合RAM中。在最先进的推荐系统中,分布式查找是通过不规则的全到全(alltoallv)通信实现的,通常成为主要瓶颈。今天,大多数相关工作将此操作视为给定的,此外,每个集体本质上都是同步的。在本工作中,我们提出了一种新型的有界滞后同步(BLS)版本的alltoallv操作。该界限可以是一个参数,允许较慢的过程在最快的过程阻塞之前滞后整个迭代。在特殊应用如仅推理DLRMs中,应用的准确性完全得以保持。我们将在新的PyTorch分布式后端中实现BLS alltoallv,并使用BLS版本的参考DLRMs代码进行评估。我们证明,在平衡且同质访问的DLRMs运行中,我们的BLS技术没有提供显著优势。但对不平衡的运行,例如具有强烈不规则嵌入表访问或跨不同进程的延迟的运行,我们的BLS技术提高了仅推理DLRMs的延迟和吞吐量。在最佳情况下,所提出的减少同步可以完全掩盖进程之间的延迟。
英文摘要:
Recommender systems are enablers of personalized content delivery, and therefore revenue, for many large companies. In the last decade, deep learning recommender models (DLRMs) are the de-facto standard in this field. The main bottleneck in DLRM inference is the lookup of sparse features across huge embedding tables, which are usually partitioned across the aggregate RAM of many nodes. In state-of-the-art recommender systems, the distributed lookup is implemented via irregular all-to-all (alltoallv) communication, and often presents the main bottleneck. Today, most related work sees this operation as a given; in addition, every collective is synchronous in nature. In this work, we propose a novel bounded lag synchronous (BLS) version of the alltoallv operation. The bound can be a parameter allowing slower processes to lag behind entire iterations before the fastest processes block. In special applications such as inference-only DLRM, the accuracy of the application is fully preserved. We implement BLS alltoallv in a new PyTorch Distributed backend and evaluate it with a BLS version of the reference DLRM code. We show that for well balanced, homogeneous-access DLRM runs our BLS technique does not offer notable advantages. But for unbalanced runs, e.g. runs with strongly irregular embedding table accesses or with delays across different processes, our BLS technique improves both the latency and throughput of inference-only DLRM. In the best-case scenario, the proposed reduced synchronisation can mask the delays across processes altogether.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。