Dynamic Sparse Learning: A Novel Paradigm for Efficient Recommendation

Shuyao Wang, Yongduo Sui, Jiancan Wu, Zhi Zheng, Hui Xiong · DOI

Introduction

Deep learning-based recommendation systems (RS) face a significant scalability challenge. As user and item counts reach the millions, the resulting embedding tables create massive memory overhead and slow inference speeds. Traditional efficiency solutions often fall into a "double cost" trap: Knowledge Distillation requires training a massive teacher model first, AutoML involves expensive architecture searches, and standard model pruning typically requires a full "train-prune-retrain" cycle.

Dynamic Sparse Learning (DSL) breaks this cycle by allowing models to be "born sparse." It ensures end-to-end efficiency by maintaining a lightweight model from the very first training iteration, reducing both training and inference costs without sacrificing recommendation quality.

Methodology: The DSL Paradigm

The core of DSL is maintaining a fixed parameter budget throughout the model's lifecycle. Unlike traditional methods that sparsify a pre-trained model, DSL begins with Sparsity Initialization, where only a fraction (e.g., 10-30%) of weights are active from the start.

The DSL workflow: from dense initialization to a dynamic prune-and-grow cycle during training.

As shown in Figure 1, the training process includes a periodic Dynamic Exploration Stage. Every $\Delta T$ iterations, the model performs two key operations:

  1. Pruning: Weights with the smallest magnitudes are removed as "dead wood."
  2. Growth (Regret Mechanism): Previously inactive weights with the highest gradient magnitudes are reactivated. This allows the model to recover important features that may have been prematurely pruned.

To ensure convergence, a Cosine Annealing Schedule gradually reduces the number of weights swapped over time, stabilizing the architecture as training progresses.

Experimental Results

The researchers evaluated DSL across six benchmark datasets, including large-scale sets like Amazon-Book, Yelp2018, and Gowalla. The results demonstrate that DSL can achieve performance parity with, or even exceed, dense baselines while using significantly fewer parameters.

Performance comparison of DSL against baselines across three large-scale datasets. DSL maintains high recall even at extreme sparsity levels.

As illustrated in the recall curves above, DSL (red line) consistently outperforms other pruning methods like Random Pruning (RP) and Orthogonal Matching Pursuit (OMP). Notably, at "extreme sparsity" (marked by the red star), DSL maintains performance comparable to the full dense baseline. On models like NeuMF and ConvNCF, DSL reduced computational costs by 50% to 74.4%.

Key Insights

  • Popularity-Sparsity Correlation: DSL automatically learns to assign denser embeddings to popular items and active users, while maintaining sparse representations for the "long tail." It effectively discovers that niche items do not require complex mathematical representations.
  • Winning Tickets in One Pass: While previous "Lottery Ticket Hypothesis" methods required multiple iterative rounds to find efficient sub-networks, DSL identifies these "winning tickets" in a single training run.
  • Model Agnostic: The paradigm is compatible with various architectures, from simple Matrix Factorization to complex Graph Convolutional Networks (GCNs).

Conclusion and Future Work

Dynamic Sparse Learning offers a path toward sustainable recommendation systems by slashing the resource requirements of the training phase. While the current work focuses on embedding tables, future research may extend these dynamic techniques to dense MLP layers and explore specialized hardware optimizations to further improve wall-clock training speeds.

Summary updated

BibTeX
@inproceedings{wang2024dynamic,
  author = {Shuyao Wang and Yongduo Sui and Jiancan Wu and Zhi Zheng and Hui Xiong},
  title = {{Dynamic Sparse Learning: A Novel Paradigm for Efficient Recommendation}},
  booktitle = {WSDM},
  year = {2024},
  doi = {10.1145/3616855.3635780},
}
Figure