Skip to main content
QUICK REVIEW

[Paper Review] Sequential Recommendation with Relation-Aware Kernelized Self-Attention

Mingi Ji, Weonyoung Joo|arXiv (Cornell University)|Nov 15, 2019
Recommender Systems and TechniquesComputer Science25 references6 citations
TL;DR

This paper proposes Relation-Aware Kernelized Self-Attention (RKSA), a stochastic self-attention mechanism for sequential recommendation that models user-item interactions through a multivariate skew-normal latent space with kernelized covariance matrices derived from co-occurrence, item features, and user data. RKSA improves recommendation performance over state-of-the-art models by incorporating relational inductive bias and enabling interpretable attention reasoning, achieving consistent gains across diverse benchmark datasets including MovieLens, Amazon, and Steam.

ABSTRACT

Recent studies identified that sequential Recommendation is improved by the attention mechanism. By following this development, we propose Relation-Aware Kernelized Self-Attention (RKSA) adopting a self-attention mechanism of the Transformer with augmentation of a probabilistic model. The original self-attention of Transformer is a deterministic measure without relation-awareness. Therefore, we introduce a latent space to the self-attention, and the latent space models the recommendation context from relation as a multivariate skew-normal distribution with a kernelized covariance matrix from co-occurrences, item characteristics, and user information. This work merges the self-attention of the Transformer and the sequential recommendation by adding a probabilistic model of the recommendation task specifics. We experimented RKSA over the benchmark datasets, and RKSA shows significant improvements compared to the recent baseline models. Also, RKSA were able to produce a latent space model that answers the reasons for recommendation.

Motivation & Objective

  • To address the limitations of deterministic self-attention in sequential recommendation, particularly in handling data sparsity and lacking interpretability.
  • To integrate relational inductive bias—capturing co-occurrence, item characteristics, and user behavior—into the self-attention mechanism for better context modeling.
  • To enable interpretable recommendation reasoning by learning a probabilistic latent space that reflects the underlying relationships in user sequences.
  • To develop a kernelized covariance matrix that flexibly models relations between items, users, and sequences, enhancing model adaptability.
  • To outperform existing sequential recommendation models across diverse, real-world datasets with varying sparsity levels.

Proposed method

  • RKSA introduces a stochastic self-attention mechanism by embedding the query, key, and value matrices into a multivariate skew-normal (MSN) latent space to model uncertainty and relational context.
  • The covariance matrix of the MSN distribution is kernelized using a learned function that integrates co-occurrence statistics, item embeddings, and user embeddings to capture relational dependencies.
  • A reparameterization trick is applied to the MSN distribution to enable amortized inference and end-to-end training of the latent space.
  • The model employs a multi-head attention architecture where each head computes attention over the kernelized latent space, allowing for scalable and expressive relation modeling.
  • The kernel function is designed to be differentiable and adaptable, combining multiple relational signals (counting, item, user) with learnable weights to dynamically emphasize relevant relational cues per dataset.
  • The final attention output is computed via a differentiable sampling process from the latent MSN distribution, enabling both performance gains and interpretability.

Experimental results

Research questions

  • RQ1Can a stochastic self-attention mechanism with a probabilistic latent space improve sequential recommendation performance over deterministic attention models?
  • RQ2How effectively can relational inductive bias—derived from co-occurrence, item features, and user behavior—be integrated into self-attention for better modeling of sequential dependencies?
  • RQ3To what extent does kernelized covariance modeling enhance the adaptability and generalization of self-attention in sequential recommendation across datasets with varying sparsity?
  • RQ4Can the latent space in RKSA provide interpretable insights into the reasoning behind recommendations, such as highlighting related items or user preferences?
  • RQ5How do different kernel components (counting, item, user) contribute to performance, and how do their relative weights adapt to dataset characteristics?

Key findings

  • RKSA achieves state-of-the-art performance across eight benchmark models and five diverse datasets, including sparse (Beauty) and dense (MovieLens) settings.
  • On the Beauty dataset, the counting kernel function yields the best performance, indicating its effectiveness in handling data sparsity through co-occurrence patterns.
  • On the MovieLens dataset, the user kernel dominates, reflecting the model’s ability to adapt to dense user interaction patterns by emphasizing user-specific preferences.
  • The kernel combination of item and user features outperforms individual kernels on dense datasets, demonstrating the value of multi-modal relational modeling.
  • RKSA improves prediction accuracy for infrequent items, as shown by higher average predicted rankings for low-frequency items compared to SASRec, especially in sparse datasets.
  • Qualitative analysis confirms that RKSA learns meaningful item embeddings and correlation matrices: items from the same genre cluster together, and high co-occurrence pairs exhibit strong attention weights, validating the model’s relational reasoning capability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.