Abstract
Sequential recommendation systems aim to predict a user's next action based on their immediate history. Traditional approaches often decouple user preferences from sequential dynamics, leading to sub-optimal performance on sparse datasets. This paper introduces TransRec, a unified framework that embeds items as points in a latent space and represents users as translation vectors. By modeling the transition from a previous item to the next as a geometric translation ($\\vec{i} + \\vec{u} \\approx \\vec{j}$), TransRec captures complex third-order interactions within a metric space that naturally satisfies the triangle inequality. Empirical evaluations on large-scale datasets, including Amazon and Google Local, demonstrate that TransRec significantly outperforms state-of-the-art baselines, particularly in high-sparsity scenarios.
Introduction
Predicting "next-item" behavior is a fundamental challenge in recommender systems. This task involves a "third-order" interaction between the user ($u$), the previously visited item ($i$), and the next item ($j$). Historically, models like Factorized Personalized Markov Chains (FPMC) have addressed this by combining two independent components: Matrix Factorization for long-term user preferences and Markov Chains for item-to-item transitions.
However, these components are often highly correlated and should not be modeled in isolation. Furthermore, many existing methods rely on inner products, which do not adhere to the triangle inequality. This lack of "metricity" can limit a model's ability to generalize from sparse data. TransRec addresses these issues by adopting a geometric perspective inspired by knowledge graph embeddings.
The TransRec Approach
TransRec moves away from the "sum of two parts" architecture. Instead, it embeds all items as points $\\gamma$ in a $K$-dimensional latent transition space. Each user $u$ is represented by a translation vector $t_u$, which signifies their unique "intent" or preference trajectory.
The core operation seeks to satisfy the relationship $\\gamma_i + T_u \\approx \\gamma_j$. Here, $T_u$ is composed of a global transition vector (representing average behavior) and a user-specific offset. By measuring the "compatibility" of a $(u, i, j)$ triplet using a distance function (such as $L_1$ or squared $L_2$), the model creates a unified metric space. This approach reduces the total number of parameters while capturing the intricate interplay between user identity and item sequences.
Experimental Evaluation
The authors evaluated TransRec across several diverse and large-scale datasets:
- Amazon: Eight categories (e.g., Electronics, Clothing) characterized by high sparsity.
- Google Local: A massive new dataset introduced by the authors, containing over 11 million reviews of businesses worldwide.
- Foursquare & Flixter: Datasets representing location-based check-ins and dense movie ratings, respectively.
The model was trained using Sequential Bayesian Personalized Ranking (S-BPR), which optimizes the probability that a ground-truth next item is ranked higher than a randomly sampled negative item.
Performance Analysis
TransRec consistently outperformed state-of-the-art baselines such as FPMC, PRME, and HRM across various domains. The model's strengths are most apparent in sparse data environments. For instance, on the Google Local and Amazon Clothing datasets, TransRec improved the Hit@50 metric by 32.5% and 24.7%, respectively.
As shown in the performance plots, TransRec (specifically the L1 and L2 variants) maintains a clear lead over competing methods as training iterations progress. The metric-based nature of the model allows it to handle "transitivity" effectively; if users frequently transition from Item A to B and A to C, the model naturally clusters B and C together, enhancing its predictive power for unseen sequences.
Conclusion
TransRec provides a robust, geometrically intuitive solution for sequential recommendation. By unifying user preferences and sequential dynamics into a single translation operation, it achieves superior generalization on sparse, large-scale datasets. While the current model focuses on the immediately preceding item, future work may involve extending this translation framework to capture longer-term dependencies using recurrent or attention-based architectures.
Summary updated