SLSREC: Self-Supervised Contrastive Learning for Adaptive Fusion of Long- and Short-Term User Interests
Organizations: School of Artificial Intelligence, Shenzhen University, Shenzhen 518060, China · Shenzhen Technology University, Shenzhen, China · College of Computer Science, Chongqing University, Chongqing, China
Abstract
User interests typically encompass both long-term preferences and short-term intentions, reflecting the dynamic nature of user behaviors across different timeframes. The uneven temporal distribution of user interactions highlights the evolving patterns of interests, making it challenging to accurately capture shifts in interests using comprehensive historical behaviors. To address this, we propose SLSRec, a novel Session-based model with the fusion of Long- and Short-term Recommendations that effectively captures the temporal dynamics of user interests by segmenting historical behaviors over time. Unlike conventional models that combine long- and short-term user interests into a single representation, compromising recommendation accuracy, SLSRec utilizes a self-supervised learning framework to disentangle these two types of interests. A contrastive learning strategy is introduced to ensure accurate calibration of long- and short-term interest representations. Additionally, an attention-based fusion network is designed to adaptively aggregate interest representations, optimizing their integration to enhance recommendation performance. Extensive experiments on three public benchmark datasets demonstrate that SLSRec consistently outperforms state-of-the-art models while exhibiting superior robustness across various scenarios.We will release all source code upon acceptance.
Figures & tables
| Dataset | #Users | #Items | #Inte. | #Cate. | #Avg. Len |
|---|---|---|---|---|---|
| Taobao | 42,966 | 103,204 | 2,089,165 | 2,936 | 48.62 |
| Tmall | 76,853 | 114,209 | 5,130,294 | 2,113 | 66.76 |
| Cosmetics | 2,515 | 5,288 | 109,580 | 309 | 43.57 |
| Dataset | Model | AUC | GAUC | MRR | NDCG@2 | NDCG@5 | NDCG@10 | HIT@2 | HIT@5 | HIT@10 |
|---|---|---|---|---|---|---|---|---|---|---|
| Taobao | NCF An et al. (2019) | 0.7261 | 0.7356 | 0.2215 | 0.1689 | 0.2094 | 0.2423 | 0.1874 | 0.2786 | 0.3810 |
| DIN Zhou et al. (2018) | 0.8264 | 0.8442 | 0.4848 | 0.4429 | 0.4942 | 0.5212 | 0.4773 | 0.5910 | 0.6742 | |
| CASER Tang and Wang (2018) | 0.8446 | 0.8491 | 0.4590 | 0.4150 | 0.4690 | 0.4976 | 0.4518 | 0.5714 | 0.6597 | |
| GRU4REC Hidasi and Karatzoglou (2018) | 0.8580 | 0.8537 | 0.4639 | 0.4214 | 0.4732 | 0.4999 | 0.4573 | 0.5719 | 0.6545 | |
| DIEN Zhou et al. (2019) | 0.8455 | 0.8441 | 0.4763 | 0.4364 | 0.4848 | 0.5092 | 0.4695 | 0.5767 | 0.6520 | |
| SASREC Kang and McAuley (2018) | 0.8419 | 0.8441 | 0.4897 | 0.4505 | 0.4995 | 0.5234 | 0.4834 | 0.5916 | 0.6555 |
| Dataset | Model | AUC | MRR | NDCG@2 | HIT@2 |
|---|---|---|---|---|---|
| Taobao | SLSREC | 0.9076 | 0.5528 | 0.5109 | 0.5513 |
| w/o CL | 0.9026 | 0.5316 | 0.4874 | 0.5279 | |
| w/o cate | 0.8985 | 0.5167 | 0.4710 | 0.5119 | |
| w/o long | 0.8639 | 0.4992 | 0.4588 | 0.4936 | |
| w/o short | 0.6559 | 0.1624 | 0.1064 | 0.1238 | |
| Tmall | SLSREC | 0.8599 | 0.4698 | 0.4252 | 0.4509 |
Sequential Recommendation
Sequential recommendation predicts what a user will choose next from ordered interactions, adapting to changing interests and context.
See all 136 papers