CowClip:将1 GPU上的CTR预测模型训练时间从12小时减少到10分钟
CowClip: Reducing CTR Prediction Model Training Time from 12 hours to 10 minutes on 1 GPU
摘要:
点击率(CTR)预测任务是预测用户是否会点击推荐项目。由于每天在线生成的数据量令人难以置信,因此加速CTR预测模型训练对于确保模型最新并降低训练成本至关重要。提高训练速度的一种方法是应用大批量训练。然而,如计算机视觉和自然语言处理任务所示,大批量训练很容易损失准确性。我们的实验表明,以前的缩放规则在CTR预测神经网络的训练失败。为了解决这个问题,我们首先从理论上证明了不同频率的id使得在缩放批量大小时缩放超参数具有挑战性。为了在大批量设置中稳定训练过程,我们开发了自适应列式裁剪(CowClip)。它为嵌入提供了一个简单有效的缩放规则,该规则保持学习率不变并缩放L2损失。我们在两个真实世界的数据集上使用四个CTR预测网络进行了广泛的实验,并成功地将原始批量规模扩展了128倍,而没有准确性损失。特别是,对于Criteo数据集上的CTR预测模型DeepFM训练,我们的优化框架将批量大小从1K扩大到128K,AUC提高超过0.1%,并将单个V100 GPU上的训练时间从12小时减少到10分钟。我们的代码位于https://github.com/bytedance/LargeBatchCTR。
英文摘要:
The click-through rate (CTR) prediction task is to predict whether a user will click on the recommended item. As mind-boggling amounts of data are produced online daily, accelerating CTR prediction model training is critical to ensuring an up-to-date model and reducing the training cost. One approach to increase the training speed is to apply large batch training. However, as shown in computer vision and natural language processing tasks, training with a large batch easily suffers from the loss of accuracy. Our experiments show that previous scaling rules fail in the training of CTR prediction neural networks. To tackle this problem, we first theoretically show that different frequencies of ids make it challenging to scale hyperparameters when scaling the batch size. To stabilize the training process in a large batch size setting, we develop the adaptive Column-wise Clipping (CowClip). It enables an easy and effective scaling rule for the embeddings, which keeps the learning rate unchanged and scales the L2 loss. We conduct extensive experiments with four CTR prediction networks on two real-world datasets and successfully scaled 128 times the original batch size without accuracy loss. In particular, for CTR prediction model DeepFM training on the Criteo dataset, our optimization framework enlarges the batch size from 1K to 128K with over 0.1% AUC improvement and reduces training time from 12 hours to 10 minutes on a single V100 GPU. Our code locates at https://github.com/bytedance/LargeBatchCTR.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。