Contrastive Learning with Bidirectional Transformers for Sequential Recommendation

被引:22
|
作者
Du, Hanwen [1 ]
Shi, Hui [1 ]
Zhao, Pengpeng [1 ]
Wang, Deqing [2 ]
Sheng, Victor S. [3 ]
Liu, Yanchi [4 ]
Liu, Guanfeng [5 ]
Zhao, Lei [1 ]
机构
[1] Soochow Univ, Suzhou, Jiangsu, Peoples R China
[2] Beihang Univ, Beijing, Peoples R China
[3] Texas Tech Univ, Lubbock, TX 79409 USA
[4] Rutgers State Univ, New Brunswick, NJ USA
[5] Macquarie Univ, Sydney, NSW, Australia
关键词
Sequential Recommendation; Bidirectional Sequential Model; Contrastive Learning;
D O I
10.1145/3511808.3557266
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Contrastive learning with Transformer-based sequence encoder has gained predominance for sequential recommendation. It maximizes the agreements between paired sequence augmentations that share similar semantics. However, existing contrastive learning approaches in sequential recommendation mainly center upon left-to-right unidirectional Transformers as base encoders, which are suboptimal for sequential recommendation because user behaviors may not be a rigid left-to-right sequence. To tackle that, we propose a novel framework named Contrastive learning with Bidirectional Transformers for sequential recommendation (CBiT). Specifically, we first apply the slide window technique for long user sequences in bidirectional Transformers, which allows for a more fine-grained division of user sequences. Then we combine the cloze task mask and the dropout mask to generate high-quality positive samples and perform multi-pair contrastive learning, which demonstrates better performance and adaptability compared with the normal one-pair contrastive learning. Moreover, we introduce a novel dynamic loss reweighting strategy to balance between the cloze task loss and the contrastive loss. Experiment results on three public benchmark datasets show that our model outperforms state-of-the-art models for sequential recommendation. Our code is available at this link: https://github.com/hw-du/CBiT/tree/master.
引用
收藏
页码:396 / 405
页数:10
相关论文
共 50 条
  • [41] Scaling Sequential Recommendation Models with Transformers
    Zivic, Pablo
    Vazquez, Hernan
    Sanchez, Jorge
    PROCEEDINGS OF THE 47TH INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL, SIGIR 2024, 2024, : 1567 - 1577
  • [42] Enhancing Sequential Music Recommendation with Negative Feedback-informed Contrastive Learning
    Seshadri, Pavan
    Shashaani, Shahrzad
    Knees, Peter
    PROCEEDINGS OF THE EIGHTEENTH ACM CONFERENCE ON RECOMMENDER SYSTEMS, RECSYS 2024, 2024, : 1028 - 1032
  • [43] MoCo4SRec: A momentum contrastive learning framework for sequential recommendation
    Wei, Zihan
    Wu, Ning
    Li, Fengxia
    Wang, Ke
    Zhang, Wei
    EXPERT SYSTEMS WITH APPLICATIONS, 2023, 223
  • [44] TFCSRec: Time-frequency consistency based contrastive learning for sequential recommendation
    Xiao, Yadong
    Huang, Jiajin
    Yang, Jian
    EXPERT SYSTEMS WITH APPLICATIONS, 2024, 245
  • [45] Supervised contrastive learning for recommendation
    Yang, Chun
    Zou, Jianxiao
    Wu, JianHua
    Xu, Hongbing
    Fan, Shicai
    KNOWLEDGE-BASED SYSTEMS, 2022, 258
  • [46] Adversarial and Contrastive Variational Autoencoder for Sequential Recommendation
    Xie, Zhe
    Liu, Chengxuan
    Zhang, Yichi
    Lu, Hongtao
    Wang, Dong
    Ding, Yue
    PROCEEDINGS OF THE WORLD WIDE WEB CONFERENCE 2021 (WWW 2021), 2021, : 449 - 459
  • [47] Contrastive Cross-Domain Sequential Recommendation
    Cao, Jiangxia
    Cong, Xin
    Sheng, Jiawei
    Liu, Tingwen
    Wang, Bin
    PROCEEDINGS OF THE 31ST ACM INTERNATIONAL CONFERENCE ON INFORMATION AND KNOWLEDGE MANAGEMENT, CIKM 2022, 2022, : 138 - 147
  • [48] ContrastVAE: Contrastive Variational AutoEncoder for Sequential Recommendation
    Wang, Yu
    Zhang, Hengrui
    Liu, Zhiwei
    Yang, Liangwei
    Yu, Philip S.
    PROCEEDINGS OF THE 31ST ACM INTERNATIONAL CONFERENCE ON INFORMATION AND KNOWLEDGE MANAGEMENT, CIKM 2022, 2022, : 2057 - 2067
  • [49] Diversifying Sequential Recommendation with Retrospective and Prospective Transformers
    Shi, Chaoyu
    Ren, Pengjie
    Fu, Dongjie
    Xin, Xin
    Yang, Shansong
    Cai, Fei
    Ren, Zhaochun
    Chen, Zhumin
    ACM TRANSACTIONS ON INFORMATION SYSTEMS, 2024, 42 (05)
  • [50] TagRec: Temporal-Aware Graph Contrastive Learning With Theoretical Augmentation for Sequential Recommendation
    Peng, Tianhao
    Yuan, Haitao
    Zhang, Yongqi
    Li, Yuchen
    Dai, Peihong
    Wang, Qunbo
    Wang, Senzhang
    Wu, Wenjun
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2025, 37 (05) : 3015 - 3029