Manuscript Offprint
arXiv:2611.01702SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
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 and 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
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.
2.1 Sparse-Path Structure and Optimization Opportunities
The sparse path in recommendation training connects per-table computation, parameter access, and cross-device communication (Naumov et al., 2019; Mudigere et al., 2022). In the industrial video-platform task studied in this work (Figure 1), the forward pass prepares and routes inputs, looks up parameters, and assembles embeddings, while the backward

Figure 1. Schematic of the sparse path and optimization opportunities in the industrial video-platform task. A2A: all-to-all; T: embedding table.
pass prepares, exchanges, and merges gradients. These per-table repetitions and stage boundaries may be hidden behind opaque runtime calls. Optimization opportunities therefore depend not only on individual-operator efficiency but also on how per-table work is organized and coordinated with other training stages (Jangda et al., 2022).
These execution relations offer four classes of optimization opportunities. Compatible collectives with matching roles within a stage can be aggregated to amortize call overhead (Huang et al., 2026; Sergeev & Balso, 2018); independent per-table computations can execute concurrently while retaining member implementations (Ma et al., 2020); and structurally compatible member computations can be jointly compiled to reduce repeated launches and intermediate processing (Pan et al., 2023; 2024; Li et al., 2022). When a legal window exists between readiness and result consumption, sparse work can execute early and overlap other stages, subject to constraints such as parameter versions and buffer lifetimes (Jayarajan et al., 2019; Peng et al., 2019). The profitability and compatibility of these opportunities depend on workloads, resource conditions, and existing execution arrangements, motivating task-specific selection and organization of optimization strategies.
2.2 Challenges in Automatic Sparse-Path Optimization
Automatically optimizing the sparse path in industrial training requires recovering sufficient training semantics for graph-level analysis while preserving runtime encapsula-
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training

Figure 2. SparseLift architecture: sparse semantic lifting, incremental cost-based decisions, and constraint-aware planning. The resulting execution plan is reused during steady-state training. SRSV: Sparse Resource Semantic View; : Embedding table .
tion. Exposing only call inputs and outputs does not distinguish cross-table independence from the baseline's serial execution order, whereas expanding the entire runtime introduces implementation details irrelevant to optimization. Beyond forward data dependencies, forward–backward correspondences, collective ordering, parameter versions, and lifetimes spanning batches jointly constrain legal transformations; local numerical equivalence alone does not permit arbitrary reordering (Narayanan et al., 2019; Gao et al., 2025). Per-member workloads and communication volumes also affect candidate profitability (Wang et al., 2024b). The challenge is therefore to recover information sufficient for opportunity identification, legality checks, and cost assessment while retaining existing runtime mechanisms.
Optimization benefits depend on the execution context in which a strategy operates, making candidate selection inseparable from how strategies are executed together. Aggregation, parallelism, and generated implementations change communication granularity, resource contention, and region execution times, which in turn affect latency-hiding benefits; gains measured in isolation therefore cannot simply be added. In industrial training environments, asynchronous waiting and platform interference may also obscure candidate-induced timing changes, making direct comparisons of observed total execution times insufficient to distinguish strategy effects from environmental variation (Hashemi et al., 2018; Mytkowicz et al., 2009). Decisions must therefore rely on comparable evidence of relative cost in the context established by earlier choices, while organizing the selected strategies requires coordinating region implementations, execution order, and resource lifetimes so that local choices yield graph transformations and schedules that satisfy training execution constraints.
3 DESIGN
3.1 Overview
As shown in Figure 2, SparseLift organizes sparse-path compilation and optimization into three interconnected com-
ponents. First, sparse semantic lifting analyzes model structure and runtime information to reconstruct opaque nodes as analyzable subgraphs and a read-only Sparse Resource Semantic View (SRSV), exposing structural relations, execution constraints, and information for cost queries. Second, incremental cost models and decision algorithms evaluate feasible candidates by their cost changes relative to the current plan, automatically selecting applicable candidates for communication aggregation, subgraph parallelism, code generation, and latency hiding. Finally, the constraint-aware planner binds the selected candidates to their corresponding sparse regions and execution points, organizing graph transformations and scheduling while preserving training execution constraints to enable cross-table, cross-stage, and cross-iteration optimization. This process takes place during initialization and planning; the resulting execution plan is reused throughout steady-state training for the same task while its applicability conditions hold, avoiding replanning at every step.
3.2 Sparse Semantic Lifting
Sparse semantic lifting establishes an optimization-oriented semantic representation that distinguishes training execution relations that must be preserved from implementation choices that can be reorganized. To this end, we recover operation and resource facts according to optimization requirements, use execution constraints and transformation contracts to identify transformable sparse regions and legal candidates, and expose consistent information for subsequent decisions through the read-only SRSV. This representation grounds optimization opportunities, feasibility conditions, and cost information in a consistent set of semantic objects, enabling the recovered sparse structure to directly support strategy selection and organization.
Optimization-Directed Semantic Recovery. We bound semantic recovery by the information requirements of candidate transformations, using structural relations, execution constraints, and workload features to support opportunity identification, legality checks, and cost queries, respectively.
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
Table 1. Mapping recovered semantics to optimization feasibility and cost-based decisions.
| Optimization | Recovered relation | Feasibility checks | Cost inputs and decision |
|---|---|---|---|
| Communication aggregation | Collectives with matching semantic roles | Communication group; data type; layout mapping; collective ordering | Inputs: per-member traffic; packing/unpacking cost. Choice: roles to aggregate. |
| Subgraph parallelism | Independent table-local operations | Dependencies; workspace requirements; stream concurrency support | Inputs: per-member workloads; orchestration overhead. Choice: group count . |
| Code generation | Structurally compatible repeated computation | Value/gradient correspondence; address isolation; interface compatibility | Inputs: workload distribution; region execution time. Choice: implementation . |
| Latency hiding | Release-to-use relations | Input readiness; parameter version; batch identity; buffer lifetime | Input: complete schedule execution time. Choice: enable/disable. |
Specifically, adapters export operation facts and typed ports from module metadata, runtime interfaces, and lifecycle contracts to construct the sparse semantic graph , while on-demand observation supplies dynamic workload information. Here, , , and represent forward local operations, collectives, and backward operations, respectively. To capture training execution conditions beyond dataflow, we augment data and metadata dependencies with execution constraints that encode parameter versions, buffer ownership, collective ordering, and batch identity. This representation gives the compiler the training semantics needed to analyze candidate transformations without exposing every runtime implementation detail.
Transformable Structure and Legality. To avoid mistaking runtime call order for semantic dependencies, we distinguish execution relations that must be preserved from implementation orderings that may be changed: per-table calls do not inherently imply dependencies, whereas parameter-version readiness and resource release constrain legal execution points. Accordingly, the compiler partitions operations at communication-domain, parameter-version, resource-ownership, and consumption boundaries, then combines compatible operations into sparse regions through declarative patterns. The forward graph and a backward semantic overlay connect these regions to dense consumers, Auto-grad, and the optimizer lifecycle. We combine recovered dependency, ordering, and lifetime facts with the value correspondences and available implementations specified by transformation contracts to construct the feasibility predicate . This predicate allows candidates to reorganize execution while preserving data semantics and applicable constraints under their input-output mappings.
From Semantics to Decisions. To ground the analysis of different strategies in consistent semantic objects, we separate the transformable graph from the read-only SRSV, which supplies decision facts through stable region and
(a) Sparse semantics in the training graph

(b) SRSV: matching graph references
| S | : table-local lookup; reads |
|---|---|
| C | : key exchange; group ; layout |
| E | ; ; ready() |
| x observed | traffic (bytes) |
| calibrated | collective + layout responses |
Figure 3. Lifted graph slice and read-only SRSV. Gray: dataflow; purple: execution constraints; blue: compiler projection or handoff. A2A: all-to-all.
member references (Figure 3). These facts inform feasibility conditions and strategy-specific cost queries, providing a shared semantic basis for enforcing execution constraints and assessing performance benefits. To limit evidence-collection overhead, we scope observation to candidate requirements: retaining per-member workloads and source-destination rank traffic, checking capacity for additional buffers, and performing targeted calibration at safe points when timing measurements are missing. Evidence is bound to implementation variants, graphs, and environments, preserving workload differences across members while delimiting the conditions under which measurements can be reused. Table 1 shows how this information supports the four optimizations.
3.3 Incremental Cost Models
Incremental cost models assess candidate benefits in the execution context of the current plan, accounting for both interactions among optimizations and measurement interfer-
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
Algorithm 1 Incremental Strategy Selection
1: Input: view , contracts , validated plan , policy 2: ; 3: for all in order do 4: ; // Fix reference 5: 6: 7: if then 8: 9: // Bounded trials 10: for all do 11: if ValidEvidence() then 12: 13: // Rules below 14: 15: end if 16: end for 17: 18: end if 19: end for 20: return FreezePlan() // Reuse in training
ence in industrial training. Using relative cost changes as a common basis, we combine strategy-specific cost trade-offs with bounded calibration and shared procedures for evidence processing and applicability checks to establish admission and selection rules for communication aggregation, subgraph parallelism, code generation, and latency hiding. The selected candidates are then passed to the constraint-aware planner for organization into graph transformations and scheduling; when evidence is insufficient or inapplicable, the current choice is retained.
Context-Dependent Incremental Decisions. To account for the effects of previously selected strategies, we define the increment relative to the validated incumbent plan , where denotes the plan after applying the candidate, and measures the execution time of the affected region or complete schedule. We combine analytical cost tradeoffs with timing calibration in the target environment to select feasible candidates based on relative cost. Algorithm 1 evaluates communication aggregation, subgraph parallelism, and code generation in sequence, updating the context for subsequent evaluations with earlier choices before assessing latency hiding under the established region bindings. The algorithm takes the SRSV , transformation contracts , initial plan , and budget and policy parameters as inputs; each decision unit is a region, a set of compatible communication roles, or a complete schedule. We use to merge compatible bindings while maintaining implementation exclusivity and cross-strategy constraints and retaining all other incumbent bindings.
Shared Evidence and Applicability Boundaries. To ensure that calibration results apply to final execution, we perform bounded measurements after warmup and keep the measured implementations consistent with the plan bindings. For timing variability dominated by added waiting, we use the lower-tail statistic , taking the minimum over samples within each rank and then the -quantile across ranks. Communication aggregation, subgraph parallelism, and code generation use paired increments , where is the execution-time difference between a candidate and its corresponding reference, to mitigate shared environmental variation. Subgraph parallelism and code generation additionally interpolate neighboring reference measurements to mitigate drift. Latency hiding instead compares lower-tail execution times of complete schedules to reduce the influence of added waiting. Because residual interference in paired differences can have either sign, we use as an empirical decision statistic rather than an estimator with statistical confidence guarantees.
To make decisions under limited measurement resolution, we combine structural opportunities with measured evidence to define strategy-specific admission rules. We define and use to combine absolute resolution, relative response scale, and an interference budget. In the following, denotes the indicator function; , , and equal 1 when communication aggregation, the generated implementation, and latency hiding are selected, respectively. When evidence is missing, invalid, or inapplicable, we retain the incumbent binding; otherwise, we make selections according to the strategy-specific rules.
Communication Aggregation. We compare the cost of per-member communication with that of the complete pack-collective-unpack region to weigh fewer calls against the added overhead. records inter-rank traffic for compatible members, and aggregates matching source–destination entries; denotes packing and unpacking costs, including layout conversion, and denotes communication time. Define the reference response , interference budget , and call-reduction fraction :
We use to characterize the structural scale of launch amortization and paired measurements of the complete region to reject regressions beyond tolerance. Joint forward candidates are measured over the entire chain; when joint evidence is unavailable, decisions are made per communication role. Backward communication is evaluated independently.
Subgraph Parallelism. To balance parallelism gains against orchestration and contention overheads, we model
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
the cost of region over executor-provided feasible group counts and fixed partitions , with serial execution within groups and concurrency across groups. The model combines calibrated responses for member workload features , orchestration overhead , and a contention factor . Let and , and define as the median across samples of the cross-rank quantile responses. We use the structural score to assess member grouping against orchestration cost, while region measurements capture workload differences and actual contention; is the total number of members. The selection rule is:
We use and to limit noise-based tolerance relaxation, and define and , where is the orchestration timing resolution. Among the given partitions, we prefer configurations with fewer groups within the equivalence band to avoid unnecessary resource overhead.
Code Generation. To determine whether fewer launches from reorganizing computations across members offset the auxiliary overhead, we compare the generated implementation of a complete region with the selected nongenerated reference, modeling execution time as a function of member workloads and the target environment. Let . Within each rank, we compute the sample ranges of reference times, generated times, and paired differences, then define as the cross-rank quantile of the maximum of these three ranges and set :
We select the generated implementation when the measured increment is negative. A nonnegative increment within tolerance is admitted only when the member count and workload skew captured by support reorganizing work across members; the specific rule appears in Appendix A. To assess the implementation's overall benefit, we measure the complete region, including metadata processing, sorting, output projection, and kernel execution.
Latency Hiding. Within the recovered legal overlap windows and under the current region bindings, we compare
complete step times with one-step lookahead enabled and disabled to assess the overall benefit. Enabled samples are included only when the intended schedule executes and the prefetched results are consumed. With denoting disabled/enabled execution, define , , and , and let and :
To prevent local anomalies from dominating the overall decision, we veto a candidate only when both the cross-rank summary and all local responses exceed their respective regression thresholds. All four rules require candidates to pass legality and evidence-validity checks and use references constrained by contracts; policy parameters appear in Appendix A.

Figure 4. Latency hiding and its execution constraints. Dashed edges denote workspace availability, parameter-version, and result-consumption constraints.
3.4 Constraint-Aware Planning
The constraint-aware planner binds selected candidates to their target regions, implementations, and execution points, organizing them into compatible graph transformations and schedules that translate local strategy choices into coordinated cross-table, cross-stage, and cross-iteration optimization. Guided by recovered execution constraints and implementation contracts, we coordinate the combination and execution of subgraph optimizations, using cross-rank consistency checks and runtime dependency management to preserve training semantics throughout their integration and execution.
We realize the selected strategies as graph transformations on semantic regions, guided by value correspondences and execution constraints. For communication aggregation,
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
we rewrite compatible calls with matching semantic roles into pack–collective–unpack subgraphs, preserving member input–output mappings through source/destination layouts and element counts while updating collective sequences consistently across ranks. For subgraph parallelism, we retain implementations of independent members that support concurrency, execute serially within groups and concurrently across groups, and use GPU events and ownership management to preserve cross-stream dependencies and tensor lifetimes. Code generation instead replaces region implementations with batched implementations that reorganize structurally compatible computations within regions and across members while preserving value and gradient correspondences, address isolation, and the specified numerical semantics.
We use the recovered readiness and lifetime constraints to determine early-execution boundaries (Figure 4): parameter-independent preparation executes early once inputs are ready and workspace is released, while parameter access waits for the required version. We use batch-identity checks and GPU events to ensure that consumers receive matching, completed prefetch results, and maintain consistent communication groups, call counts, and ordering across ranks on both the prefetch-hit and prefetch-miss paths of the one-step-lookahead schedule. Sparse work can thus overlap other stages within legal windows, reducing its exposed time on the training critical path.
Before activation, we require each rank to check the graph, environment, plan, evidence, and communication-resource identifiers; if a check fails, all ranks retain the validated plan. If a failure occurs after partial submission, we terminate execution after synchronization and resource cleanup to prevent replay from causing duplicate communication or writes.
3.5 Implementation
We integrate SparseLift with PyTorch model classes or sparse modules through sparselift.compile. An adapter written once per runtime enables automatic semantic lifting, decision-making, planning, and graph transformation for each training task without task-specific code. We perform analysis and planning on the domain-specific semantic graph constructed by the adapter, using module execution interfaces and training lifecycle hooks to connect the forward pass, Autograd, and the optimizer. To expose cross-table backward relations, we introduce batched Autograd boundaries after capability and correctness checks and establish Autograd connections on the main thread. Selected transformations execute through the runtime’s communication, stream, and event interfaces, with generated kernels implemented in Triton, while preserving the original parameter-access interfaces and parameter-server storage
mechanism.
We compile and tune the generated code before collecting timing samples and share the resulting artifacts across ranks. Reusing the SRSV, queries, and decision logic across run-times requires adapting fact export, lifecycle integration, and candidate execution interfaces, along with recalibration in the target environment. We treat host-thread and input-queue coordination as supporting infrastructure, decoupled from graph-plan selection.
4 EVALUATION
4.1 Experimental Setup
Platform and Workloads. Table 2 lists the configurations of our experimental environment. We conduct the industrial evaluation within a video platform’s continuous training pipeline, using training data derived from real-world statistics collected from over one billion users of the platform. The model contains 1B dense parameters and 100B sparse parameters. It constructs input representations through multi-table embeddings, attention over behavioral sequences, and feature interactions, followed by a RankMixer (Zhu et al., 2025) backbone and multitask prediction towers. The industrial experiments cover 1, 8, and 16 GPUs, with the 16-GPU configuration spanning two identically configured nodes. All industrial experiments use a batch size of 2048, with sparse parameters stored on dedicated parameter servers. The public DLRM (Naumov et al., 2019) benchmark uses the Criteo Kaggle dataset (Criteo, 2014) and runs on 1/2/4/8 GPUs within a single node, with a global batch size of 16384, an embedding dimension of 256, FP32 precision, and SGD with a learning rate of 0.1.
Baselines and Comparisons. The industrial evaluation uses the native training implementation as the baseline. Its dense path has already been optimized through manual tuning and torch.compile, while its sparse path follows the production runtime’s existing execution scheme. Given the industrial task’s integration with dedicated parameter servers and the training pipeline, we preserve these execution conditions to assess the benefits of SparseLift’s sparse-path
Table 2. Experimental platform specifications per node.
| Component | Configuration |
| GPUs | 8× H20 (96 GiB each) |
| CPUs | 2× EPYC 9K84 (96 cores each) |
| Host memory | 2.2 TiB |
| Intra-node interconnect | NVLink |
| Network port rate | 200 Gb/s Ethernet |
| PyTorch / CUDA | 2.6.0 / 12.6 |
| NCCL | 2.21.5 |
| TorchRec / FBGEMM-GPU | 1.1.0 / 1.1.0 |
| Triton | 3.2.0 |
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
optimizations within the existing system. We denote the complete optimization plan automatically selected and organized by SparseLift as Full and disable individual strategies to examine their contributions.
Beyond the industrial task, we use the public DLRM benchmark to assess SparseLift's performance under a different workload and include TorchRec (Greenberg et al., 2022) as a cross-stack reference. DLRM-Baseline and SparseLift share the same model, data-processing pipeline, and training configuration, providing a controlled comparison of execution optimizations. TorchRec retains its default optimization configuration and native execution stack for DLRM, along with its own data preprocessing and data split.
Measurement Methodology. We compute industrial throughput from the primary training process's logs over the first 1000 steps, excluding the first 60 steps and the first step of each 10-step period. For each remaining period, we divide the total sample count by the total execution time of its nine included steps and report the median and 25th–75th percentile interval across 94 steady-state periods. Industrial throughput is measured with profiling enabled, and the stage breakdown uses four stage-timing records per configuration. Sparse forward and backward times include communication; the remaining forward, backward, and Other times are derived by subtracting constituent stages from their enclosing totals. Each DLRM configuration is run independently five times, with 50 warmup steps followed by 450 measured steps per run. We first take the median across the nine measurement windows within each run, then the median across the five runs. DLRM performance is measured using CUDA events with profiling disabled, excluding data loading and host-to-GPU transfer overhead. We assess training quality using loss over the first 1000 industrial training steps and test metrics after one complete training epoch for DLRM.
4.2 Industrial Performance and Stage Breakdown
Figure 6 compares SparseLift with the native baseline on the industrial task. On 8 GPUs, median steady-state throughput for ordinary training steps increases from 4334.6 to 5050.7 samples/s, a gain of 16.5%. The upward shift in the interquartile interval indicates that the gains extend across typical steady-state periods. Building on a baseline with an already optimized dense path, SparseLift recovers sparse execution relations to bring cross-table computation and communication into a unified analysis, reducing sparse-processing overhead and coordinating sparse work with other training stages to further improve training throughput.
The stage breakdown in Figure 5(a) further reveals the sources of these gains. On 8 GPUs, sampled step time decreases from 451.5 to 378.5 ms, a reduction of 16.2%. Sparse forward time decreases from 44.25 to 3.13 ms, while sparse backward time decreases from 28.00 to 9.13 ms. The
Table 3. Workload-specific execution choices. Keep ref. denotes retaining the reference execution.
| Strategy | Industry | DLRM |
|---|---|---|
| Aggregation | size/key/embed/grad | Embeddings |
| Parallelism | 2/2/1/4 groupsa | Keep ref. |
| Code generation | Gradient preparation | Keep ref. |
| Latency hiding | One-step lookahead | Keep ref. |
<sup>a</sup>Input preparation / output assembly / gradient preparation / gradient merging. Generated gradient preparation requires one group.
substantial reduction in exposed forward time is consistent with latency hiding: recovered readiness and lifetime constraints establish legal windows for early execution, allowing some results to be ready before their consumers execute and thereby reducing waiting on the consumption path. The backward pass exploits recovered cross-table compatibility through communication aggregation and code generation to reduce communication startup and computation scheduling overhead. Together, these results reflect the combined effects of reducing sparse-processing overhead and its exposure on the training critical path. Sampled step times also decrease substantially relative to the native baseline on 1 and 16 GPUs, indicating that the optimization benefits extend to larger-scale execution of this training task.
4.3 Automatic Plan Selection and Strategy Contributions
Table 3 presents the execution plans automatically selected for the two workloads on 8 GPUs. The industrial plan identifies aggregation targets by communication role and selects parallel group counts and implementations for individual sparse regions. Gradient preparation uses a generated implementation whose contract requires single-group execution, while other regions retain member implementations and execute in groups. These choices illustrate how cross-table computation restructuring and concurrency organization are jointly selected according to region characteristics. Latency hiding further uses recovered execution constraints to identify legal windows. Its complete-schedule calibration yields 384.13 ms, compared with 418.75 ms for the incumbent reference, providing cost evidence for adopting one-step lookahead. Together, these choices translate recovered semantics into concrete region implementations and execution schedules that are reused during subsequent training.
Figure 5(b) examines each strategy's contribution within the complete plan by disabling it individually. Full has a sampled step time of 378 ms; disabling communication aggregation, subgraph parallelism, latency hiding, or code generation increases latency by 1.3%, 1.1%, 12.7%, or 2.9%, respectively. Latency hiding has the largest effect, consistent with both the direction of the calibrated benefit and the reduction in exposed forward time, indicating that legal overlap windows allow sparse work to execute early and
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training


Figure 5. Industrial stage breakdown and ablation. (a) Base/Lift: Baseline/SparseLift; error bars: total-step standard deviations over four measurements. (b) Percentages show latency increases upon individual strategy removal from Full.

Figure 6. Industrial throughput on 8 GPUs. Points aggregate nine ordinary steps; bands/dashes show IQRs/medians after step 60.
reduce consumer waiting. The remaining strategies further reduce execution overhead through communication amortization, concurrent execution of independent work, and cross-table computation restructuring. Full performs best among these ablation configurations, supporting the joint contribution of region-level execution optimizations and cross-stage scheduling to industrial training performance.
For DLRM, cost evaluation selects embedding communication aggregation while retaining the reference execution for the other strategies. Per-table embedding exchanges offer a clear opportunity to amortize call overhead, whereas local sparse computation and scheduling opportunities are more limited, consistent with the different choices made for this workload. Subgraph parallelism requires sufficient independent work to amortize orchestration overhead, generated implementations require gains from cross-member restructuring to offset auxiliary processing costs, and latency hiding must balance overlap benefits against scheduling overhead within legal windows. These conditions make strategy applicability dependent on the specific region and execution context. The differences between the two plans show how SparseLift combines recovered structure with cost evidence to make selections while allowing each workload to retain execution choices suited to its characteristics.
4.4 DLRM Performance
Figure 7 shows that SparseLift's relative gains increase with GPU count. Its single-GPU performance is comparable to DLRM-Baseline, while it achieves model-execution speedups of 1.19×, 1.37×, and 1.60× on 2, 4, and 8 GPUs, respectively, increasing 8-GPU throughput from 1.837 to 2.937 M samples/s. With a fixed global batch size, computation per GPU decreases as GPU count grows, leaving less computation over which to amortize the overhead of separate communication calls and making communication aggregation increasingly beneficial. Strong-scaling efficiency on 8 GPUs improves from 19.8% to 31.7%, further supporting the interpretation that aggregation reduces communication startup and scheduling overhead to improve multi-GPU execution efficiency. SparseLift matches TorchRec closely on 4 GPUs and achieves a 1.26× speedup on 8 GPUs, demonstrating that its automatic optimization remains competitive in the multi-GPU configurations of this public benchmark.
Table 4. DLRM quality after one epoch. Loss MAE/RMSE compare 24 matched steps with DLRM-Baseline, scaled by 10⁵.
| System | ROC-AUC | AP | LogLoss | MAE | RMSE |
|---|---|---|---|---|---|
| DLRM-Baseline | 0.7884 | 0.5832 | 0.46541 | — | — |
| SparseLift | 0.7883 | 0.5829 | 0.46575 | 1.975 | 3.645 |
4.5 Training Consistency
Figure 8 shows similar downward loss trends for the industrial Baseline and SparseLift, with mean losses of 0.21098 and 0.20926 over the final 100 steps, respectively, indicating that execution reorganization does not materially alter the observed training trajectory. As shown in Table 4, the mean absolute difference and root mean square difference in DLRM loss at common logged steps are 1.975 × 10⁻⁵ and 3.645 × 10⁻⁵, respectively, while ROC-AUC, AP, and LogLoss remain close after one training epoch. Training trajectories provide evidence of consistent learning dynamics,
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training

Figure 7. DLRM model-execution performance, reported as five-run medians. (a) SparseLift speedups over DLRM-Baseline and TorchRec. (b) Each system's single-GPU-relative speedup per GPU. (c) Throughput with 25th–75th percentile error bars.
complemented by final metrics that assess training quality. Together, these results support comparable training behavior under SparseLift in the evaluated configurations, with no evident degradation in training quality accompanying the performance gains.
5 RELATED WORK
Parameter Sharding. Parameter sharding methods address embedding-table partitioning, placement, and load balancing, using parameter sizes, access patterns, and device resources to determine how parameters are organized. AutoShard, DreamShard, and NeuroShard combine learned cost estimation with search to guide sharding and placement decisions (Zha et al., 2022a;b; 2023); RecShard uses access distributions to plan embedding-parameter placement across memory tiers (Sethi et al., 2022). These methods primarily make decisions about parameter partitions and their mapping to hardware resources.
Specialized Training Systems. Specialized training systems organize communication, computation, and input processing within their respective runtimes. TorchRec provides automatic sharding and pipelines data transfer, communication, and computation (Greenberg et al., 2022); PICASSO combines packing, resource interleaving, and hot-entry caching (Zhang et al., 2022); FusedRec aggregates
embedding communication (Huang et al., 2026); and EM-Bark jointly optimizes sharding, communication compression, and pipelining (Liu et al., 2024). RAP targets preprocessing fusion and resource-aware co-execution (Wang et al., 2024a), while TicTac uses communication ordering to manage iteration time and its variability in distributed training (Hashemi et al., 2018). These systems focus on specific execution mechanisms and their associated scheduling relationships.
Domain-Specific Compilers. Compilers for recommendation workloads primarily target inference graphs or local embedding computations. RECom uses an Embedding Column representation to support cross-column fusion, while RACE optimizes inference graphs and device placement (Pan et al., 2023; Li et al., 2025). RecFlex uses interference-aware tuning to select feature schedules and generate fused kernels (Pan et al., 2024); Ruggeri et al. study embedding-lookup dataflows and multicore mappings (Ruggeri et al., 2024); and Ember uses hierarchical intermediate representations to generate embedding code for decoupled access-execute architectures (Siracusa et al., 2026). These approaches primarily optimize explicitly represented inference graphs or embedding computation regions, without a unified treatment of cross-stage and cross-iteration execution relations in sparse training paths.

Figure 8. Industrial training loss. Faint/solid curves show per-step values/25-step centered means.
6 CONCLUSION
We present SparseLift, available at https://anonymou.s.4open.science/r/SparseLift, which brings runtime-internal computation, communication, and execution relations into automatic graph optimization through sparse semantic lifting, incremental cost-based decisions, and constraint-aware planning. On an industrial video-platform task with 1B dense parameters and 100B sparse parameters, SparseLift improves steady-state throughput by 16.5%. DLRM further demonstrates workload-specific strategy selection and performance gains. These results show that recovering sparse execution relations and using them
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
to select and organize optimizations can translate hidden opportunities into industrial training gains. Future work will validate SparseLift in additional industrial recommendation settings and explore joint compilation and optimization of sparse paths and dense computation.
REFERENCES
Acun, B., Murphy, M., Wang, X., Nie, J., Wu, C.-J., and Hazelwood, K. Understanding training efficiency of deep learning recommendation models at scale. In 2021 IEEE International Symposium on High-Performance Computer Architecture (HPCA), pp. 802–814. IEEE, 2021.
Ansel, J., Yang, E., He, H., Gimelshein, N., Jain, A., Voznesensky, M., Bao, B., Bell, P., Berard, D., Burovski, E., et al. Pytorch 2: Faster machine learning through dynamic python bytecode transformation and graph compilation. In Proceedings of the 29th ACM international conference on architectural support for programming languages and operating systems, volume 2, pp. 929–947, 2024.
Bik, A. J. C., Koanantakool, P., Shpeisman, T., Vasilache, N., Zheng, B., and Kjolstad, F. Compiler support for sparse tensor computations in mlir. ACM Transactions on Architecture and Code Optimization (TACO), 19:1 – 25, 2022. URL https://api.semanticscholar.org/CorpusID:246680261.
Criteo. Display Advertising Challenge. Kaggle, 2014. URL https://www.kaggle.com/c/criteo-display-ad-challenge. Accessed: 2026-09-21.
Gao, Y., Luo, J., Lin, H., Zhang, H., Wu, M., and Yang, M. dI²: Detecting communication deadlocks in deep learning jobs. In Proceedings of the 33rd ACM International Conference on the Foundations of Software Engineering, FSE Companion '25, pp. 27–38, New York, NY, USA, 2025. Association for Computing Machinery. ISBN 9798400712760. doi: 10.1145/3696630.3728529. URL https://doi.org/10.1145/3696630.3728529.
Greenberg, D., Taylor, C., Ivchenko, D., Liu, X., and Sudarshan, A. Introducing TorchRec, a library for modern production recommendation systems. https://pytorch.org/blog/introducing-torchrec/, February 2022. Accessed: 2026-09-21.
Hashemi, S. H., Jyothi, S. A., and Campbell, R. H. Tictac: Accelerating distributed deep learning with communication scheduling. arXiv: Distributed, Parallel, and Cluster Computing, 2018. URL https://api.semanticscholar.org/CorpusID:52920970.
Huang, X., Li, F., Hu, R., Zhang, J., Peng, Y., Zhou, Y., Chen, F., and Zhang, X. Fusedrec: Fused embedding communication for distributed recommendation training on gpus. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pp. 14910–14918, 2026.
Jangda, A., Huang, J., Liu, G., Sabet, A. H. N., Maleki, S., Miao, Y., Musuvathi, M., Mytkowicz, T., and Saarikivi, O. Breaking the computation and communication abstraction barrier in distributed machine learning workloads. In Proceedings of the 27th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, ASPLOS '22, pp. 402–416, New York, NY, USA, 2022. Association for Computing Machinery. ISBN 9781450392051. doi: 10.1145/3503222.3507778. URL https://doi.org/10.1145/3503222.3507778.
Jayarajan, A., Wei, J., Gibson, G. A., Fedorova, A., and Pekhimenko, G. Priority-based parameter propagation for distributed dnn training. ArXiv, abs/1905.03960, 2019. URL https://api.semanticscholar.org/CorpusID:85461415.
Jia, Z., Padon, O., Thomas, J. J., Warszawski, T., Zaharia, M. A., and Aiken, A. Taso: optimizing deep learning computation with automatic generation of graph substitutions. Proceedings of the 27th ACM Symposium on Operating Systems Principles, 2019. URL https://api.semanticscholar.org/CorpusID:202726856.
Lattner, C., Amini, M., Bondhugula, U., Cohen, A., Davis, A., Pienaar, J. A., Riddle, R., Shpeisman, T., Vasilache, N., and Zinenko, O. Mlir: Scaling compiler infrastructure for domain specific computation. 2021 IEEE/ACM International Symposium on Code Generation and Optimization (CGO), pp. 2–14, 2021. URL https://api.semanticscholar.org/CorpusID:232127418.
Li, A., Zheng, B., Pekhimenko, G., and Long, F. Automatic horizontal fusion for gpu kernels. 2022 IEEE/ACM International Symposium on Code Generation and Optimization (CGO), pp. 14–27, 2022. URL https://api.semanticscholar.org/CorpusID:220302874.
Li, S., Yang, X., Liu, J., Qi, Q., Liao, J., Huang, J., and Wang, J. Race: Operator choreography for inference acceleration in personalized recommender system. In Proceedings of the 37th ACM Symposium on Parallelism in Algorithms and Architectures, SPAA '25, pp. 473–486, New York, NY, USA, 2025. Association for Computing Machinery. ISBN 9798400712586. doi: 10.1145/3694906.3743310. URL https://doi.org/10.1145/3694906.3743310.
Lian, X., Yuan, B., Zhu, X., Wang, Y., He, Y., Wu, H., Sun, L., Lyu, H., Liu, C., Dong, X., et al. Persia: An open,
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
hybrid system scaling deep learning-based recommenders up to 100 trillion parameters. In Proceedings of the 28th ACM SIGKDD conference on knowledge discovery and data mining, pp. 3288–3298, 2022.
Liu, S., Zheng, N., Kang, H., Simmons, X., Zhang, J., Langer, M., Zhu, W., Lee, M., and Wang, Z.-H. Embedding optimization for training large-scale deep learning recommendation systems with embark. Proceedings of the 18th ACM Conference on Recommender Systems, 2024. URL https://api.semanticscholar.org/CorpusID:273232832.
Liu, Z., Zou, L., Zou, X., Wang, C., Zhang, B., Tang, D., Zhu, B., Zhu, Y., Wu, P., Wang, K., et al. Monolith: Real time recommendation system with collisionless embedding table. arXiv preprint arXiv:2209.07663, 2022.
Ma, L., Xie, Z., Yang, Z., Xue, J., Miao, Y., Cui, W., Hu, W., Yang, F., Zhang, L., and Zhou, L. Rammer: Enabling holistic deep learning compiler optimizations with rtasks. In USENIX Symposium on Operating Systems Design and Implementation, 2020. URL https://api.semanticscholar.org/CorpusID:228990152.
Mudigere, D., Hao, Y., Huang, J., Jia, Z., Tulloch, A., Sridharan, S., Liu, X., Ozdal, M., Nie, J., Park, J., et al. Software-hardware co-design for fast and scalable training of deep learning recommendation models. In Proceedings of the 49th Annual International Symposium on Computer Architecture, pp. 993–1011, 2022.
Mytkowicz, T., Diwan, A., Hauswirth, M., and Sweeney, P. F. Producing wrong data without doing anything obviously wrong! In International Conference on Architectural Support for Programming Languages and Operating Systems, 2009. URL https://api.semanticscholar.org/CorpusID:1184319.
Narayanan, D., Harlap, A., Phanishayee, A., Seshadri, V., Devanur, N. R., Ganger, G. R., Gibbons, P. B., and Zaharia, M. A. Pipedream: generalized pipeline parallelism for dnn training. Proceedings of the 27th ACM Symposium on Operating Systems Principles, 2019. URL https://api.semanticscholar.org/CorpusID:202488191.
Naumov, M., Mudigere, D., Shi, H.-J. M., Huang, J., Sundaraman, N., Park, J., Wang, X., Gupta, U., Wu, C.-J., Azzolini, A. G., et al. Deep learning recommendation model for personalization and recommendation systems. arXiv preprint arXiv:1906.00091, 2019.
Pan, Z., Zheng, Z., Zhang, F., Wu, R., Liang, H., Wang, D., Qiu, X., Bai, J.-J., Lin, W., and Du, X. Recom: A compiler approach to accelerating recommendation model inference with massive embedding columns. Proceedings
of the 28th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 4, 2023. URL https://api.semanticscholar.org/CorpusID:267548515.
Pan, Z., Zheng, Z., Zhang, F., Xie, B., Wu, R., Smith, S., Liu, C., Ruwase, O., Du, X., and Ding, Y.-F. Recflex: Enabling feature heterogeneity-aware optimization for deep recommendation models with flexible schedules. SC24: International Conference for High Performance Computing, Networking, Storage and Analysis, pp. 1–15, 2024. URL https://api.semanticscholar.org/CorpusID:274860476.
Peng, Y., Zhu, Y., Chen, Y., Bao, Y.-X., Yi, B., Lan, C., Wu, C., and Guo, C. A generic communication scheduler for distributed dnn training acceleration. Proceedings of the 27th ACM Symposium on Operating Systems Principles, 2019. URL https://api.semanticscholar.org/CorpusID:202741181.
Ruggeri, G., Andri, R., Pagliari, D. J., and Cavigelli, L. Deep recommender models inference: Automatic asymmetric data flow optimization. In 2024 IEEE 42nd International Conference on Computer Design (ICCD), pp. 517–520, 2024. doi: 10.1109/ICCD63220.2024.00085.
Sergeev, A. and Balso, M. D. Horovod: fast and easy distributed deep learning in tensorflow. ArXiv, abs/1802.05799, 2018. URL https://api.semanticscholar.org/CorpusID:3398835.
Sethi, G., Acun, B., Agarwal, N., Kozyrakis, C., Trippel, C., and Wu, C.-J. Recshard: statistical feature-based memory optimization for industry-scale neural recommendation. Proceedings of the 27th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, 2022. URL https://api.semanticscholar.org/CorpusID:246276191.
Siracusa, M., Hsu, O., Soria-Pardos, V., Randall, J., Grasset, A., Biscondi, E., Joseph, D., Allen, R., Kjolstad, F., Planas, M. M., and Armejach, A. Ember: A compiler for embedding operations on decoupled access-execute architectures. In 2026 IEEE/ACM International Symposium on Code Generation and Optimization (CGO), pp. 150–163, 2026. doi: 10.1109/CGO68049.2026.11395192.
Wang, Z., Wang, Y., Deng, J., Zheng, D., Li, A., and Ding, Y. Rap: Resource-aware automated gpu sharing for multi-gpu recommendation model training and input preprocessing. Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, 2024a. URL https://api.semanticscholar.org/CorpusID:269322507.
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
Wang, Z., Wang, Y., Feng, B., Huang, G., Mudigere, D., Muthiah, B., Li, A., and Ding, Y. Oper: Optimality-guided embedding table parallelization for large-scale recommendation model. In USENIX Annual Technical Conference, 2024b. URL https://api.semanticscholar.org/CorpusID:271217554.
Zeng, C., Liao, X., Cheng, X., Tian, H., Wan, X., Wang, H., and Chen, K. Accelerating neural recommendation training with embedding scheduling. In Symposium on Networked Systems Design and Implementation, 2024. URL https://api.semanticscholar.org/CorpusID:268556432.
Zha, D., Feng, L., Bhushanam, B., Choudhary, D., Nie, J., Tian, Y., Chae, J., Ma, Y., Kejariwal, A., and Hu, X. Autoshard: Automated embedding table sharding for recommender systems. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, KDD '22, pp. 4461–4471, New York, NY, USA, 2022a. Association for Computing Machinery. ISBN 9781450393850. doi: 10.1145/3534678.3539034. URL https://doi.org/10.1145/3534678.3539034.
Zha, D., Feng, L., Tan, Q., Liu, Z., Lai, K.-H., Bhushanam, B., Tian, Y., Kejariwal, A., and Hu, X. Dreamshard: Generalizable embedding table placement for recommender systems. ArXiv, abs/2210.02023, 2022b. URL https://api.semanticscholar.org/CorpusID:252715489.
Zha, D., Feng, L., Luo, L., Bhushanam, B., Liu, Z., Hu, Y., Nie, J., Huang, Y., Tian, Y., Kejariwal, A., et al. Pre-train and search: Efficient embedding table sharding with pre-trained neural cost models. Proceedings of Machine Learning and Systems, 5:68–88, 2023.
Zhang, Y., Chen, L., Yang, S., Yuan, M., Yi, H., Zhang, J., Wang, J., Dong, J., Xu, Y., Song, Y., et al. Picasso: Unleashing the potential of gpu-centric training for wide-and-deep recommender systems. In 2022 IEEE 38th International Conference on Data Engineering (ICDE), pp. 3453–3466. IEEE, 2022.
Zhu, J., Fan, Z., Zhu, X., Jiang, Y., Wang, H., Han, X., Ding, H., Wang, X., Zhao, W., Gong, Z., Yang, H., Chai, Z., Chen, Z., Zheng, Y., Chen, Q., Zhang, F., Zhou, X., Xu, P., Yang, X., Wu, D., and Liu, Z. Rankmixer: Scaling up ranking models in industrial recommenders. In Proceedings of the 34th ACM International Conference on Information and Knowledge Management, CIKM '25, pp. 6309–6316, New York, NY, USA, 2025. Association for Computing Machinery. ISBN 9798400720406. doi: 10.1145/3746252.3761507. URL https://doi.org/10.1145/3746252.3761507.
7 AI USAGE DISCLOSURE
During the research and writing of this paper, we used AI-assisted tools for writing refinement, assistance with code testing, and deployment guidance. These tools were used in a supporting capacity, and the paper's content, code implementation, experimental results, and related materials were all handled and verified by us through hands-on work.
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
A DECISION RULES AND CALIBRATION DETAILS
This appendix details the parameterization, candidate construction, and calibration procedures used by the reference implementation of the automatic decision rules in Section 3.3.
Decision-Rule Parameters. The reference implementation uses and computes quantiles by linear interpolation between adjacent order statistics. The parameters are for latency hiding and for code generation. Subgraph parallelism uses , and communication aggregation uses . These coefficients combine with calibrated response scales and interference budgets to determine admission tolerances and comparison bands; candidates are selected automatically using recovered semantics and relative costs.
Structural Tie-Breaking for Generated Implementations. For supported gradient-preparation regions, we instantiate using the workload proxy below. Here, is the member count and is the embedding dimension. For each aligned observation , and are the respective cross-rank maxima of the member's key count and unique-row count. We then compute workload and take its median across observations. The ratio captures skew among members with positive workloads and is zero for an empty set. This criterion applies only to nonnegative measured increments within tolerance; admission still depends on paired measurements of the complete region.
Candidate Construction. The reference industrial executor exposes group counts of , , and for input preparation, output assembly, and gradient merging, respectively, excluding counts greater than the number of members. Each partitions the fixed member order into contiguous groups whose sizes differ by at most one member, with larger groups first. For gradient preparation, the decision compares nongenerated and generated implementations. When the generated implementation is selected, the planner binds it to one group as required by its contract. The executor-provided candidate sets delimit the available choices, from which the decision algorithm automatically selects execution configurations based on region-level incre-
Table 5. Reference calibration budgets per measurement point and attempt. Warmup is excluded from observations.
| Strategy | Warmup and measured executions |
|---|---|
| Communication aggregation | One warmup pair, then two measured pairs per compatible role or complete forward chain. |
| Subgraph parallelism | One warmup per variant, then a bidirectional sweep with two region observations per group count. |
| Code generation | One warmup per implementation, then complete-region measurements in the order ref → gen → gen → ref. |
| Latency hiding | One warmup step, then two valid complete-step observations per schedule. |
mental costs.
Bounded Calibration. Table 5 gives the execution budget for one calibration attempt at each measurement point in the reference implementation. Parallelism and code generation interpolate neighboring reference anchors to construct paired increments, while communication pairs alternate execution order. Enabled latency-hiding observations count only when the intended schedule executes and its prefetched results are consumed. These budgets apply per measurement point; feasible candidates and their query requirements determine the calibration scope. The selected plan is reused during subsequent steady-state training of the same task.
The reference implementation obtains the host scheduling time scale from a warmed worker fan-out/fan-in probe. Each rank submits four empty tasks to a four-worker pool and waits for completion over nine rounds. We discard the first two rounds, take the median duration of the remaining rounds, and then take the cross-rank -quantile. This time scale informs orchestration tolerance, while region measurements capture workload and contention during actual execution.
In Algorithm 1, BuildEvidence and SelectCandidate implement evidence construction and the four selection rules in the main text. MergeBindings implements under the transformation contracts while preserving other region bindings, and FreezePlan fixes the plan for subsequent execution.
B INDUSTRIAL INTEGRATION AND DESIGN RATIONALE
This appendix expands the industrial integration described in Section 3.5, focusing on how the existing parameter servers and training pipeline shape the compilation interface and execution organization.
Preserving Production Runtime Boundaries. We integrate graph optimization through separate model and training-loop entry points. Before the first actual forward
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
pass, the model entry point locates and compiles sparse modules in place. Instance-scoped lifecycle wrappers expose complete optimizer steps, input readiness, and result consumption to the compiler and are restored when the training invocation exits. This integration preserves the platform's training-loop implementation and global trainer types. Existing parameter servers continue to manage sparse-parameter storage and access, while native iterator call sites and dense and sparse optimizer steps retain their original behavior. The compiler can therefore reorganize sparse execution within the platform's established parameter-management and training mechanisms.
Making Runtime Facts Checkable. The adapter exports table and operation identities, typed ports, communication layouts, parameter versions, and workspace ownership, from which the compiler constructs regions. For example, communication cost queries use per-member source–destination traffic in bytes, while execution contracts retain data types and element-count splits and check receive splits against payload sizes. Keeping these units explicit gives cost comparisons and communication execution a consistent semantic basis. Missing or ambiguous facts remain unknown and prevent selection of candidates that require them. Applying the method to another runtime requires adapting fact export, lifecycle integration, and candidate execution contracts, followed by calibration in the target environment.
Bounding Early Execution by Lifecycle Visibility. The industrial platform migrates resources at sparse-cache period transitions, but its interface exposes only the return of the native iterator, without complete readiness dependencies for internal cache streams. We therefore retain the formal forward path for the first batch of a period and do not submit its sparse preparation or associated communication ahead of the iteration. Period identity comes from the actual prefetcher. This design reflects that parameter-independent computation can still depend on cache and workspace lifetimes. Preserving the original path at boundaries with incomplete readiness evidence allows subsequent ordinary batches to use validated overlap windows without assuming additional platform-internal behavior.
Distributed Activation and Submission Boundaries. To preserve collective ordering under schedule changes, we create and warm up dedicated communication groups at boundaries traversed by all ranks in the same order; subsequent data paths only read ready handles. Sparse-gradient communication uses a separate group from DDP's default group. Activation updates only configuration fields explicitly bound by the new plan, preserving prior choices elsewhere. If plan checks fail before submission, ranks jointly retain the validated plan. Communication-group initialization failure cannot instead be handled by individual ranks switching to the default group. If execution fails after partial submission,
Table 6. Industrial ordinary-step throughput on 8 GPUs, in samples/s, over 94 steady-state periods per system.
| System | 25th pct. | Median | 75th pct. |
|---|---|---|---|
| Baseline | 4260.4 | 4334.6 | 4370.3 |
| SparseLift | 4982.8 | 5050.7 | 5095.8 |
the system terminates execution after synchronization and resource cleanup to prevent duplicate communication or writes. This distinction separates a rejectable plan choice from an execution failure that cannot safely be replayed.
C DETAILED INDUSTRIAL BENCHMARK RESULTS
This appendix reports the numerical results and decision evidence underlying the industrial figures in the main text. All experiments use the same video-platform recommendation task, with 1 or 8 GPUs on one node and 16 GPUs across two nodes; dedicated parameter servers store the sparse parameters. Within each configuration, the comparison preserves native parameter access and dense-path optimizations and evaluates native sparse execution against SparseLift's automatic plan.
C.1 Throughput and Stage Accounting
Table 6 reports the throughput distribution on 8 GPUs. Each system contributes 94 periods from the first 1000 steps after excluding the first 60 steps and the transition step at the start of each period. Period throughput divides the total sample count of the nine ordinary steps by their total execution time, with profiling enabled. The quartiles describe the distribution across periods, and median throughput improves by 16.5%.
Stage Measurements. Table 7 expands the complete stage accounting in Figure 5(a). From five recorded profiler steps per configuration, we exclude one observation marked as a transient spike in the measurement record and compute stage means and the sample standard deviation of total step time over the four retained observations. Sparse forward and backward include communication. Other forward and backward times subtract the sparse components from their respective totals, and Other subtracts complete forward and backward times from total step time.
On 8 GPUs, 60.0 ms of the 73.0 ms difference in sampled step time lies in the exposed sparse-forward and sparse-backward components. The forward reduction is consistent with reduced consumer waiting when preparation executes early, while the backward difference is consistent with reorganizing compatible communication and gradient computation across tables. Total step time decreases by 13.8%, 16.2%, and 15.2% on 1, 8, and 16 GPUs, respectively, across
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
Table 7. Industrial stage timings in ms over four retained observations per row. SD is the sample standard deviation of total step time. Component and total means are rounded independently.
| GPUs | System | Sparse forward | Other forward | Sparse backward | Other backward | Other | Total step | SD |
|---|---|---|---|---|---|---|---|---|
| 1 | Baseline | 26.75 | 112.50 | 25.50 | 213.25 | 50.75 | 428.75 | 0.50 |
| 1 | SparseLift | 2.50 | 110.75 | 9.75 | 214.25 | 32.50 | 369.75 | 1.50 |
| 8 | Baseline | 44.25 | 113.75 | 28.00 | 222.75 | 42.75 | 451.50 | 7.14 |
| 8 | SparseLift | 3.13 | 108.88 | 9.13 | 227.88 | 29.50 | 378.50 | 2.38 |
| 16 | Baseline | 48.00 | 110.50 | 39.50 | 229.00 | 47.25 | 474.25 | 3.40 |
| 16 | SparseLift | 6.00 | 105.75 | 23.50 | 233.25 | 33.50 | 402.00 | 3.56 |
Table 8. Industrial lookahead calibration in ms. Each rank reports its minimum of two measurements; the aggregate increment is .
| Rank | Incumbent | Lookahead | Increment |
|---|---|---|---|
| 0 | 418.464 | 383.889 | -34.575 |
| 1 | 418.752 | 384.108 | -34.644 |
| 2 | 418.752 | 383.996 | -34.756 |
| 3 | 418.684 | 384.095 | -34.589 |
| 4 | 418.953 | 383.948 | -35.005 |
| 5 | 418.676 | 384.198 | -34.479 |
| 6 | 418.477 | 384.364 | -34.114 |
| 7 | 418.731 | 383.998 | -34.733 |
| Aggregate | 418.752 | 384.131 | -34.621 |
both single-node and two-node configurations of the same task.
C.2 Observed Decisions and Strategy Contributions
Complete-Schedule Decisions. Table 8 reports rank-level evidence for the latency-hiding decision on 8 GPUs. The reference already includes region implementations selected by preceding decisions, so calibration compares the incumbent plan with its one-step lookahead candidate. Each rank performs one warmup and retains two valid complete-step measurements per schedule, requiring actual consumption of prefetched results on the enabled path. The candidate minimum is lower on all eight ranks. Taking the cross-rank 75th percentile separately for each schedule reduces the response from 418.752 to 384.131 ms. This evidence supports admitting latency hiding under the main-text rule, and execution records show identical plan bindings across the eight ranks.
Contributions within the Combined Plan. Table 9 reports absolute latency and relative changes after strategy removal. Ablation follows the exclusions marked in its measurement records, retaining four observations per configuration and three when latency hiding is disabled; its means are computed separately from the stage-breakdown table. Full has the lowest recorded mean latency among these configurations. Removing latency hiding increases that mean by 48
Table 9. Industrial strategy ablation on 8 GPUs. counts retained step observations; increases are relative to Full and are not additive.
| Configuration | Step (ms) | Increase | |
|---|---|---|---|
| Baseline | 4 | 451 | 19.3% |
| Full | 4 | 378 | — |
| Without aggregation | 4 | 383 | 1.3% |
| Without parallelism | 4 | 382 | 1.1% |
| Without latency hiding | 3 | 426 | 12.7% |
| Without code generation | 4 | 389 | 2.9% |
ms; the other removals increase it by 4–11 ms. Calibration compares a candidate with the incumbent, ablation measures conditional contributions within Full, and throughput evaluates the final plan against the production baseline. Together, these measurements connect decision evidence to industrial performance at distinct levels.
D PUBLIC-BENCHMARK CONFIGURATION AND MEASUREMENT DETAILS
This appendix supplements Section 4 with public-benchmark configuration and statistical details, complementing the industrial evaluation. Hardware and software versions are listed in Table 2.
DLRM Configuration. Table 10 specifies additional architectural settings and the random seed. All three implementations use a global batch size of 16384 and an embedding dimension of 256. TorchRec specifies batch size per rank, so its setting is 16384/R on R GPUs. It uses DistributedModelParallel and TrainPipelineSparseDist, with embedding sharding selected by its native planner and embedding computation executed through FBGEMM. DLRM-Baseline and SparseLift share preprocessing and data splits, while TorchRec retains its native preprocessing, categorical hashing, and data splits. Accordingly, the training-quality table uses the same-stack comparison, and TorchRec serves as a cross-stack performance reference.
DLRM Timing and Aggregation. Each run uses 50 warmup steps followed by 450 measured steps in nine con-
SparseLift: Automatically Optimizing Opaque Sparse Paths in Industrial-Scale Recommendation Model Training
Table 10. Additional DLRM settings. MLP widths specify layer outputs, excluding input dimensions.
| Setting | Value |
|---|---|
| Dense input features | 13 |
| Bottom MLP widths | 512–256–64–256 |
| Top MLP widths | 512–256–1 |
| Feature interaction | Pairwise dot products |
| Random seed | 123 |
secutive 50-step windows. At each window boundary, we synchronize, sum the recorded per-step CUDA-event durations on each rank, take the maximum sum across ranks, and divide by 50 to obtain mean step time. Timing covers forward execution, communication, loss computation, backward execution, and the optimizer, excluding data loading and host-to-GPU transfers. Window throughput is the global batch size divided by this mean step time in seconds. We take the median over nine windows per run and then the median of the five independent run medians. Throughput error bars give the 25th–75th percentile interval over these five values. All measured windows are retained in the reported model-execution statistics.