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

Sequential Recommendation via Stochastic Self-Attention

About

Sequential recommendation models the dynamics of a user's previous behaviors in order to forecast the next item, and has drawn a lot of attention. Transformer-based approaches, which embed items as vectors and use dot-product self-attention to measure the relationship between items, demonstrate superior capabilities among existing sequential methods. However, users' real-world sequential behaviors are \textit{\textbf{uncertain}} rather than deterministic, posing a significant challenge to present techniques. We further suggest that dot-product-based approaches cannot fully capture \textit{\textbf{collaborative transitivity}}, which can be derived in item-item transitions inside sequences and is beneficial for cold start items. We further argue that BPR loss has no constraint on positive and sampled negative items, which misleads the optimization. We propose a novel \textbf{STO}chastic \textbf{S}elf-\textbf{A}ttention~(STOSA) to overcome these issues. STOSA, in particular, embeds each item as a stochastic Gaussian distribution, the covariance of which encodes the uncertainty. We devise a novel Wasserstein Self-Attention module to characterize item-item position-wise relationships in sequences, which effectively incorporates uncertainty into model training. Wasserstein attentions also enlighten the collaborative transitivity learning as it satisfies triangle inequality. Moreover, we introduce a novel regularization term to the ranking loss, which assures the dissimilarity between positive and the negative items. Extensive experiments on five real-world benchmark datasets demonstrate the superiority of the proposed model over state-of-the-art baselines, especially on cold start items. The code is available in \url{https://github.com/zfan20/STOSA}.

Ziwei Fan, Zhiwei Liu, Alice Wang, Zahra Nazari, Lei Zheng, Hao Peng, Philip S. Yu• 2022

Related benchmarks

TaskDatasetResultRank
Sequential RecommendationYelp
Recall@100.0602
80
Sequential RecommendationSports
Recall@104.64
62
Sequential RecommendationBeauty
Recall@106.48
42
Sequential RecommendationHome
Recall@101.69
18
User Trajectory PredictionAmazon Cell Phones & Accessories Seq-1 (test)
MHR@50.0423
6
User Trajectory PredictionAmazon Beauty Seq-1 (test)
MHR@50.0354
6
User Trajectory PredictionAmazon Cell Phones & Accessories Seq-2 (test)
MHR@50.0123
6
User Trajectory PredictionAmazon Beauty Seq-2 (test)
MHR@52.19
6
User Trajectory PredictionAmazon Beauty Seq-3 (test)
MHR@51.9
6
User Trajectory PredictionAmazon Cell Phones & Accessories Seq-3 (test)
MHR@50.0122
6
Showing 10 of 10 rows

Other info

Follow for update