Papers › TiM4Rec: An Efficient Sequential Recommendation Model Based on Time-Aware Structured...

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

24 Sep 2024arXiv:2409.16182archive 2025-07-28

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

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.

PaperPDFCode

Code

alwaysfhao/tim4rec officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Computational EfficiencyMambaRecommendation SystemsSequential Recommendationmodel

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Sequential Recommendation Amazon-Beauty TiM4Rec HR@10 0.0854 #3 of 3 Archive leaderboard report
Sequential Recommendation Amazon-Beauty TiM4Rec HR@20 0.1204 #3 of 3 Archive leaderboard report
Sequential Recommendation Amazon-Beauty TiM4Rec HR@50 0.18 #3 of 3 Archive leaderboard report
Sequential Recommendation Amazon-Beauty TiM4Rec MRR@10 0.0321 #3 of 3 Archive leaderboard report
Sequential Recommendation Amazon-Beauty TiM4Rec MRR@20 0.0345 #3 of 3 Archive leaderboard report
Sequential Recommendation Amazon-Beauty TiM4Rec MRR@50 0.0363 #3 of 3 Archive leaderboard report
Sequential Recommendation Amazon-Beauty TiM4Rec NDCG@20 0.0533 #3 of 3 Archive leaderboard report
Sequential Recommendation Amazon-Beauty TiM4Rec NDCG@50 0.0651 #3 of 3 Archive leaderboard report
Sequential Recommendation Amazon-Beauty TiM4Rec nDCG@10 0.0446 #3 of 3 Archive leaderboard report
Sequential Recommendation KuaiRand TiM4Rec HR@10 0.1109 #1 of 1 Archive leaderboard report
Sequential Recommendation KuaiRand TiM4Rec HR@20 0.1774 #1 of 1 Archive leaderboard report
Sequential Recommendation KuaiRand TiM4Rec HR@50 0.3202 #1 of 1 Archive leaderboard report
Sequential Recommendation KuaiRand TiM4Rec MRR@10 0.0463 #1 of 1 Archive leaderboard report
Sequential Recommendation KuaiRand TiM4Rec MRR@20 0.0508 #1 of 1 Archive leaderboard report
Sequential Recommendation KuaiRand TiM4Rec MRR@50 0.0552 #1 of 1 Archive leaderboard report
Sequential Recommendation KuaiRand TiM4Rec NDCG@10 0.0611 #1 of 1 Archive leaderboard report
Sequential Recommendation KuaiRand TiM4Rec NDCG@20 0.0779 #1 of 1 Archive leaderboard report
Sequential Recommendation KuaiRand TiM4Rec NDCG@50 0.106 #1 of 1 Archive leaderboard report
Sequential Recommendation MovieLens 1M TiM4Rec HR@10 0.331 #1 of 4 Archive leaderboard report
Sequential Recommendation MovieLens 1M TiM4Rec HR@20 0.4338 #1 of 4 Archive leaderboard report
Sequential Recommendation MovieLens 1M TiM4Rec HR@5 0.2308 #1 of 4 Archive leaderboard report
Sequential Recommendation MovieLens 1M TiM4Rec HR@50 0.577 #1 of 4 Archive leaderboard report
Sequential Recommendation MovieLens 1M TiM4Rec MRR@10 0.1512 #1 of 4 Archive leaderboard report
Sequential Recommendation MovieLens 1M TiM4Rec MRR@20 0.1584 #1 of 4 Archive leaderboard report
Sequential Recommendation MovieLens 1M TiM4Rec MRR@50 0.1629 #1 of 4 Archive leaderboard report
Sequential Recommendation MovieLens 1M TiM4Rec NDCG@10 0.1932 #1 of 4 Archive leaderboard report
Sequential Recommendation MovieLens 1M TiM4Rec NDCG@20 0.2194 #1 of 4 Archive leaderboard report
Sequential Recommendation MovieLens 1M TiM4Rec NDCG@5 0.1608 #1 of 4 Archive leaderboard report
Sequential Recommendation MovieLens 1M TiM4Rec NDCG@50 0.2477 #1 of 4 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

1x1 ConvolutionAbsolute Position EncodingsAdamAttentionBPEConvolutionDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMambaMulti-Head AttentionNon Maximum SuppressionPosition-Wise Feed-Forward LayerResidual ConnectionSSDSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections