Abstract
Sequential Recommendation (SR) aims to predict future user interactions based on historical data. Traditional methods often represent items as static vectors, which struggle to account for the multi-faceted nature of items and the evolving interests of users. This paper introduces DiffuRecSys, an enhanced generative diffusion model that represents items as probability distributions. By utilizing a cross-attention mechanism and "offset noise," DiffuRecSys effectively captures user behavior uncertainty, significantly outperforming existing baselines and reducing training time by approximately 66%.
Introduction
Sequential Recommendation systems are pivotal in modern digital platforms. However, the standard approach of using fixed "point" embeddings limits the model's ability to handle the ambiguity and diversity inherent in user preferences. While generative models like VAEs and GANs have been explored, they often face issues like posterior collapse or training instability. Diffusion models, known for their success in high-fidelity image generation, offer a stable alternative for modeling complex distributions. DiffuRecSys adapts this technology for the discrete, sequential domain of recommendations.
Methodology
DiffuRecSys builds upon the diffusion framework, consisting of a forward corruption phase and a reverse reconstruction phase.
Diffusion and Reverse Phases
In the forward phase, the target item's embedding is gradually corrupted with Gaussian noise until it becomes pure noise. In the reverse phase, the model learns to iteratively remove this noise to recover the original item, guided by the user's historical interactions. This process allows the model to treat item embeddings as distributions rather than fixed points.
Architectural Innovations
The primary contribution of DiffuRecSys lies in its "Approximator" design, which handles the noise removal process:
- Cross-Attention Approximator: Unlike previous models that simply aggregate historical data, DiffuRecSys employs a cross-attention mechanism. This allows the model to dynamically weigh the relevance of specific past interactions relative to the target item being predicted, making the system context-aware.
- Offset Noise: To improve robustness against "mean shifts" in recommendation data, the authors introduce a constant offset term (non-zero mean noise) during training. This forces the model to generalize better across diverse and shifting user behaviors.
Experimental Evaluation
The model was evaluated using the RecBole framework on three benchmark datasets: MovieLens 1M (ML1M), Amazon Beauty, and Amazon Toys. These datasets represent a mix of dense and sparse interaction patterns.
Key Results
DiffuRecSys demonstrated superior performance compared to competitive baselines such as GRU4Rec, SASRec, and BERT4Rec.
- Accuracy Improvements: On the Amazon Beauty dataset, the model achieved a 23.29% improvement in HR@5 over the best non-diffusion baseline.
- Ranking Quality: Significant gains were observed in NDCG metrics, indicating better ranking of recommended items.
- Efficiency: The architectural refinements led to faster convergence, reducing training time by nearly two-thirds compared to the baseline DiffuRec model.
Discussion and Conclusion
By treating item embeddings as distributions rather than points, DiffuRecSys successfully incorporates uncertainty into the recommendation process. The cross-attention mechanism provides context-aware predictions, while offset noise enhances robustness against real-world data variability.
Limitations and Future Work
Despite its success, the model still faces the "long-tail problem," where performance on rare items is lower than on popular ones. Additionally, performance can be sensitive to the length of user history; very long histories may introduce noise that confuses the model. Future research may explore "guided diffusion" to incorporate external signals like item categories or user demographics to further refine the generation process.
Summary updated