Introduction
Sequential recommendation systems are designed to predict a user's future actions based on their historical behavior. While recent advancements in the field have focused heavily on developing sophisticated neural architectures—such as Transformers and CNNs—the loss functions used to train these models have remained largely stagnant. Most models rely on pointwise (Cross-Entropy) or pairwise (Bayesian Personalized Ranking) losses, which treat items as independent entities.
Presented at SIGIR '22, this research introduces a paradigm shift: moving away from traditional ranking losses toward set-based likelihoods using Determinantal Point Processes (DPPs). By introducing two new loss functions—DPP Set Likelihood (DSL) and Conditional DPP Set Likelihood (CDSL)—the authors enable models to account for item dependencies and the inherent trade-off between accuracy and diversity directly during the training phase.
The Limitations of Traditional Ranking Losses
Standard loss functions in sequential recommendation suffer from two primary flaws that limit their effectiveness in real-world scenarios:
- Ignoring Target Dependencies: Traditional losses assume that each item in a predicted set is independent of the others. In practice, user choices are often co-dependent; for example, a user purchasing a smartphone is likely to look for a compatible case and screen protector simultaneously. Standard models fail to capture these "within-set" relationships.
- The Accuracy Trap: By optimizing solely for relevance, models often fall into the trap of recommending highly similar items (e.g., ten different versions of the same shirt). This lack of diversity leads to a poor user experience. Typically, diversity is addressed as a post-processing re-ranking step, which is disjointed from the model's actual learning process.
Proposed Method: DPP-based Likelihoods
To address these issues, the researchers leverage Determinantal Point Processes (DPP), a probabilistic framework specifically designed to model "repulsive" correlations. DPPs are mathematically elegant tools for selecting subsets that are both high-quality and diverse.
The core of the approach involves decomposing the DPP kernel matrix ($L$) into two distinct components:
- Quality: Relevance scores predicted by the underlying recommendation architecture (e.g., SASRec or Caser).
- Diversity: A similarity matrix learned via low-rank factorization that penalizes the selection of items that are too similar to one another.
DSL and CDSL Loss Functions
The paper introduces two specific formulations for training:
- DPP Set Likelihood (DSL): This function treats the target items as a subset drawn from a larger ground set. It focuses on capturing the internal dependencies between the target items themselves, ensuring the model learns which items "belong together."
- Conditional DPP Set Likelihood (CDSL): An evolution of DSL, this function conditions the likelihood of the next items on the user's historical context. This captures "sequence dependency," ensuring that the predicted set is not only internally consistent but also a logical progression from the user's past actions.
Experimental Setup
The authors evaluated the proposed losses by integrating them into three state-of-the-art recommendation models: Caser, MARank, and SASRec. These models were tested across three diverse datasets:
- MovieLens (ML-1M): A benchmark dataset featuring 1 million movie ratings.
- Anime: User ratings from myanimelist.net, characterized by a wide variety of genres.
- Amazon Beauty: A sparse dataset of product reviews with a high number of categories (213), making it a rigorous test for diversity and sparse signal learning.
Key Results and Insights
The transition to DPP-based losses yielded significant improvements across both accuracy and diversity metrics:
- Performance Gains: Models trained with DSL/CDSL saw substantial increases in Recall@N and NDCG@N, in some cases exceeding a 20% improvement over baseline models using standard losses.
- Enhanced Diversity: The Category Coverage (CC)—a metric indicating the variety of item types recommended—improved consistently. This demonstrates that the model successfully learns to balance relevance and variety during the training phase rather than relying on post-hoc adjustments.
- The CDSL Advantage: CDSL generally outperformed DSL, confirming that accounting for the relationship between historical context and future targets is crucial for sequential tasks.
- Convergence Efficiency: Despite the increased mathematical complexity of calculating determinants, the DPP-based losses often led to faster convergence. This resulted in total training times that were comparable to, or even better than, traditional methods.
Conclusion and Future Directions
This research demonstrates that treating recommendation as a set selection task rather than a simple ranking task offers a more principled way to handle item dependencies and diversity. By embedding these considerations directly into the loss function, models become more robust and provide more useful, varied suggestions to users.
While the approach is highly effective for predicting sets of items ($T > 1$), its benefits are most pronounced when multiple items are being recommended at once. Future work may involve applying these DPP-based losses to other sequential domains, such as clinical event prediction in healthcare or next-basket recommendations in e-commerce, where internal item dependencies are exceptionally strong.
Summary updated