Self-Supervised Reinforcement Learning for Recommender Systems

Xin Xin, Alexandros Karatzoglou, Ioannis Arapakis, Joemon M. Jose

Introduction

Modern recommender systems predominantly rely on Self-Supervised Learning (SSL), where models are trained to predict the next item in a user's interaction sequence. While effective for immediate ranking, this paradigm suffers from two critical drawbacks. First, it is greedy, optimizing for immediate clicks rather than long-term user satisfaction or high-value conversions like purchases. Second, it exhibits signal blindness, treating all user interactions—whether a casual click or a deliberate purchase—with equal weight.

Reinforcement Learning (RL) offers a theoretical solution by optimizing for long-term cumulative rewards. However, applying RL to recommendation is fraught with challenges, including the "off-policy" problem (learning from logged data without real-time exploration) and the "negative feedback gap" (logged data rarely indicates what a user disliked).

The SSRL Framework

To bridge this gap, the authors introduced Self-Supervised Reinforcement Learning (SSRL) at SIGIR '20. SSRL is a hybrid framework that augments standard sequential recommendation models with an RL "head." This architecture allows the model to benefit from the stability of supervised learning while pursuing the long-term optimization goals of RL.

The framework consists of three main components:

  1. Base Encoder ($G$): A sequential model (e.g., GRU, CNN, or Transformer) that encodes user history into a hidden state $s_t$.
  2. Supervised Head: Performs next-item prediction using cross-entropy loss, providing the necessary negative signals through the softmax denominator.
  3. RL Head: Utilizes Double Q-learning to estimate the Q-value—the expected long-term reward for recommending a specific item.
Comparison of training architectures: (a) standard self-supervised, (b) SQN, and (c) SAC.

The paper details two primary implementations:

  • Self-Supervised Q-learning (SQN): The model optimizes a joint loss function where the RL task acts as a regularizer, nudging the supervised layer toward items with higher long-term value.
  • Self-Supervised Actor-Critic (SAC): The RL head serves as a "critic," where predicted Q-values weight the supervised gradients. High-reward actions result in amplified gradients for the supervised head.

Experimental Evaluation

The researchers evaluated SSRL using two real-world e-commerce datasets: RC15 (YOOCHOOSE) and RetailRocket. Both datasets include diverse interaction types, allowing the team to assign higher rewards to "purchases" than "clicks," thereby guiding the RL agent toward high-value outcomes.

The framework was integrated with four state-of-the-art base models: GRU4Rec, Caser, NItNet, and SASRec.

Key Insights

  • RL as a Regularizer: By treating RL as a secondary task rather than a replacement, the model maintains the training stability of supervised learning while gaining "foresight."
  • Addressing the Negative Feedback Gap: The supervised head's requirement to distinguish the "correct" next item from all others naturally provides the negative signal that pure Q-learning often lacks in implicit feedback settings.
  • Optimal Discount Factor: Unlike gaming RL (where $\gamma \approx 0.99$), recommendation tasks benefit from a lower discount factor (around 0.5) due to the shorter nature of user sessions and the high noise in long-term behavioral patterns.

Results and Discussion

The SSRL framework demonstrated consistent performance gains across all base models. Notably, on the RC15 dataset, SASRec-SAC improved the Hit Ratio (HR@5) for purchases by over 7% compared to the vanilla SASRec model. The most significant improvements were observed in predicting items that users eventually purchased, confirming that the RL reward signal effectively prioritizes high-value interactions.

Limitations and Reward Engineering

Despite its success, the framework's performance is sensitive to "reward engineering"—the specific ratio of rewards assigned to different actions (e.g., purchase vs. click). Finding the optimal balance currently requires manual tuning.

Performance sensitivity of the SAC framework relative to the purchase-to-click reward ratio ($r_p/r_c$).

Furthermore, while SSRL addresses off-policy challenges in offline datasets, real-world online A/B testing remains necessary to fully validate its impact on live user behavior. Future work may explore extending this framework to slate-based recommendations and incorporating rewards for diversity and novelty to mitigate "filter bubble" effects.

Conclusion

SSRL represents a significant step toward practical RL in recommender systems. By co-training supervised and reinforcement learning tasks, it provides a robust, model-agnostic way to optimize for long-term user value without sacrificing the stability of modern deep learning architectures.

Summary updated

BibTeX
@inproceedings{xin2020self,
  author = {Xin Xin and Alexandros Karatzoglou and Ioannis Arapakis and Joemon M. Jose},
  title = {{Self-Supervised Reinforcement Learning for Recommender Systems}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2020},
  doi = {10.1145/3397271.3401147},
}
Figure