Model-enhanced Contrastive Reinforcement Learning for Sequential Recommendation

Chengpeng Li, Zhengyi Yang, Jizhi Zhang, Jiancan Wu, Dingxian Wang, Xiangnan He, Xiang WangarXiv 2023 · DOI

Abstract: Sequential recommendation systems often prioritize immediate clicks over long-term user engagement. While Reinforcement Learning (RL) can optimize for long-term goals, training on offline datasets is challenging due to data sparsity and value overestimation. This paper proposes Model-enhanced Contrastive Reinforcement Learning (MCRL), a framework that stabilizes offline RL by explicitly modeling user interaction dynamics through reward prediction and state transitions. By incorporating conservative value estimation and contrastive learning on negative samples, MCRL effectively mitigates common offline RL pitfalls. Experimental results on real-world datasets demonstrate that MCRL significantly outperforms existing supervised and RL-based baselines.

Introduction

Traditional sequential recommendation systems typically employ maximum likelihood estimation to predict the next item in a sequence. While effective for short-term metrics, this "greedy" approach often neglects long-term user satisfaction and retention. Reinforcement Learning (RL) provides a framework for optimizing long-term engagement; however, applying RL to offline recommendation datasets introduces significant hurdles. These include data sparsity, where most state-action pairs are unobserved; overestimation of values for unseen actions; and a lack of explicit negative feedback, which can lead to model collapse.

Methods

The MCRL framework addresses these challenges through a three-pronged strategy designed to stabilize offline RL training.

  1. Conservative Value Learning: To prevent the over-optimistic estimation of unseen actions, MCRL utilizes expectile regression. This method estimates state values without an explicit argmax over the entire item catalog, ensuring that value estimates remain grounded in the observed data.
  2. Model-enhanced Auxiliary Tasks: MCRL incorporates auxiliary tasks to model the underlying Markov Decision Process (MDP). Specifically, the model is trained to predict the immediate reward (e.g., click vs. purchase) and the subsequent user state transition.
  3. Contrastive Learning with Negative Samples: To compensate for the lack of negative feedback in offline logs, MCRL employs contrastive learning. Items not interacted with by the user are treated as negative samples. The model learns to maximize the similarity between predicted and actual transitions for positive interactions while minimizing it for negative ones.
Overview of the MCRL framework, illustrating the interaction between online recommendation and offline model training with contrastive learning and auxiliary tasks.

The final recommendation policy is extracted using Value-Weighted Regression (VWR), which balances the learned value functions with imitation learning to stay close to high-value historical behaviors.

Experimental Setup

The performance of MCRL was evaluated on two benchmark e-commerce datasets:

  • RetailRocket: Contains over 1.1 million clicks and 57,000 purchases from a real-world e-commerce platform.
  • Yoochoose: A dataset from the RecSys Challenge 2015 featuring user click and purchase sessions.

Preprocessing involved filtering out short sequences and infrequent items to maintain data quality. MCRL was implemented as a wrapper around various sequential backbones, including GRU4Rec, Caser, and SASRec.

Results and Discussion

MCRL consistently outperformed state-of-the-art supervised and RL-based baselines across both datasets. On the RetailRocket dataset, MCRL significantly improved the Hit Ratio (HR@5) for purchases compared to base models. For instance, using a GRU backbone, HR@5 increased from 0.4608 to 0.5972.

Performance study of the value function module on RetailRocket across different backbones (GRU, Caser, SASRec), showing HR@5 for purchases and clicks alongside cumulative reward.

Ablation studies confirmed the importance of each component. Removing either the reward model or the state transition model led to a noticeable decline in performance, underscoring the value of modeling the "physics" of user interactions. Furthermore, the framework's backbone-agnostic nature allows it to enhance various existing sequential architectures by shifting their objective from immediate prediction to long-term value optimization.

Conclusion

MCRL represents a significant advancement in making offline Reinforcement Learning practical for sequential recommendation. By addressing data sparsity and overestimation through model-enhanced auxiliary tasks and contrastive learning, it provides a stable and effective framework for optimizing long-term user engagement. Future work may explore reducing computational overhead, incorporating off-policy correction techniques like propensity scoring, and utilizing more complex reward signals such as dwell time.

Summary updated

BibTeX
@misc{li2023model,
  author = {Chengpeng Li and Zhengyi Yang and Jizhi Zhang and Jiancan Wu and Dingxian Wang and Xiangnan He and Xiang Wang},
  title = {{Model-enhanced Contrastive Reinforcement Learning for Sequential Recommendation}},
  year = {2023},
  eprint = {2310.16566},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.16566},
}
Figure