arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.01702cs.LG
收藏

SparseLift:自动优化工业级推荐模型训练中的不透明稀疏路径

SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training

Tencent(腾讯)

Changqing Shi, Anan Liu, Genbao Chen, Junchao Yang

AI总结:

SparseLift是优化工业级推荐模型训练稀疏路径的低开销编译器,通过重构不透明节点为可分析子图,在视频平台推荐任务与DLRM基准上分别提升吞吐量16.5%、实现1.60倍加速。

摘要:

稀疏路径由稀疏操作和集体通信组成,是大规模推荐模型的关键组件。然而,这些操作在训练计算图中常被表示为不透明节点,阻碍了全图优化。本文提出SparseLift,一种用于大规模推荐训练稀疏路径的低开销编译器,它将稀疏计算与通信暴露给全图分析,以扩大优化空间、提升训练效率。通过分析模型结构与运行时信息,SparseLift将不透明节点重构为可分析子图,恢复图内稀疏计算与通信的资源语义。基于恢复的语义,设计增量成本模型与感知约束规划器,自动选择并组织子图优化,形成执行计划,在后续稳态训练中复用。在含1000亿稀疏参数的工业视频平台推荐任务及公开DLRM基准上评估SparseLift,结果显示:相较于原生基线,其将普通工业训练步骤的稳态吞吐量提升16.5%;在DLRM上,较DLRM-Baseline与TorchRec分别实现1.60倍与1.26倍的模型执行加速。

英文摘要:

The sparse path, comprising sparse operations and collective communication, is a critical component of large-scale recommendation models. However, these operations are often represented as opaque nodes in the training computation graph, hindering whole-graph optimization. We present SparseLift, a low-overhead compiler for the sparse path of large-scale recommendation training. It exposes sparse computation and communication to whole-graph analysis to expand the optimization space and improve training efficiency. By analyzing model structure and runtime information, SparseLift reconstructs opaque nodes as analyzable subgraphs, recovering the resource semantics of sparse computation and communication within the graph. Building on the recovered semantics, we design incremental cost models and a constraint-aware planner to automatically select and organize subgraph optimizations into an execution plan that is reused during subsequent steady-state training. We evaluate SparseLift on an industrial video-platform recommendation task with 100B sparse parameters and the public DLRM benchmark. SparseLift improves steady-state throughput for ordinary industrial training steps by 16.5\% over the native baseline. On DLRM, it achieves $1.60\times$ and $1.26\times$ model-execution speedups over DLRM-Baseline and TorchRec, respectively.

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

↑