从(GPU)开始训练个性化推荐系统:向前看而不是向后看
Training Personalized Recommendation Systems from (GPU) Scratch: Look Forward not Backwards
摘要:
个性化推荐模型(RecSys)是由超大规模机服务的最流行的机器学习工作负载之一。训练RecSys的一个关键挑战是它的高内存容量要求,达到数百GB到TB的模型大小。在RecSys中,所谓的嵌入层占内存使用的大部分,因此当前的系统采用混合CPU-GPU设计,以使大型CPU内存存储占用内存的嵌入层。不幸的是,训练嵌入涉及几个内存带宽密集型操作,这与缓慢的CPU内存不一致,导致性能开销。先前的工作提出了在GPU内存中缓存频繁访问的嵌入,作为将嵌入层流量过滤到CPU内存的方法,但本文观察到这种缓存设计的几个限制。在这项工作中,我们提出了一个从根本上不同的方法来设计嵌入缓存的RecSys。我们提出的SockchPipe架构利用RecSys训练的独特属性来开发嵌入式缓存,不仅可以看到过去,还可以看到“未来”的缓存访问。SockchPipe利用这种属性来保证嵌入层的活动工作集可以“总是”在我们提出的缓存设计中被捕获,从而使嵌入层训练能够以GPU内存速度进行。
英文摘要:
Personalized recommendation models (RecSys) are one of the most popular machine learning workload serviced by hyperscalers. A critical challenge of training RecSys is its high memory capacity requirements, reaching hundreds of GBs to TBs of model size. In RecSys, the so-called embedding layers account for the majority of memory usage so current systems employ a hybrid CPU-GPU design to have the large CPU memory store the memory hungry embedding layers. Unfortunately, training embeddings involve several memory bandwidth intensive operations which is at odds with the slow CPU memory, causing performance overheads. Prior work proposed to cache frequently accessed embeddings inside GPU memory as means to filter down the embedding layer traffic to CPU memory, but this paper observes several limitations with such cache design. In this work, we present a fundamentally different approach in designing embedding caches for RecSys. Our proposed ScratchPipe architecture utilizes unique properties of RecSys training to develop an embedding cache that not only sees the past but also the "future" cache accesses. ScratchPipe exploits such property to guarantee that the active working set of embedding layers can "always" be captured inside our proposed cache design, enabling embedding layer training to be conducted at GPU memory speed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。