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

DreamShard:推荐系统的可推广嵌入表放置

DreamShard: Generalizable Embedding Table Placement for Recommender Systems

Rice University(莱斯大学);Meta Platforms, Inc.(Meta平台公司);Texas A&M University(得克萨斯农工大学)

Daochen Zha, Louis Feng, Qiaoyu Tan, Zirui Liu, Kwei-Herng Lai, Bhargav Bhushanam, Yuandong Tian, Arun Kejariwal, Xia Hu

摘要:

我们研究了分布式推荐系统中的嵌入表放置,其目的是将表划分并放置在多个硬件设备上(例如,GPU)来平衡计算和通信成本。尽管先前的工作已经探索了用于计算图的设备放置的基于学习的方法,但是嵌入表放置仍然是一个具有挑战性的问题,因为1)嵌入表的操作融合,以及2)对具有不同数量的表和/或设备的看不见的放置任务的可推广性要求。为此,我们提出了DreamShard,一种用于嵌入表放置的强化学习(RL)方法。DreamShard通过1)一个成本网络来直接预测融合操作的成本,以及2)一个在估计的马尔可夫决策过程(MDP)上进行有效训练的策略网络,而无需真正的GPU执行,其中状态和奖励通过成本网络进行估计。这两个网络配备了sum和max表示简化,可以直接推广到具有不同数量的表和/或设备的任何看不见的任务,而无需微调。大量的实验表明,DreamShard大大优于现有的人类专家和基于RNN的策略,在大规模合成表和我们的生产表的最强基线上加速高达19%。代码可在https://github.com/daochenzha/dreamshard上获得

英文摘要:

We study embedding table placement for distributed recommender systems, which aims to partition and place the tables on multiple hardware devices (e.g., GPUs) to balance the computation and communication costs. Although prior work has explored learning-based approaches for the device placement of computational graphs, embedding table placement remains to be a challenging problem because of 1) the operation fusion of embedding tables, and 2) the generalizability requirement on unseen placement tasks with different numbers of tables and/or devices. To this end, we present DreamShard, a reinforcement learning (RL) approach for embedding table placement. DreamShard achieves the reasoning of operation fusion and generalizability with 1) a cost network to directly predict the costs of the fused operation, and 2) a policy network that is efficiently trained on an estimated Markov decision process (MDP) without real GPU execution, where the states and the rewards are estimated with the cost network. Equipped with sum and max representation reductions, the two networks can directly generalize to any unseen tasks with different numbers of tables and/or devices without fine-tuning. Extensive experiments show that DreamShard substantially outperforms the existing human expert and RNN-based strategies with up to 19% speedup over the strongest baseline on large-scale synthetic tables and our production tables. The code is available at https://github.com/daochenzha/dreamshard

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

↑