Contrastive Learning for Representation Degeneration Problem in Sequential Recommendation

Ruihong Qiu, Zi Huang, Hongzhi Yin, Zijian Wang
10/12/2021
667 citations
cs.IR
contrastive-ssl

Official code: RuihongQiu/DuoRec (126 stars, Python, MIT, last commit 2021-11-25).

Abstract

Recent advancements of sequential deep learning models such as Transformer and BERT have significantly facilitated the sequential recommendation. However, according to our study, the distribution of item embeddings generated by these models tends to degenerate into an anisotropic shape, which may result in high semantic similarities among embeddings.

Show full abstract

In this paper, both empirical and theoretical investigations of this representation degeneration problem are first provided, based on which a novel recommender model DuoRec is proposed to improve the item embeddings distribution. Specifically, in light of the uniformity property of contrastive learning, a contrastive regularization is designed for DuoRec to reshape the distribution of sequence representations. Given the convention that the recommendation task is performed by measuring the similarity between sequence representations and item embeddings in the same space via dot product, the regularization can be implicitly applied to the item embedding distribution. Existing contrastive learning methods mainly rely on data level augmentation for user-item interaction sequences through item cropping, masking, or reordering and can hardly provide semantically consistent augmentation samples. In DuoRec, a model-level augmentation is proposed based on Dropout to enable better semantic preserving. Furthermore, a novel sampling strategy is developed, where sequences having the same target item are chosen hard positive samples. Extensive experiments conducted on five datasets demonstrate the superior performance of the proposed DuoRec model compared with baseline methods. Visualization results of the learned representations validate that DuoRec can largely alleviate the representation degeneration problem.

View on arXivView PDF

Code Implementations(1)

RuihongQiu/DuoRecOfficial100%
MIT

Code for WSDM 2022 paper, Contrastive Learning for Representation Degeneration Problem in Sequential Recommendation.

12625Python, ShellOct 14, 20215 years agoMIT

Similar Papers

Cite this paper

@article{qiu2021contrastive,
  title  = {Contrastive Learning for Representation Degeneration Problem in Sequential Recommendation},
  author = {Ruihong Qiu and Zi Huang and Hongzhi Yin and Zijian Wang},
  year   = {2021},
  eprint = {2110.05730},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.05730}
}

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

Discussion