STRec: Sparse Transformer for Sequential Recommendations

  • Chengxi Li
  • , Yejing Wang
  • , Qidong Liu
  • , Xiangyu Zhao*
  • , Wanyu Wang
  • , Yiqi Wang
  • , Lixin Zou
  • , Wenqi Fan
  • , Qing Li
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

With the rapid evolution of transformer architectures, researchers are exploring their application in sequential recommender systems (SRSs) and presenting promising performance on SRS tasks compared with former SRS models. However, most existing transformer-based SRS frameworks retain the vanilla attention mechanism, which calculates the attention scores between all item-item pairs. With this setting, redundant item interactions can harm the model performance and consume much computation time and memory. In this paper, we identify the sparse attention phenomenon in transformer-based SRS models and propose Sparse Transformer for sequential Recommendation tasks (STRec) to achieve the efficient computation and improved performance. Specifically, we replace self-attention with cross-attention, making the model concentrate on the most relevant item interactions. To determine these necessary interactions, we design a novel sampling strategy to detect relevant items based on temporal information. Extensive experimental results validate the effectiveness of STRec, which achieves the state-of-the-art accuracy while reducing 54% inference time and 70% memory cost. We also provide massive extended experiments to further investigate the property of our framework.

Original languageEnglish
Title of host publicationProceedings of the 17th ACM Conference on Recommender Systems, RecSys 2023
PublisherAssociation for Computing Machinery, Inc
Pages101-111
Number of pages11
ISBN (Electronic)9798400702419
DOIs
StatePublished - 14 Sep 2023
Externally publishedYes
Event17th ACM Conference on Recommender Systems, RecSys 2023 - Singapore, Singapore
Duration: 18 Sep 202322 Sep 2023

Publication series

NameProceedings of the 17th ACM Conference on Recommender Systems, RecSys 2023

Conference

Conference17th ACM Conference on Recommender Systems, RecSys 2023
Country/TerritorySingapore
CitySingapore
Period18/09/2322/09/23

Keywords

  • efficient transformer
  • recommendation system
  • sequential recommendation

Fingerprint

Dive into the research topics of 'STRec: Sparse Transformer for Sequential Recommendations'. Together they form a unique fingerprint.

Cite this