arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2308.09419cs.IR
收藏

基于Transformer的序列推荐中的注意力校准

Attention Calibration for Transformer-based Sequential Recommendation

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Peking University(北京大学);The Hong Kong University of Science and Technology(香港科技大学);Upstage;University of Technology Sydney(悉尼科技大学);Yale University(耶鲁大学)

Peilin Zhou, Qichen Ye, Yueqi Xie, Jingqi Gao, Shoujin Wang, Jae Boum Kim, Chenyu You, Sunghun Kim

AI总结:

针对Transformer序列推荐中注意力权重分配不准确的问题,提出AC-TSR框架,通过空间校准器和对抗校准器校准注意力,提升推荐性能。

摘要:

近年来,基于Transformer的序列推荐(SR)蓬勃发展,其关键组件是自注意力机制。自注意力被广泛认为能够通过为序列中交互过的项目学习更大的注意力权重,从而有效选择那些信息丰富且相关的项目,用于下一项预测。然而,在现实中这并不总是成立。我们对一些具有代表性的基于Transformer的SR模型进行的实证分析表明,较大的注意力权重被分配给不太相关的项目的情况并不少见,这可能导致不准确的推荐。通过进一步深入分析,我们发现可能导致这种注意力权重分配不准确的两个因素:次优的位置编码和噪声输入。为此,在本文中,我们旨在解决现有工作中这一重要且具有挑战性的空白。具体来说,我们提出了一个简单而有效的框架,称为基于Transformer的序列推荐的注意力校准(AC-TSR)。在AC-TSR中,分别设计了一种新颖的空间校准器和对抗校准器,以直接校准那些错误分配的注意力权重。前者旨在显式捕获项目之间的空间关系(即顺序和距离),以便更精确地计算注意力权重。后者旨在根据每个项目对下一项预测的贡献重新分配注意力权重。AC-TSR易于适应,可以无缝集成到各种现有的基于Transformer的SR模型中。在四个基准真实世界数据集上的大量实验结果表明,我们提出的AC-TSR通过显著的推荐性能提升展示了其优越性。源代码可在https://github.com/AIM-SE/AC-TSR获取。

英文摘要:

Transformer-based sequential recommendation (SR) has been booming in recent years, with the self-attention mechanism as its key component. Self-attention has been widely believed to be able to effectively select those informative and relevant items from a sequence of interacted items for next-item prediction via learning larger attention weights for these items. However, this may not always be true in reality. Our empirical analysis of some representative Transformer-based SR models reveals that it is not uncommon for large attention weights to be assigned to less relevant items, which can result in inaccurate recommendations. Through further in-depth analysis, we find two factors that may contribute to such inaccurate assignment of attention weights: sub-optimal position encoding and noisy input. To this end, in this paper, we aim to address this significant yet challenging gap in existing works. To be specific, we propose a simple yet effective framework called Attention Calibration for Transformer-based Sequential Recommendation (AC-TSR). In AC-TSR, a novel spatial calibrator and adversarial calibrator are designed respectively to directly calibrates those incorrectly assigned attention weights. The former is devised to explicitly capture the spatial relationships (i.e., order and distance) among items for more precise calculation of attention weights. The latter aims to redistribute the attention weights based on each item's contribution to the next-item prediction. AC-TSR is readily adaptable and can be seamlessly integrated into various existing transformer-based SR models. Extensive experimental results on four benchmark real-world datasets demonstrate the superiority of our proposed ACTSR via significant recommendation performance enhancements. The source code is available at https://github.com/AIM-SE/AC-TSR.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑