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

面向推荐系统训练的异构加速流水线

Heterogeneous Acceleration Pipeline for Recommendation System Training

The University of British Columbia(不列颠哥伦比亚大学);Georgia Institute of Technology(佐治亚理工学院)

Muhammad Adnan, Yassaman Ebrahimzadeh Maboud, Divya Mahajan, Prashant J. Nair

AI总结:

本文提出异构加速流水线 Hotline,通过数据与模型感知调度,将流行与非流行 embedding 分别置于 GPU 和 CPU 执行,相比 Intel 优化的 CPU-GPU DLRM 基准将端到端训练时间减少 2.2 倍。

摘要:

推荐模型依赖深度学习网络和大型 embedding 表,导致计算和内存密集型过程。这些模型通常使用混合 CPU-GPU 或纯 GPU 配置进行训练。混合模式结合了 GPU 的神经网络加速和 CPU 的 embedding 表内存存储与供应,但可能产生显著的 CPU 到 GPU 传输时间。相比之下,纯 GPU 模式利用跨多个 GPU 的高带宽内存(HBM)来存储 embedding 表。然而,这种方法成本高昂且存在扩展性问题。本文引入了 Hotline,一种解决这些问题的异构加速流水线。Hotline 利用只有少数 embedding 条目被频繁访问(流行)的洞察,开发了一种数据感知和模型感知的调度流水线。该方法将非流行 embedding 存储在 CPU 主内存中,将流行 embedding 存储在 GPU 的 HBM 中。为实现这一点,Hotline 加速器将一个 mini-batch 拆分为流行和非流行 micro-batch。它从 CPU 收集非流行 micro-batch 所需的工作参数,同时由 GPU 执行流行 micro-batch。硬件加速器动态协调 GPU 上流行 embedding 和来自 CPU 主内存的非流行 embedding 的执行。真实世界的数据集和模型证实了 Hotline 的有效性,与 Intel 优化的 CPU-GPU DLRM 基准相比,平均端到端训练时间减少了 2.2 倍。

英文摘要:

Recommendation models rely on deep learning networks and large embedding tables, resulting in computationally and memory-intensive processes. These models are typically trained using hybrid CPU-GPU or GPU-only configurations. The hybrid mode combines the GPU's neural network acceleration with the CPUs' memory storage and supply for embedding tables but may incur significant CPU-to-GPU transfer time. In contrast, the GPU-only mode utilizes High Bandwidth Memory (HBM) across multiple GPUs for storing embedding tables. However, this approach is expensive and presents scaling concerns. This paper introduces Hotline, a heterogeneous acceleration pipeline that addresses these concerns. Hotline develops a data-aware and model-aware scheduling pipeline by leveraging the insight that only a few embedding entries are frequently accessed (popular). This approach utilizes CPU main memory for non-popular embeddings and GPUs' HBM for popular embeddings. To achieve this, Hotline accelerator fragments a mini-batch into popular and non-popular micro-batches. It gathers the necessary working parameters for non-popular micro-batches from the CPU, while GPUs execute popular micro-batches. The hardware accelerator dynamically coordinates the execution of popular embeddings on GPUs and non-popular embeddings from the CPU's main memory. Real-world datasets and models confirm Hotline's effectiveness, reducing average end-to-end training time by 2.2x compared to Intel-optimized CPU-GPU DLRM baseline.

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

↑