GBA:一种无需调优的推荐模型同步/异步训练切换方法
GBA: A Tuning-free Approach to Switch between Synchronous and Asynchronous Training for Recommendation Model
摘要:
基于参数服务器(PS)架构的高并发异步训练和基于全归约(AR)架构的高性能同步训练是推荐模型最常用的分布式训练模式。虽然同步AR训练旨在提高训练效率,但当共享集群中存在落伍者(慢速工作者)时,异步PS训练将是训练速度的更好选择,特别是在有限的计算资源下。充分利用这两种训练模式的理想方法是根据群集状态在它们之间切换。然而,切换训练模式通常需要调整超参数,这非常耗时和消耗资源。我们发现两个障碍的调谐免费的方法:不同的分布的梯度值和陈旧的梯度从掉队者。本文提出了PS上的全局批量梯度聚合(GBA),它聚合并应用与同步训练相同的全局批量大小的梯度。一个令牌控制过程的实施,以组装的梯度和衰减的梯度严重陈旧。我们提供的收敛性分析,揭示GBA具有可比的同步训练的收敛性能,并证明GBA的推荐模型对梯度老化的鲁棒性。三个工业规模的推荐任务的实验表明,GBA是一种有效的无调谐切换方法。与最先进的异步训练相比,GBA在AUC指标上实现了高达0.2%的改进,这对于推荐模型来说是非常重要的。同时,在硬件资源紧张的情况下,GBA的速度至少是同步训练的2.4倍。
英文摘要:
High-concurrency asynchronous training upon parameter server (PS) architecture and high-performance synchronous training upon all-reduce (AR) architecture are the most commonly deployed distributed training modes for recommendation models. Although synchronous AR training is designed to have higher training efficiency, asynchronous PS training would be a better choice for training speed when there are stragglers (slow workers) in the shared cluster, especially under limited computing resources. An ideal way to take full advantage of these two training modes is to switch between them upon the cluster status. However, switching training modes often requires tuning hyper-parameters, which is extremely time- and resource-consuming. We find two obstacles to a tuning-free approach: the different distribution of the gradient values and the stale gradients from the stragglers. This paper proposes Global Batch gradients Aggregation (GBA) over PS, which aggregates and applies gradients with the same global batch size as the synchronous training. A token-control process is implemented to assemble the gradients and decay the gradients with severe staleness. We provide the convergence analysis to reveal that GBA has comparable convergence properties with the synchronous training, and demonstrate the robustness of GBA the recommendation models against the gradient staleness. Experiments on three industrial-scale recommendation tasks show that GBA is an effective tuning-free approach for switching. Compared to the state-of-the-art derived asynchronous training, GBA achieves up to 0.2% improvement on the AUC metric, which is significant for the recommendation models. Meanwhile, under the strained hardware resource, GBA speeds up at least 2.4x compared to synchronous training.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。