ScaleFreeCTR:面向大嵌入表CTR模型的MixCache-based分布式训练系统
ScaleFreeCTR: MixCache-based Distributed Training System for CTR Models with Huge Embedding Table
摘要:
由于深度学习具有优越的特征表示能力,工业公司在商业系统中部署了各种深度点击率(CTR)模型。为了获得更好的性能,需要在大量的训练数据上对深度CTR模型进行有效的训练,这使得加快训练过程成为一个重要问题。与具有密集训练数据的模型不同,CTR模型的训练数据通常是高维和稀疏的。为了将高维稀疏输入转换为低维密集实值向量,几乎所有的深度CTR模型都采用嵌入层,嵌入层很容易达到数百GB甚至TB。由于单个GPU无法承受所有嵌入参数,因此在执行分布式训练时,仅进行数据并行是不合理的。因此,现有的分布式推荐训练平台采用模型并行。具体来说,它们使用服务器的CPU(主机)内存来维护和更新嵌入参数,并利用GPU工作器进行向前和向后计算。不幸的是,这些平台遭受两个瓶颈:(1)主机和GPU之间的拉/推操作的延迟;(2)CPU服务器中的参数更新和同步。为了解决这些瓶颈,在本文中,我们提出了ScaleFreeCTR:一个基于MixCache的CTR模型分布式训练系统。具体地说,在SFCTR中,我们也将巨大的嵌入表存储在CPU中,但利用GPU而不是CPU来有效地进行嵌入同步。为了减少GPU主机和GPU之间的数据传输延迟,提出了MixCache机制和虚拟稀疏ID操作。进行了全面的实验和消融研究,以证明SFCTR的有效性和效率。
英文摘要:
Because of the superior feature representation ability of deep learning, various deep Click-Through Rate (CTR) models are deployed in the commercial systems by industrial companies. To achieve better performance, it is necessary to train the deep CTR models on huge volume of training data efficiently, which makes speeding up the training process an essential problem. Different from the models with dense training data, the training data for CTR models is usually high-dimensional and sparse. To transform the high-dimensional sparse input into low-dimensional dense real-value vectors, almost all deep CTR models adopt the embedding layer, which easily reaches hundreds of GB or even TB. Since a single GPU cannot afford to accommodate all the embedding parameters, when performing distributed training, it is not reasonable to conduct the data-parallelism only. Therefore, existing distributed training platforms for recommendation adopt model-parallelism. Specifically, they use CPU (Host) memory of servers to maintain and update the embedding parameters and utilize GPU worker to conduct forward and backward computations. Unfortunately, these platforms suffer from two bottlenecks: (1) the latency of pull \& push operations between Host and GPU; (2) parameters update and synchronization in the CPU servers. To address such bottlenecks, in this paper, we propose the ScaleFreeCTR: a MixCache-based distributed training system for CTR models. Specifically, in SFCTR, we also store huge embedding table in CPU but utilize GPU instead of CPU to conduct embedding synchronization efficiently. To reduce the latency of data transfer between both GPU-Host and GPU-GPU, the MixCache mechanism and Virtual Sparse Id operation are proposed. Comprehensive experiments and ablation studies are conducted to demonstrate the effectiveness and efficiency of SFCTR.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。