ContrastVAE: Contrastive Variational AutoEncoder for Sequential Recommendation

Yu Wang, Hengrui Zhang, Zhiwei Liu, Liangwei Yang, Philip S. Yu
8/27/2022
cs.IRcs.LG
contrastive-ssl

Official code: YuWang-1024/ContrastVAE (37 stars, Python, last commit 2023-06-14).

Abstract

Aiming at exploiting the rich information in user behaviour sequences, sequential recommendation has been widely adopted in real-world recommender systems. However, current methods suffer from the following issues: 1) sparsity of user-item interactions, 2) uncertainty of sequential records, 3) long-tail items.

Show full abstract

In this paper, we propose to incorporate contrastive learning into the framework of Variational AutoEncoders to address these challenges simultaneously. Firstly, we introduce ContrastELBO, a novel training objective that extends the conventional single-view ELBO to two-view case and theoretically builds a connection between VAE and contrastive learning from a two-view perspective. Then we propose Contrastive Variational AutoEncoder (ContrastVAE in short), a two-branched VAE model with contrastive regularization as an embodiment of ContrastELBO for sequential recommendation. We further introduce two simple yet effective augmentation strategies named model augmentation and variational augmentation to create a second view of a sequence and thus making contrastive learning possible. Experiments on four benchmark datasets demonstrate the effectiveness of ContrastVAE and the proposed augmentation methods. Codes are available at https://github.com/YuWang-1024/ContrastVAE

View on arXivView PDF

Code Implementations(1)

373PythonDec 1, 20223 years ago

Similar Papers

Cite this paper

@article{wang2022contrastvae,
  title  = {ContrastVAE: Contrastive Variational AutoEncoder for Sequential Recommendation},
  author = {Yu Wang and Hengrui Zhang and Zhiwei Liu and Liangwei Yang and Philip S. Yu},
  year   = {2022},
  eprint = {2209.00456},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.00456}
}

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/2209.00456.svg)](https://codeofpaper.com/paper/2209.00456)

Discussion