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

随机通信避免用于推荐系统

Stochastic Communication Avoidance for Recommendation Systems

University of California Berkeley(加州大学伯克利分校)

Lutfi Eren Erdogan, Vijay Anand Raghava Kanakagiri, Kurt Keutzer, Zhen Dong

AI总结:

针对推荐系统嵌入表内存瓶颈,提出随机通信避免框架与算法,在内存、计算和通信约束下最大化吞吐量,在Criteo数据集上GPU训练吞吐量提升6倍。

摘要:

基于神经网络的推荐系统高效部署的主要瓶颈之一是其嵌入表的内存占用。尽管许多基于神经网络的推荐系统可以从硬件加速器更快的片上内存访问和增强的计算能力中受益,但这些模型中的大型嵌入表往往无法容纳在加速器受限的内存中。尽管这些模型无处不在,但先前在内存优化和并行性方面的方法未能解决加速器上大型嵌入表的内存和通信成本。因此,大多数模型在CPU上训练,而当前加速器的实现受到设备间通信瓶颈和主内存查找等问题的阻碍。在本文中,我们提出了一个理论框架,分析使用查找表的任意分布式系统的通信成本。我们利用该框架提出算法,在内存、计算和通信约束下最大化吞吐量。此外,我们证明了我们的方法在数据集分布和内存约束下实现了强大的理论性能,适用于从移动联邦学习到仓库规模计算的广泛用例。我们在PyTorch中实现了我们的框架和算法,在Criteo Terabytes数据集上,与基线相比,GPU系统的训练吞吐量提高了多达6倍。

英文摘要:

One of the major bottlenecks for efficient deployment of neural network based recommendation systems is the memory footprint of their embedding tables. Although many neural network based recommendation systems could benefit from the faster on-chip memory access and increased computational power of hardware accelerators, the large embedding tables in these models often cannot fit on the constrained memory of accelerators. Despite the pervasiveness of these models, prior methods in memory optimization and parallelism fail to address the memory and communication costs of large embedding tables on accelerators. As a result, the majority of models are trained on CPUs, while current implementations of accelerators are hindered by issues such as bottlenecks in inter-device communication and main memory lookups. In this paper, we propose a theoretical framework that analyses the communication costs of arbitrary distributed systems that use lookup tables. We use this framework to propose algorithms that maximize throughput subject to memory, computation, and communication constraints. Furthermore, we demonstrate that our method achieves strong theoretical performance across dataset distributions and memory constraints, applicable to a wide range of use cases from mobile federated learning to warehouse-scale computation. We implement our framework and algorithms in PyTorch and achieve up to 6x increases in training throughput on GPU systems over baselines, on the Criteo Terabytes dataset.

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

↑