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 条
  • [31] Item attributes fusion based on contrastive learning for sequential recommendation
    Zhang, Donghao
    Qin, Jiwei
    Ma, Jie
    Yang, Zhibin
    Cui, Daishun
    Ji, Peichen
    MULTIMEDIA SYSTEMS, 2024, 30 (05)
  • [32] Generative Adversarial Networks Based on Contrastive Learning for Sequential Recommendation
    Li Jianhong
    Wang Yue
    Yan Taotao
    Sun Chengyuan
    Li Dequan
    WEB AND BIG DATA, PT II, APWEB-WAIM 2023, 2024, 14332 : 439 - 453
  • [33] HyperCLR: A Personalized Sequential Recommendation Algorithm Based on Hypergraph and Contrastive Learning
    Zhang, Ruiqi
    Wang, Haitao
    He, Jianfeng
    MATHEMATICS, 2024, 12 (18)
  • [34] Knowledge-Guided Semantically Consistent Contrastive Learning for sequential recommendation
    Shi, Chenglong
    Yan, Surong
    Zhang, Shuai
    Wang, Haosen
    Lin, Kwei-Jay
    NEURAL NETWORKS, 2025, 185
  • [35] Pattern-enhanced Contrastive Policy Learning Network for Sequential Recommendation
    Tong, Xiaohai
    Wang, Pengfei
    Li, Chenliang
    Xia, Long
    Niu, Shaozhang
    PROCEEDINGS OF THE THIRTIETH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, IJCAI 2021, 2021, : 1593 - 1599
  • [36] Contrastive Learning with Frequency-Domain Interest Trends for Sequential Recommendation
    Zhang, Yichi
    Yin, Guisheng
    Dong, Yuxin
    PROCEEDINGS OF THE 17TH ACM CONFERENCE ON RECOMMENDER SYSTEMS, RECSYS 2023, 2023, : 141 - 150
  • [37] Graph Neural Network-Guided Contrastive Learning for Sequential Recommendation
    Yang, Xing-Yao
    Xu, Feng
    Yu, Jiong
    Li, Zi-Yang
    Wang, Dong-Xiao
    SENSORS, 2023, 23 (12)
  • [38] Multi-interest sequential recommendation with contrastive learning and temporal analysis
    Ma, Xiaowen
    Zhou, Qiang
    Li, Yongjun
    KNOWLEDGE-BASED SYSTEMS, 2024, 305
  • [39] Temporal Density-aware Sequential Recommendation Networks with Contrastive Learning
    Wang, Jihu
    Shi, Yuliang
    Yu, Han
    Zhang, Kun
    Wang, Xinjun
    Yan, Zhongmin
    Li, Hui
    EXPERT SYSTEMS WITH APPLICATIONS, 2023, 211
  • [40] Dual Contrastive Network for Sequential Recommendation
    Lin, Guanyu
    Gao, Chen
    Li, Yinfeng
    Zheng, Yu
    Li, Zhiheng
    Jin, Depeng
    Li, Yong
    PROCEEDINGS OF THE 45TH INTERNATIONAL ACM SIGIR CONFERENCE ON RESEARCH AND DEVELOPMENT IN INFORMATION RETRIEVAL (SIGIR '22), 2022, : 2686 - 2691