NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Dual Conditional Diffusion Models for Sequential Recommendation

Hongtao Huang, Chengkai Huang, Xiaojun Chang, Wen Hu, Lina Yao · DOI

TL;DR

This paper introduces DCRec, a novel diffusion model for sequential recommendation that effectively combines both implicit and explicit user behavior signals. By bridging the gap between continuous diffusion processes and discrete item recommendations, DCRec achieves state-of-the-art performance and improved efficiency.

What Problem Does This Paper Address?

Recommender systems aim to predict what a user might like next, and sequential recommendation (SR) specifically leverages the order of past interactions. Diffusion models, inspired by image generation, have recently shown promise in SR by iteratively refining item representations. However, existing diffusion-based SR methods face two main challenges:

  1. Implicit vs. Explicit Conditioning: Current models primarily use either implicit conditioning (compressing user history into a single representation) or explicit conditioning (directly using historical item sequences). Implicit methods can lose crucial sequential details, while explicit methods can be noisy. Combining them effectively is difficult.
  2. Discrete vs. Continuous Gap: Diffusion models typically operate in continuous spaces (like image pixels), but recommendations involve discrete items. Existing SR diffusion models often work with continuous item embeddings, creating an inconsistency when mapping back to discrete items.

This paper aims to address these limitations by proposing a model that can leverage both implicit and explicit user history signals within a unified diffusion framework, while also bridging the discrete-continuous gap for more robust and accurate recommendations.

Methods

The core of this work is the Dual Conditional Diffusion Model for Sequential Recommendation (DCRec). Here's a breakdown of its key components:

  • Dual Conditional Diffusion Framework: DCRec introduces a novel diffusion framework that explicitly models the transition from continuous target item representations back to discrete item indices. This is achieved by incorporating a complete Markov chain, ensuring consistency between the diffusion process and the recommendation task.
  • Dual Conditional Diffusion Transformer (DCDT): This is the proposed denoising network within DCRec. It's designed to handle both implicit and explicit conditioning:
  • Implicit Conditioning: The model concatenates the noisy target item embedding with the user's historical item sequence. This combined sequence is then fed into a self-attention mechanism, allowing it to implicitly capture sequential patterns and contextual information.
  • Explicit Conditioning: The model uses a cross-attention mechanism to directly incorporate the user's historical item embeddings (Ho) as an explicit guidance signal. This allows for more precise control over the denoising process.
  • Conditional Layer Normalization (CondLN): A novel CondLN layer is introduced, which adapts the normalization process based on the user's history (Ho) and the current diffusion step (t). This helps in capturing intricate dependencies and personalizing the generation.
  • Efficient Inference: DCRec is designed to accelerate inference by allowing the model to skip intermediate diffusion steps when the generated output is already sufficiently accurate, significantly reducing computational overhead.

Datasets

The proposed DCRec model was evaluated on three publicly available datasets:

  • Amazon 5-core Beauty
  • Amazon 5-core Toys
  • Yelp

These datasets are standard benchmarks for sequential recommendation tasks. The paper follows common preprocessing steps, including filtering short sequences and padding sequences to a fixed length.

Key Insights and Ideas

  • The Power of Dual Conditioning: The paper strongly suggests that combining both implicit and explicit user history signals is crucial for robust sequential recommendations. Implicit signals capture long-term patterns, while explicit signals preserve temporal dynamics, and their synergy leads to better performance.
  • Bridging the Discrete-Continuous Gap: Explicitly modeling the transition from continuous embeddings to discrete items within the diffusion framework is key to improving consistency and accuracy in recommendation tasks.
  • Conditional Layer Normalization for Personalization: The CondLN layer's ability to adapt normalization based on user history and diffusion step is a novel way to inject personalized context into the diffusion process.
  • Efficiency Gains through Smart Inference: The observation that DCRec can skip diffusion steps without sacrificing accuracy highlights a practical advantage for real-world applications where latency is critical.

Key Results

  • State-of-the-Art Performance: DCRec consistently outperforms existing state-of-the-art sequential recommendation models, including other diffusion-based methods, across all three benchmark datasets. For instance, on the Beauty dataset, DCRec achieved a significant improvement of 3.45% in HR@5 and 3.16% in NDCG@10 compared to a strong baseline.
  • Module Effectiveness: Ablation studies show that both the dual attention mechanism (combining self-attention and cross-attention) and the Conditional Layer Normalization contribute significantly to DCRec's performance.
  • Inference Efficiency: DCRec demonstrates a substantial reduction in inference time compared to a strong diffusion-based baseline (DiffuRec), while maintaining or improving accuracy. This is attributed to its ability to achieve good results with fewer diffusion steps.
  • Impact of Noise: Adding noise to the entire concatenated input (history + target) proved more effective than adding noise only to the target item, likely due to the significant length difference between history and target sequences in SR.

Limitations and Future Work

  • Hyperparameter Sensitivity: While the paper explores different strategies for the loss balance factor ($\lambda$), it acknowledges that its tuning can influence performance, suggesting a need for careful optimization.
  • Dataset Length Impact: The optimal number of diffusion inference steps varies across datasets, indicating that the model's efficiency can be dataset-dependent.
  • Future Work: The authors suggest exploring more advanced diffusion frameworks and investigating how to further enhance the dual conditional mechanism for even better performance and efficiency. They also hint at the potential for applying this dual conditional approach to other sequential modeling tasks beyond recommendation.

Summary updated

BibTeX
@misc{huang2024dual,
  author = {Hongtao Huang and Chengkai Huang and Xiaojun Chang and Wen Hu and Lina Yao},
  title = {{Dual Conditional Diffusion Models for Sequential Recommendation}},
  year = {2024},
  eprint = {2410.21967},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.21967},
}
Figure