Improved Recurrent Neural Networks for Session-based Recommendations

Yong Kiam Tan, Xinxing Xu, Yong Liu

Introduction

Session-based recommendation is a critical task in modern e-commerce and content platforms, particularly when user profiles are unavailable due to "cold-start" scenarios—such as new users or those browsing anonymously. While Recurrent Neural Networks (RNNs), specifically Gated Recurrent Units (GRUs), have shown promise in modeling these short-term sequences, they often struggle with overfitting on sparse data and the computational overhead of large output spaces. This paper introduces several architectural and training enhancements to significantly boost the performance and efficiency of GRU-based recommenders.

The Session-Based Recommendation Challenge

Traditional recommendation systems often rely on long-term user histories (e.g., Matrix Factorization). However, in session-based contexts, the model must predict the next item based solely on the current sequence of clicks. The authors identify three primary hurdles:

  1. Temporal Shifts: User preferences and item popularities change rapidly over time.
  2. Data Scarcity: Small datasets lead to overfitting, where the model memorizes specific sequences rather than learning generalizable patterns.
  3. The Softmax Bottleneck: Predicting a probability distribution over tens of thousands of items using a standard softmax layer is computationally expensive and memory-intensive.

Methodological Enhancements

The researchers proposed four key strategies to address these issues:

1. Data Augmentation and Regularization

To combat overfitting and increase the effective size of the training set, the authors employed sequence preprocessing and embedding dropout. Every prefix of a session is treated as a distinct training instance. Furthermore, by randomly dropping items from a sequence during training, the model becomes more robust to "noisy" clicks that do not represent genuine user intent.

Data augmentation strategies including sequence preprocessing and dropout.

2. Temporal Adaptation

Recognizing that recent data is more representative of current trends, the authors utilized a pre-training and fine-tuning approach. The model is first trained on the entire historical dataset and subsequently fine-tuned on the most recent data subset. This allows the model to capture long-term patterns while prioritizing current popularity shifts.

3. Model Distillation (Privileged Information)

A "teacher" model with access to the full session (including future clicks) generates "soft labels" to guide a "student" model that only sees the past. This distillation process helps the student model learn richer representations, particularly when training data is limited.

4. Efficient Output Embeddings (M4)

To solve the softmax bottleneck, the M4 model architecture predicts a fixed-length item embedding directly instead of a full probability distribution. At inference, the system identifies the top-k recommendations using cosine similarity, drastically reducing the parameter count and increasing prediction speed.

Results and Discussion

The proposed models were evaluated on the YOOCHOOSE dataset from the RecSys Challenge 2015. The results demonstrate that the enhanced RNN models significantly outperform traditional baselines like Item-KNN and previous state-of-the-art RNN approaches (TOP1 and BPR).

Performance comparison of proposed models against baselines on the YOOCHOOSE dataset.

The M2 model achieved a Recall@20 of 0.7129, a 12.8% relative improvement over the best baseline. Meanwhile, the M4 model, while slightly less accurate than M2, reduced the parameter count by approximately 85% and improved inference speed by 40%, making it highly suitable for real-time production environments.

Conclusion

By integrating data augmentation, temporal fine-tuning, and efficient output layers, this work demonstrates that RNNs can be made both more accurate and more efficient for session-based recommendations. The findings highlight that accounting for temporal recency and employing robust regularization are just as important as the underlying neural architecture. Future work may involve incorporating rich item metadata to further improve the quality of predicted embeddings.

Summary updated

BibTeX
@inproceedings{tan2016improved,
  author = {Yong Kiam Tan and Xinxing Xu and Yong Liu},
  title = {{Improved Recurrent Neural Networks for Session-based Recommendations}},
  booktitle = {DLRS@RecSys},
  year = {2016},
  doi = {10.1145/2988450.2988452},
}
Figure