STRec: Sparse Transformer for Sequential Recommendations

Chengxi Li, Yejing Wang, Qidong Liu, Xiangyu Zhao, Wanyu Wang, Yiqi Wang, Lixin Zou, Wenqi Fan, Qing Li

Research output: Chapter in book / Conference proceedingConference article published in proceeding or bookAcademic researchpeer-review

2 Citations (Scopus)

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
Publication statusPublished - 14 Sept 2023
Event17th ACM Conference on Recommender Systems, RecSys 2023 - Singapore, Singapore
Duration: 18 Sept 202322 Sept 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

ASJC Scopus subject areas

  • Computer Science Applications
  • Information Systems
  • Software
  • Control and Systems Engineering

Fingerprint

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

Cite this