Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Mamba4Rec: Towards Efficient Sequential Recommendation with Selective State Space Models

About

Sequential recommendation aims to estimate the dynamic user preferences and sequential dependencies among historical user behaviors. Although Transformer-based models have proven to be effective for sequential recommendation, they suffer from the inference inefficiency problem stemming from the quadratic computational complexity of attention operators, especially for long behavior sequences. Inspired by the recent success of state space models (SSMs), we propose Mamba4Rec, which is the first work to explore the potential of selective SSMs for efficient sequential recommendation. Built upon the basic Mamba block which is a selective SSM with an efficient hardware-aware parallel algorithm, we design a series of sequential modeling techniques to further promote model performance while maintaining inference efficiency. Through experiments on public datasets, we demonstrate how Mamba4Rec effectively tackles the effectiveness-efficiency dilemma, outperforming both RNN- and attention-based baselines in terms of both effectiveness and efficiency. The code is available at https://github.com/chengkai-liu/Mamba4Rec.

Chengkai Liu, Jianghao Lin, Jianling Wang, Hanzhou Liu, James Caverlee• 2024

Related benchmarks

TaskDatasetResultRank
RecommendationGowalla--
100
Sequential RecommendationML 1M
NDCG@100.6111
49
Sequential RecommendationAmazon Beauty
Recall@1042.98
48
Sequential RecommendationKuaiRand
HR@109.03
22
Sequential RecommendationAmazon Video-Games
NDCG@100.5186
13
Category RecommendationIndustry Dataset Warm Users
Hit Rate @ 122.38
9
Category RecommendationIndustry Dataset (Cold Users)
HR@128.05
9
Category RecommendationRetailRocket
Hit Rate @ 1 (HR@1)60.68
7
Sequential RecommendationAmazon Sports
HR@1010.28
7
Sequential RecommendationMovieLens 1M
HR@100.3232
7
Showing 10 of 13 rows

Other info

Follow for update