DimeRec: A Unified Framework for Enhanced Sequential Recommendation via Generative Diffusion Models

Wuchao Li, Rui Huang, Haijun Zhao, Chi Liu, Kai Zheng, Qi Liu, Na Mou, Guorui Zhou, Defu Lian, Yang Song, Wentian Bao, Enyun Yu, Wenwu Ou

TL;DR

This paper introduces DimeRec, a novel framework for sequential recommendation that leverages generative diffusion models to enhance both recommendation accuracy and diversity. By shifting the focus from predicting individual items to predicting user interests, DimeRec effectively addresses limitations of existing methods and achieves state-of-the-art performance on multiple datasets, even demonstrating success in a large-scale industrial deployment.

What Problem Does This Paper Address?

Recommender systems aim to predict what users will like next based on their past interactions. Sequential Recommendation (SR) specifically focuses on the order of these interactions. A key challenge in SR is balancing two crucial aspects: providing accurate recommendations (i.e., items users are likely to engage with) and ensuring diversity (i.e., offering a variety of items to avoid filter bubbles and cater to broader interests). Existing SR methods often struggle to optimize both simultaneously. Deterministic models can suffer from "exposure bias" (over-relying on popular items), while generative models, though promising for diversity, can be unstable or have limitations in capturing the discrete nature of item recommendations. Diffusion Models (DMs), a recent advancement in generative modeling, show potential but face challenges when applied to the discrete and non-stationary nature of user interaction sequences.

Methods

DimeRec proposes a unified framework that integrates diffusion models into sequential recommendation. The core innovation lies in two modules:

  • Guidance Extraction Module (GEM): Instead of using the raw, non-stationary user interaction history directly to guide the diffusion process, GEM extracts "stationary guidance signals" representing user interests. This is achieved using a multi-interest model (specifically, a self-attentive mechanism similar to ComiRec) to capture more stable, higher-level user preferences. This module is trained with a dedicated "guidance loss" to ensure stable learning of item representations.
  • Diffusion Aggregation Module (DAM): This module leverages diffusion models to generate the final user embedding. Crucially, it operates in a "spherical representation space" and uses a "Geodesic Random Walk" to add noise. This approach aims to resolve the incompatibility between the reconstruction loss of diffusion models and the recommendation loss (optimizing inner product), which can lead to conflicting optimization directions in Euclidean space. DAM then denoises this representation, conditioned on the guidance from GEM, to produce a user embedding that captures potential future interests.

The framework is trained jointly, optimizing both the GEM and DAM modules.

Datasets

The paper evaluates DimeRec on three widely-used real-world public datasets:

  • YooChoose: An e-commerce dataset.
  • KuaiRec: A short video sharing platform dataset.
  • ML-10M: A movie recommendation dataset.

Key Insights and Ideas

  • Shifting from Item Prediction to Interest Prediction: The core idea of predicting a user's next interest rather than their next item is a significant departure that allows for more stable and generalizable guidance for diffusion models.
  • Spherical Space for Diffusion: Operating in a spherical space and using Geodesic Random Walk helps reconcile the conflicting optimization objectives of diffusion models (noise reconstruction) and recommendation models (maximizing inner product), leading to more stable training and better performance.
  • Independent Guidance Loss: The introduction of a separate loss for the GEM module is crucial for stable representation learning, especially when item embeddings are randomly initialized.
  • Diffusion Models for Representation Learning: The paper highlights that diffusion models, beyond generation, can significantly enhance the quality of learned item representations, as evidenced by linear probing accuracy.

Key Results

  • State-of-the-Art Performance: DimeRec significantly outperforms established baseline methods (traditional SR, multi-interest, and other diffusion-based models) across all three datasets in terms of HR@20, HR@50, NDCG@20, and NDCG@50. For instance, on YooChoose, DimeRec showed a 18.29% improvement in HR@50 over the second-best model.
  • Improved Diversity: DimeRec demonstrates an increase in the number of recommended categories, validating its ability to provide diverse recommendations.
  • Online Deployment Success: In a real-world industrial A/B test on a short video platform, DimeRec achieved significant business gains, improving users' time spent by +0.110% and category diversity by +0.139%, leading to its deployment for hundreds of millions of users.
  • Efficiency: The model is efficient, with online inference time under 1ms, and requires a relatively small number of diffusion steps (around 20) for optimal performance.

Limitations and Future Work

  • Hyperparameter Sensitivity: While the paper notes that the model is not overly sensitive to the $\lambda$ parameter for the reconstruction loss, it suggests that researchers should choose $\mu$ for the sampling softmax loss between 1 and 10.
  • Future Work: The paper implicitly suggests that further exploration of different GEM architectures and more advanced diffusion model techniques could lead to even greater improvements. The success in industrial deployment also opens avenues for further research into scaling and real-time adaptation of such models.

Summary updated

BibTeX
@inproceedings{li2024dimerec,
  author = {Wuchao Li and Rui Huang and Haijun Zhao and Chi Liu and Kai Zheng and Qi Liu and Na Mou and Guorui Zhou and Defu Lian and Yang Song and Wentian Bao and Enyun Yu and Wenwu Ou},
  title = {{DimeRec: A Unified Framework for Enhanced Sequential Recommendation via Generative Diffusion Models}},
  booktitle = {WSDM},
  year = {2024},
  url = {https://openreview.net/forum?id=S261hjP83o},
}
Figure