Contrastive learning (CL) benefits the training of sequential recommendation models with informative self-supervision signals. Existing solutions apply general sequential data augmentation strategies to generate positive pairs and encourage their representations to be invariant. However, due to the inherent properties of user behavior sequences, some augmentation strategies, such as item substitution, can lead to changes in user intent. Learning indiscriminately invariant representations for all augmentation strategies might be suboptimal. Therefore, we propose Equivariant Contrastive Learning for Sequential Recommendation (ECL-SR), which endows SR models with great discriminative power, making the learned user behavior representations sensitive to invasive augmentations (e.g., item substitution) and insensitive to mild augmentations (e.g., featurelevel dropout masking). In detail, we use the conditional discriminator to capture differences in behavior due to item substitution, which encourages the user behavior encoder to be equivariant to invasive augmentations. Comprehensive experiments on four benchmark datasets show that the proposed ECL-SR framework achieves competitive performance compared to state-of-the-art SR models. The source code is available at https://github.com/Tokkiu/ECL.
翻译:对比学习(CL)通过提供富含信息的自监督信号,有利于序列推荐模型的训练。现有方案采用通用的序列数据增强策略生成正样本对,并鼓励其表征具有不变性。然而,由于用户行为序列的固有特性,某些增强策略(如项目替换)可能导致用户意图发生变化。对所有增强策略不加区分地学习不变表征可能并非最优。为此,我们提出面向序列推荐的等变对比学习(ECL-SR),赋予序列推荐模型强大的判别能力,使其学习的用户行为表征对侵入性增强(如项目替换)敏感,而对温和增强(如特征级随机掩码)不敏感。具体而言,我们利用条件判别器捕获由项目替换引起的行为差异,从而促使用户行为编码器对侵入性增强保持等变性。在四个基准数据集上的综合实验表明,与最先进的序列推荐模型相比,所提出的ECL-SR框架取得了具有竞争力的性能。源代码已开源:https://github.com/Tokkiu/ECL。