HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

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

Positional encoding is not the same as context: A study on positional encoding for sequential recommendation

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

BenchmarkMethodologyMetrics
recommendation-systems-on-amazon-beautyCARCA Abs + Con
Hit@10: 0.6793
NDCG: 0.4871
recommendation-systems-on-amazon-beautyCARCA-Rotatory
Hit@10: 0.6187
NDCG: 0.4260
recommendation-systems-on-amazon-fashionRMHA-4
Hit@10: 0.7726
NDCG: 0.4975
recommendation-systems-on-amazon-gamesCARCA-Rotatory + Con.
Hit@10: 0.8062
NDCG: 0.5607
recommendation-systems-on-amazon-menCARCA Learnt + Con
Hit@10: 0.7386
NDCG: 0.5889
recommendation-systems-on-amazon-menRMHA-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.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Positional encoding is not the same as context: A study on positional encoding for sequential recommendation | Papers | HyperAI