Command Palette
Search for a command to run...
Positional encoding is not the same as context: A study on positional encoding for sequential recommendation
Alejo Lopez-Avila Jinhua Du Abbas Shimary Ze Li

Abstract
The rapid growth of streaming media and e-commerce has driven advancements in recommendation systems, particularly Sequential Recommendation Systems (SRS). These systems employ users' interaction histories to predict future preferences. While recent research has focused on architectural innovations like transformer blocks and feature extraction, positional encodings, crucial for capturing temporal patterns, have received less attention. These encodings are often conflated with contextual, such as the temporal footprint, which previous works tend to treat as interchangeable with positional information. This paper highlights the critical distinction between temporal footprint and positional encodings, demonstrating that the latter offers unique relational cues between items, which the temporal footprint alone cannot provide. Through extensive experimentation on eight Amazon datasets and subsets, we assess the impact of various encodings on performance metrics and training stability. We introduce new positional encodings and investigate integration strategies that improve both metrics and stability, surpassing state-of-the-art results at the time of this work's initial preprint. Importantly, we demonstrate that selecting the appropriate encoding is not only key to better performance but also essential for building robust, reliable SRS models.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| recommendation-systems-on-amazon-beauty | CARCA Abs + Con | Hit@10: 0.6793 NDCG: 0.4871 |
| recommendation-systems-on-amazon-beauty | CARCA-Rotatory | Hit@10: 0.6187 NDCG: 0.4260 |
| recommendation-systems-on-amazon-fashion | RMHA-4 | Hit@10: 0.7726 NDCG: 0.4975 |
| recommendation-systems-on-amazon-games | CARCA-Rotatory + Con. | Hit@10: 0.8062 NDCG: 0.5607 |
| recommendation-systems-on-amazon-men | CARCA Learnt + Con | Hit@10: 0.7386 NDCG: 0.5889 |
| recommendation-systems-on-amazon-men | RMHA-4 | Hit@10: 0.7013 NDCG: 0.4641 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.