Skip to main content
QUICK REVIEW

[Paper Review] Sequential Recommendation with Diffusion Models

Hanwen Du, Huanhuan Yuan|arXiv (Cornell University)|Apr 10, 2023
Recommender Systems and TechniquesComputer Science10 citations
TL;DR

The paper introduces DiffRec, a diffusion-model-based sequential recommender that adapts diffusion processes for discrete item sequences with efficient training/inference, achieving state-of-the-art results.

ABSTRACT

Generative models, such as Variational Auto-Encoder (VAE) and Generative Adversarial Network (GAN), have been successfully applied in sequential recommendation. These methods require sampling from probability distributions and adopt auxiliary loss functions to optimize the model, which can capture the uncertainty of user behaviors and alleviate exposure bias. However, existing generative models still suffer from the posterior collapse problem or the model collapse problem, thus limiting their applications in sequential recommendation. To tackle the challenges mentioned above, we leverage a new paradigm of the generative models, i.e., diffusion models, and present sequential recommendation with diffusion models (DiffRec), which can avoid the issues of VAE- and GAN-based models and show better performance. While diffusion models are originally proposed to process continuous image data, we design an additional transition in the forward process together with a transition in the reverse process to enable the processing of the discrete recommendation data. We also design a different noising strategy that only noises the target item instead of the whole sequence, which is more suitable for sequential recommendation. Based on the modified diffusion process, we derive the objective function of our framework using a simplification technique and design a denoise sequential recommender to fulfill the objective function. As the lengthened diffusion steps substantially increase the time complexity, we propose an efficient training strategy and an efficient inference strategy to reduce training and inference cost and improve recommendation diversity. Extensive experiment results on three public benchmark datasets verify the effectiveness of our approach and show that DiffRec outperforms the state-of-the-art sequential recommendation models.

Motivation & Objective

  • Motivate modeling uncertainty and exposure bias in sequential recommendation.
  • Introduce diffusion models to sequential recommendation and adapt them for discrete data.
  • Design forward/back transitions and a targeted noising strategy suitable for sequences.
  • Derive a tractable objective and build a denoise Sequential Recommender.
  • Propose efficient training and inference strategies to reduce cost and improve diversity.

Proposed method

  • Define an additional forward transition that maps discrete items to continuous hidden representations.
  • Noise only the target item’s hidden representation during diffusion steps to align with next-item prediction goals.
  • Introduce a reverse transition that maps hidden representations back to item distributions via a linear layer and softmax.
  • Derive a simplified variational objective that reduces to a mean square error (MSE) loss plus a standard recommendation loss.
  • Develop the Denoise Sequential Recommender (DSR) using a Transformer encoder with position and diffusion-step embeddings.
  • Apply efficient training with step sampling and importance sampling to focus on harder diffusion steps.

Experimental results

Research questions

  • RQ1Can diffusion models be effectively adapted to discrete sequential recommendation tasks?
  • RQ2How should the forward and reverse diffusion transitions be designed for sequences to avoid posterior/model collapse?
  • RQ3What objective formulation enables tractable training for diffusion-based sequential recommenders?
  • RQ4Can efficient training and inference strategies yield competitive performance without prohibitive costs?
  • RQ5Does DiffRec achieve state-of-the-art performance and improved diversity on benchmark datasets?

Key findings

  • DiffRec outperforms state-of-the-art sequential recommenders on three public benchmarks.
  • The modified diffusion process (discrete-to-continuous transition and target-item noising) effectively handles sequential data.
  • A tractable, MSE-based objective is derived that enables training with a single diffusion step per sequence and an additional recommendation loss.
  • An efficient training strategy with diffusion-step sampling and importance sampling reduces cost while maintaining performance.
  • DSR, with position and diffusion embeddings inside a Transformer, provides accurate denoising of the target item’s hidden representation.
  • Inference strategies are proposed to reduce computational cost and enhance recommendation diversity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.