An Attentive Inductive Bias for Sequential Recommendation beyond the Self-Attention

Yehjin Shin, Jeongwhan Choi, Hyowon Wi, Noseong Park
12/16/2023
cs.LGcs.AIcs.IR

Official code: yehjin-shin/BSARec (78 stars, last commit 2026-03-01). 1 more implementation below.

Abstract

Sequential recommendation (SR) models based on Transformers have achieved remarkable successes. The self-attention mechanism of Transformers for computer vision and natural language processing suffers from the oversmoothing problem, i.e., hidden representations becoming similar to tokens. In the SR domain, we, for the first time, show that the same problem occurs. We present pioneering investigations that reveal the low-pass filtering nature of self-attention in the SR, which causes oversmoothing. To this end, we propose a novel method called $\textbf{B}$eyond $\textbf{S}$elf-$\textbf{A}$ttention for Sequential $\textbf{Rec}$ommendation (BSARec), which leverages the Fourier transform to i) inject an inductive bias by considering fine-grained sequential patterns and ii) integrate low and high-frequency information to mitigate oversmoothing. Our discovery shows significant advancements in the SR domain and is expected to bridge the gap for existing Transformer-based SR models. We test our proposed approach through extensive experiments on 6 benchmark datasets. The experimental results demonstrate that our model outperforms 7 baseline methods in terms of recommendation performance. Our code is available at https://github.com/yehjin-shin/BSARec.

View on arXivView PDF

Code Implementations(2)

yehjin-shin/BSARecOfficial100%

An Attentive Inductive Bias for Sequential Recommendation beyond the Self-Attention, AAAI-24

7814Shell, PythonDec 18, 20237 months ago

"An Attentive Inductive Bias for Sequential Recommendation beyond the Self-Attention", AAAI 2024

40Python, Jupyter NotebookMar 8, 20242 years ago

Similar Papers

Cite this paper

@article{shin2023attentive,
  title  = {An Attentive Inductive Bias for Sequential Recommendation beyond the Self-Attention},
  author = {Yehjin Shin and Jeongwhan Choi and Hyowon Wi and Noseong Park},
  year   = {2023},
  eprint = {2312.10325},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.10325v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.10325.svg)](https://codeofpaper.com/paper/2312.10325)

Discussion