[Paper Review] Adaptive Dense-to-Sparse Paradigm for Pruning Online Recommendation System with Non-Stationary Data
This paper proposes a novel Dense-to-Sparse (D2S) paradigm and an adaptive pruning algorithm (AUX) for online recommendation systems facing non-stationary data. By maintaining a dense model for continual adaptation and using a gradient- and magnitude-aware pruning strategy, the method dynamically learns layer-wise sparsity, reducing accuracy loss during distribution shifts while enabling efficient, on-demand sparse model generation with minimal hand-tuning.
Large scale deep learning provides a tremendous opportunity to improve the quality of content recommendation systems by employing both wider and deeper models, but this comes at great infrastructural cost and carbon footprint in modern data centers. Pruning is an effective technique that reduces both memory and compute demand for model inference. However, pruning for online recommendation systems is challenging due to the continuous data distribution shift (a.k.a non-stationary data). Although incremental training on the full model is able to adapt to the non-stationary data, directly applying it on the pruned model leads to accuracy loss. This is because the sparsity pattern after pruning requires adjustment to learn new patterns. To the best of our knowledge, this is the first work to provide in-depth analysis and discussion of applying pruning to online recommendation systems with non-stationary data distribution. Overall, this work makes the following contributions: 1) We present an adaptive dense to sparse paradigm equipped with a novel pruning algorithm for pruning a large scale recommendation system with non-stationary data distribution; 2) We design the pruning algorithm to automatically learn the sparsity across layers to avoid repeating hand-tuning, which is critical for pruning the heterogeneous architectures of recommendation systems trained with non-stationary data.
Motivation & Objective
- To address the challenge of maintaining model accuracy in online recommendation systems under non-stationary data distribution shifts.
- To design a pruning method that automatically learns optimal sparsity per layer without manual tuning, given the heterogeneous architecture of recommendation models.
- To enable efficient, on-demand generation of sparse models that retain performance despite data distribution shifts.
- To overcome the limitation of standard pruning in incremental training, where pruned models fail to adapt due to fixed sparsity patterns.
Proposed method
- Proposes a Dense-to-Sparse (D2S) training paradigm that maintains a full dense model for continual adaptation to data distribution shifts.
- Introduces the AUX pruning algorithm, which combines magnitude-based pruning with Taylor approximation to assess weight importance more accurately.
- Uses a regularization term (λ) to control overall sparsity and allows consistent sparsity ratios across different data ranges and model sizes.
- Employs a dynamic monitoring mechanism to detect accuracy divergence between dense and sparse models and triggers re-pruning when needed.
- Applies unstructured pruning to fully connected layers, significantly reducing FLOPs and memory footprint while preserving model performance.
- Leverages the dense model as a reference to validate and guide the sparsity adaptation process, ensuring robustness during distribution shifts.
Experimental results
Research questions
- RQ1How can pruning be effectively applied to online recommendation systems with non-stationary data without degrading model accuracy?
- RQ2What pruning strategy enables automatic, layer-specific sparsity learning in heterogeneous recommendation architectures?
- RQ3Can a dense model be used as a stable reference to enable dynamic, on-demand sparse model generation under data shift?
- RQ4How does combining magnitude and gradient-based importance measures improve pruning performance compared to magnitude-only methods?
- RQ5What is the impact of regularization strength (λ) on the consistency and performance of learned sparsity patterns?
Key findings
- The proposed AUX pruning algorithm significantly reduces accuracy loss compared to standard magnitude-based pruning (MP) and other baselines, especially under data distribution shifts.
- The D2S paradigm enables sparse models to maintain performance comparable to dense models by leveraging continual adaptation via the dense reference.
- Layer-wise sparsity is not correlated with layer depth or size, validating the need for adaptive, learned sparsity rather than heuristic rules.
- The algorithm achieves consistent sparsity ratios across different data segments and model sizes when using the same λ value, reducing tuning overhead.
- The use of Taylor approximation in weight importance scoring leads to better pruning decisions, particularly for weights of moderate magnitude, improving overall model robustness.
- Dynamic monitoring of accuracy divergence between dense and sparse models enables timely re-pruning, preserving performance during long-term deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.