Improving Sequential Recommendation Models with an Enhanced Loss Function

Fangyu Li, Shenbao Yu, Feng Zeng, Fang Yang
1/3/2023
cs.IRcs.LG

Official code: Li-fAngyU/sequential_rec (4 stars, last commit 2023-05-23).

Abstract

There has been a growing interest in benchmarking sequential recommendation models and reproducing/improving existing models. For example, Rendle et al. improved matrix factorization models by tuning their parameters and hyperparameters. Petrov and Macdonald developed a more efficient and effective implementation of BERT4Rec, which resolved inconsistencies in performance comparison between BERT4Rec and SASRec in previous works. In particular, BERT4Rec and SASRec share a similar network structure, with the main difference lying in their training objective/loss function. Therefore, we analyzed the advantages and disadvantages of commonly used loss functions in sequential recommendation and proposed an improved loss function that leverages their strengths. We conduct extensive experiments on two influential open-source libraries, and the results demonstrate that our improved loss function significantly enhances the performance of GRU4Rec, SASRec, SR-GNN, and S3Rec models, improving their benchmarks significantly. Furthermore, the improved SASRec benchmark outperforms BERT4Rec on the ML-1M and Beauty datasets and achieves similar results to BERT4Rec on the ML-20M and Steam datasets. We also reproduce the results of the BERT4Rec model on the Beauty dataset. Finally, we provide a comprehensive explanation of the effectiveness of our improved loss function through experiments. Our code is publicly available at https://github.com/Li-fAngyU/sequential_rec.

View on arXivView PDF

Code Implementations(1)

Implement our enhanced loss base on CIKM2020-S3Rec repo, and provide tutorials to implement enhanced loss at Aprec repo.

41Shell, PythonApr 17, 20233 years ago

Similar Papers

Cite this paper

@article{li2023improving,
  title  = {Improving Sequential Recommendation Models with an Enhanced Loss Function},
  author = {Fangyu Li and Shenbao Yu and Feng Zeng and Fang Yang},
  year   = {2023},
  eprint = {2301.00979},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.00979v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.00979.svg)](https://codeofpaper.com/paper/2301.00979)

Discussion