HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

TiM4Rec: An Efficient Sequential Recommendation Model Based on Time-Aware Structured State Space Duality Model

Hao Fan Mengyi Zhu Yanrong Hu Hailin Feng Zhijie He Hongjiu Liu Qingyang Liu

TiM4Rec: An Efficient Sequential Recommendation Model Based on Time-Aware Structured State Space Duality Model

Abstract

The Sequential Recommendation modeling paradigm is shifting from Transformer to Mamba architecture, which comprises two generations: Mamba1, based on the State Space Model (SSM), and Mamba2, based on State Space Duality (SSD). Although SSD offers superior computational efficiency compared to SSM, it suffers performance degradation in sequential recommendation tasks, especially in low-dimensional scenarios that are critical for these tasks. Considering that time-aware enhancement methods are commonly employed to mitigate performance loss, our analysis reveals that the performance decline of SSD can similarly be fundamentally compensated by leveraging mechanisms in time-aware methods. Thus, we propose integrating time-awareness into the SSD framework to address these performance issues. However, integrating current time-aware methods, modeled after TiSASRec, into SSD faces the following challenges: 1) the complexity of integrating these transformer-based mechanisms with the SSD architecture, and 2) the computational inefficiency caused by the need for dimensionality expansion of time-difference modeling. To overcome these challenges, we introduce a novel Time-aware Structured Masked Matrix that efficiently incorporates time-aware capabilities into SSD. Building on this, we propose Time-Aware Mamba for Recommendation (TiM4Rec), which mitigates performance degradation in low-dimensional SSD contexts while preserving computational efficiency. This marks the inaugural application of a time-aware enhancement method specifically tailored for the Mamba architecture within the domain of sequential recommendation. Extensive experiments conducted on three real-world datasets demonstrate the superiority of our approach. The code for our model is accessible at https://github.com/AlwaysFHao/TiM4Rec.

Code Repositories

alwaysfhao/tim4rec
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
sequential-recommendation-on-amazon-beautyTiM4Rec
HR@10: 0.0854
HR@20: 0.1204
HR@50: 0.18
MRR@10: 0.0321
MRR@20: 0.0345
MRR@50: 0.0363
NDCG@20: 0.0533
NDCG@50: 0.0651
nDCG@10: 0.0446
sequential-recommendation-on-kuairandTiM4Rec
HR@10: 0.1109
HR@20: 0.1774
HR@50: 0.3202
MRR@10: 0.0463
MRR@20: 0.0508
MRR@50: 0.0552
NDCG@10: 0.0611
NDCG@20: 0.0779
NDCG@50: 0.106
sequential-recommendation-on-movielens-1mTiM4Rec
HR@10: 0.331
HR@20: 0.4338
HR@5: 0.2308
HR@50: 0.577
MRR@10: 0.1512
MRR@20: 0.1584
MRR@50: 0.1629
NDCG@10: 0.1932
NDCG@20: 0.2194
NDCG@5: 0.1608
NDCG@50: 0.2477

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
TiM4Rec: An Efficient Sequential Recommendation Model Based on Time-Aware Structured State Space Duality Model | Papers | HyperAI