化糟粕为金损失:BERT4Rec 真的比 SASRec 更好吗?
Turning Dross Into Gold Loss: is BERT4Rec really better than SASRec?
AI总结:
本文指出在相同损失函数下,SASRec在质量和训练速度上均显著优于BERT4Rec,且使用负采样时需大幅增加负样本数量才能保持优势。
摘要:
最近,序列推荐和下一项预测任务在推荐系统领域变得越来越流行。目前,两个最先进的基线模型是基于 Transformer 的模型 SASRec 和 BERT4Rec。在过去几年中,有不少文献对这两种算法进行了比较,并提出了新的最先进模型。在大多数文献中,BERT4Rec 取得了比 SASRec 更好的性能。但是 BERT4Rec 对所有项目使用 softmax 交叉熵,而 SASRec 使用负采样,并针对一个正样本和一个负样本计算二元交叉熵损失。在我们的工作中,我们表明,如果两个模型都使用 BERT4Rec 所采用的相同损失进行训练,那么 SASRec 在质量和训练速度方面都将显著优于 BERT4Rec。此外,我们表明 SASRec 可以使用负采样进行有效训练,并且仍然优于 BERT4Rec,但负样本的数量应该远大于一。
英文摘要:
Recently sequential recommendations and next-item prediction task has become increasingly popular in the field of recommender systems. Currently, two state-of-the-art baselines are Transformer-based models SASRec and BERT4Rec. Over the past few years, there have been quite a few publications comparing these two algorithms and proposing new state-of-the-art models. In most of the publications, BERT4Rec achieves better performance than SASRec. But BERT4Rec uses cross-entropy over softmax for all items, while SASRec uses negative sampling and calculates binary cross-entropy loss for one positive and one negative item. In our work, we show that if both models are trained with the same loss, which is used by BERT4Rec, then SASRec will significantly outperform BERT4Rec both in terms of quality and training speed. In addition, we show that SASRec could be effectively trained with negative sampling and still outperform BERT4Rec, but the number of negative examples should be much larger than one.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。