TL;DR
This paper introduces a personalized re-ranking model for recommender systems that leverages the Transformer architecture's self-attention mechanism to capture complex item-item interactions within a recommendation list. By incorporating user-specific embeddings, the model significantly improves ranking quality over traditional methods, demonstrating its effectiveness in both offline evaluations and real-world online A/B tests.
What Problem Does This Paper Address?
Recommender systems aim to present users with a ranked list of relevant items. Traditional ranking algorithms often treat each item independently, optimizing a global score without considering how items influence each other within the list or how individual user preferences might alter these interactions. This can lead to suboptimal recommendations, especially when user intent or subtle item relationships are crucial. The paper addresses this by proposing a "re-ranking" approach that refines an initial ranked list, specifically focusing on modeling the mutual influences between items and personalizing these interactions based on user characteristics.
Methods
The core of the proposed solution is a Personalized Re-ranking Model (PRM) built upon the Transformer architecture.
- Transformer for Item Interactions: Instead of sequential processing (like RNNs) which can suffer from information decay over distance, PRM uses the Transformer's self-attention mechanism. This allows every item in the initial list to directly attend to every other item, effectively modeling their mutual influences regardless of their position. This is a key departure from previous re-ranking methods that struggled with long-range dependencies.
- Personalized Module: To account for user-specific preferences, PRM introduces a personalized vector (PV). This PV is derived from a pre-trained neural network that learns user embeddings from their historical behavior and side information (like demographics). This personalized embedding is then concatenated with item features, allowing the Transformer to learn user-specific interactions.
- Input Layer: The model takes an initial ranked list and its associated feature vectors. It then incorporates personalized vectors and positional embeddings before feeding them into the Transformer encoder.
- Output Layer: A simple feed-forward network with a sigmoid activation generates a re-ranked score for each item.
Datasets
The paper utilizes two datasets:
- Yahoo Letor dataset: A public benchmark dataset commonly used for learning-to-rank tasks. For this work, it was adapted for recommendation scenarios.
- E-commerce Re-ranking dataset: A newly introduced, large-scale dataset constructed from a real-world e-commerce recommender system. This dataset includes user information, recommendation lists, click-through labels, and raw features, making it valuable for studying re-ranking in a practical context.
Key Insights and Ideas
- Transformer's Superiority for Item Interactions: The self-attention mechanism in Transformers is highly effective at capturing complex, non-local dependencies between items in a recommendation list, outperforming RNN-based approaches that can lose information over distance.
- Personalization is Crucial for Re-ranking: Simply modeling item interactions globally isn't enough. User-specific preferences significantly impact how items influence each other, and incorporating personalized embeddings (PVs) leads to substantial performance gains.
- Pre-training for Robust Personalization: Using a pre-trained model to generate user embeddings (PVs) allows for more generic and representative user preferences, which in turn enables the re-ranking model to learn more accurate user-specific interaction functions.
- Re-ranking Benefits More on Harder Tasks: The improvements from PRM are more pronounced on the e-commerce dataset, which has a lower click-through rate and is thus a more challenging ranking task, highlighting the model's ability to extract value from subtle signals.
Key Results
- Offline Performance: PRM-BASE (without personalization) consistently outperformed baselines like DLCM, SVMRank, and LambdaMART on both datasets, showing significant improvements in metrics like MAP and Precision@k. For example, on the E-commerce dataset, PRM-BASE achieved a 2.3% increase in MAP over DLCM.
- Personalization Impact: PRM-Personalized-Pretrain (with PVs) further boosted performance. On the E-commerce dataset, it achieved a 4.5% increase in MAP and 6.8% in Precision@5 compared to PRM-BASE.
- Online A/B Tests: In a real-world e-commerce system, PRM-Personalized-Pretrain led to significant improvements in key online metrics: a 3.01% increase in viewed items (PV), 5.69% in clicked items (IPV), 2.6% in click-through rate (CTR), and a substantial 6.65% increase in gross merchandise value (GMV) compared to a baseline DNN-based LTR model.
Limitations and Future Work
- Limitations: The paper notes that while PRM-BASE performs well without position embeddings, its performance degrades, indicating the importance of sequential information. The effectiveness of multi-head attention was less pronounced than in NLP tasks, suggesting that for highly homogenous item lists, fewer heads might suffice.
- Future Work: The authors suggest exploring optimization in the "label space" (beyond just feature interactions) and incorporating explicit diversification goals into the re-ranking process. They also propose that their released E-commerce Re-ranking dataset can facilitate further research in this area.
Summary updated