StackRec: Efficient Training of Very Deep Sequential Recommender Models by Iterative Stacking

Qingyao Wu · DOI

TL;DR

This paper introduces StackRec, a novel framework that significantly accelerates the training of very deep sequential recommender models. By leveraging the insight that layers in well-trained deep models exhibit similar functional distributions, StackRec iteratively stacks pre-trained layers from shallower models to build deeper ones, achieving comparable accuracy with drastically reduced training times.

What Problem Does This Paper Address?

Modern sequential recommendation (SR) systems, crucial for personalizing user experiences in the face of information overload, have seen impressive gains with deep learning. However, achieving state-of-the-art performance often necessitates extremely deep network architectures, sometimes exceeding 100 layers. Training these deep models is computationally prohibitive, especially with massive user interaction datasets, leading to impractically long training times. This paper tackles the challenge of making these powerful deep SR models more computationally feasible to train.

Methods

The core of StackRec lies in its iterative layer stacking approach. The authors observed that intermediate layers/blocks within a well-trained deep SR model tend to have very similar distributions. This suggests that the knowledge learned by these layers can be transferred. StackRec exploits this by:

  1. Pre-training a shallow SR model: A base SR model (like NextItNet) is trained for a certain number of layers.
  2. Stacking pre-trained layers: The parameters from the trained shallow model are copied and stacked to create a deeper model. Two stacking strategies are proposed:
  3. Adjacent-block stacking: Pairs of identical blocks are placed consecutively.
  4. Cross-block stacking: The entire shallow network is duplicated and appended.
  5. Fine-tuning: The newly formed deep model is then fine-tuned.
  6. Iteration: This process can be repeated iteratively to build arbitrarily deep models.

This method allows for knowledge transfer from a shallower, faster-to-train model to a deeper one, effectively providing a strong warm-start that significantly reduces convergence time.

Datasets

The authors evaluated StackRec on three real-world datasets:

  • ML20: A standard dataset from MovieLens, commonly used for recommendation tasks.
  • Kuaibao: A feed recommendation dataset from Tencent, including news, micro-videos, and ads.
  • ColdRec: A publicly available dataset used for evaluating transfer learning scenarios, comprising source and target domains.

Key Insights and Ideas

  • Very Deep Networks are Necessary for SR: Contrary to common practice in recommendation systems (which often use fewer than 10 layers), this work demonstrates that very deep networks (e.g., 128 layers) are indeed beneficial for achieving optimal performance in SR tasks, similar to trends seen in computer vision.
  • Intermediate Layers are Functionally Similar: The key insight is that well-trained intermediate layers/blocks in deep SR models exhibit highly similar distributions. This similarity is the foundation for knowledge transfer.
  • Stacking Enables Efficient Deep Model Training: By stacking pre-trained layers, StackRec provides a powerful warm-start, drastically reducing the training time required for deep SR models without sacrificing accuracy.
  • StackRec is Adaptable: The framework is shown to be effective across different SR scenarios (continual learning, training from scratch, transfer learning) and applicable to various SR architectures.

Key Results

  • Significant Speedup: StackRec achieved substantial training time reductions, with speedups of up to 2.5x to 3.2x in the CL scenario and 40% to 35% in the TS scenario compared to training deep models from scratch.
  • Comparable Accuracy: Despite the speedup, StackRec maintained comparable or even slightly better recommendation accuracy (measured by MRR@5, HR@5, NDCG@5) than models trained from scratch.
  • Effective Knowledge Transfer: In the TF scenario, StackRec demonstrated effective knowledge transfer, achieving around 3x speedup while yielding comparable performance.
  • Generalizability: StackRec proved effective when applied to other SR models like GRec, SASRec, and SSEPT, not just NextItNet.

Limitations and Future Work

  • Initialization Sensitivity: While StackRec provides a good warm-start, the paper notes that the initial shallow model's performance and the stacking strategy can influence the final deep model's performance.
  • Hyperparameter Tuning: The paper mentions that specific hyperparameter choices (like dilation factors and batch sizes) were empirically determined and might require further tuning for optimal performance on different datasets or architectures.
  • Future Work: The authors suggest that StackRec's ability to build very deep models could be further explored for lifelong learning systems, where models continuously adapt to new data. The framework's applicability to other deep learning domains beyond SR could also be investigated.

Summary updated

BibTeX
@inproceedings{wu2021stackrec,
  author = {Qingyao Wu},
  title = {{StackRec: Efficient Training of Very Deep Sequential Recommender Models by Iterative Stacking}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2021},
  url = {https://openreview.net/forum?id=zYKSCzxkEWD},
}
Figure