arXiv:2611.01702cs.LGNov 2026

Manuscript Offprint

arXiv:2611.01702

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

Changqing Shi, Anan Liu, Genbao Chen, Junchao Yang

ABSTRACT

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×1.60\times and 1.26×1.26\times model-execution speedups over DLRM-Baseline and TorchRec, respectively.

1 INTRODUCTION

Training large-scale recommendation models has become one of the most important machine learning workloads in modern Internet services, while the continued growth of data and model sizes poses formidable challenges to training systems (Acun et al., 2021; Lian et al., 2022; Mudigere et al., 2022). In the industrial setting studied in this work, a single production use case generates billions of new training samples per day; the model contains hundreds of billions of sparse embedding parameters, as well as billions of dense network parameters. The massive sparse parameter space and its input-dependent, dynamic access patterns (Wang et al., 2024b) typically require the sparse path to span multiple devices, involving substantial per-table computation, input-dependent data reorganization, and frequent collective communication (Naumov et al., 2019; Sethi et al., 2022; Zeng et al., 2024). Its execution efficiency therefore directly affects training throughput, hardware utilization, and the efficiency of model updates (Liu et al., 2022).

Prior work has explored sparse-path optimization along three main directions: parameter sharding (Sethi et al., 2022; Zha et al., 2022b; 2023), specialized training systems (Zhang et al., 2022; Liu et al., 2024; Huang et al., 2026), and domain-specific compilers (Pan et al., 2023;

2024). However, these approaches have yet to provide a unified analysis of the sparse path's internal structure, stage boundaries, resource semantics, and cross-stage and cross-iteration execution relationships within the training computation graph to support whole-graph rewriting and scheduling. Moreover, they are often tightly coupled to specific runtimes and rely on predefined rules or fixed compatibility conditions, limiting their ability to automatically select and compose optimization strategies as training tasks evolve.

Collectively, these studies reveal substantial optimization opportunities along the sparse path, while also showing that existing capabilities remain fragmented across disconnected layers of parameter planning, runtime mechanisms, and local compilation (Lattner et al., 2021; Bik et al., 2022; Jangda et al., 2022; Ansel et al., 2024; Jia et al., 2019; Wang et al., 2024a). Recovering the internal semantics of opaque sparse path, making sparse operations visible and analyzable entities that can participate in compiler-directed decisions, and thereby expanding the whole-graph optimization space therefore remain essential to improving the efficiency of large-scale recommendation model training.

Our key insight is that incorporating the sparse path into whole-graph optimization does not require reconstructing the runtime in its entirety. Instead, lifting the minimal semantic and resource facts that determine optimization opportunities, legality, and profitability is sufficient to reconstruct

1^{1}Tencent, Beijing, China. Correspondence to: Anan Liu anan-liu@tencent.com.

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

transparent subgraphs that support compiler optimization. Furthermore, the structural semantics of these subgraphs can define candidate transformations and their feasible space, while their incremental costs relative to the incumbent execution plan provide reliable evidence for strategy selection.

Building on these insights, we present SparseLift, a low-overhead compiler for the sparse path of large-scale recommendation training. SparseLift recovers fine-grained sparse operations and their execution relationships along semantic boundaries to construct analyzable subgraphs. We develop incremental cost models for subgraph optimizations and design a constraint-aware planner to automatically select and organize them into execution plans. We evaluate SparseLift on a production training task and the public DLRM benchmark. On the industrial task, SparseLift improves steady-state throughput for ordinary training steps by 16.5% over the native baseline. On DLRM, it achieves up to a 1.26× model-execution speedup over TorchRec. Our key contributions are as follows:

  • We propose sparse semantic lifting, which analyzes model structure and runtime information to reconstruct key semantics and resource facts as analyzable sub-graphs amenable to whole-graph optimization, addressing the structural mismatch between the critical sparse path and its semantic opacity in the computation graph.

  • We design incremental cost models and decision algorithms that define the feasible space using the recovered semantics and execution constraints. They automatically select subgraph optimization strategies based on cost changes relative to the incumbent plan. This enables more accurate assessment of optimization benefits despite the various sources of interference encountered during production training.

  • We design a constraint-aware planner to automatically organize the selected subgraph optimization strategies into graph transformations and scheduling decisions. We validate SparseLift's improvements in production training efficiency on a video recommendation platform serving approximately one billion users.

References (46)