TL;DR
DCRec (Dual Conditional Diffusion Models for Sequential Recommendation) introduces a framework that uses both implicit and explicit conditioning to guide the diffusion process. By integrating user history as both a fused feature and a direct cross-attention signal, the model captures fine-grained sequential patterns more effectively than previous methods while significantly accelerating inference speed.
What Problem Does This Paper Address?
Sequential Recommender Systems (SRSs) aim to predict a user's next interaction based on their history. Recently, diffusion models—which learn to recover data from Gaussian noise through an iterative denoising process—have shown great promise in this area. Their step-wise nature naturally aligns with the way user preferences evolve.
However, existing diffusion-based recommenders suffer from two main issues:
- Information Loss: Most models use "implicit conditioning," where the entire user history is compressed into a single vector. This oversimplification loses the specific order and context of past actions.
- Efficiency: Standard diffusion models require hundreds of sampling steps to generate a recommendation, making them too slow for real-time applications.
DCRec tackles these by proposing a dual-conditioning mechanism that retains sequential detail and a robust architecture that allows for faster sampling.
Methods
The authors propose the Dual Conditional Diffusion Model (DCRec), powered by a novel Dual Conditional Diffusion Transformer (DCDT).
- Dual Conditioning:
- Implicit Path: Instead of compressing history, DCRec concatenates the noisy target item embedding with the noisy history sequence. This "implicit" guidance helps the model learn the relationship between the target and the sequence structure under noise.
- Explicit Path: The model uses the clean (original) history embeddings as a direct guide. This acts as a "ground truth" anchor during the reverse denoising process.
- DCDT Architecture: The transformer block is modified to handle these dual signals:
- Conditional Layer Normalization (CondLN): Adapts the normalization process based on the current diffusion step and user history.
- Explicit Cross-Attention: A dedicated layer where the noisy sequence (query) interacts directly with the clean history (keys and values), ensuring the model doesn't drift away from actual user behavior.
- Inference Acceleration: The authors discovered that their DCDT module is robust enough to skip intermediate denoising steps. By skipping steps, they can generate recommendations much faster than traditional diffusion models without a significant drop in accuracy.
Datasets
The model was evaluated on three widely used public benchmarks:
- Amazon Beauty: A "5-core" subset (users/items with at least 5 interactions).
- Amazon Toys: Another "5-core" subset from the Amazon product data.
- Yelp: Business transaction records, filtered for interactions after January 1st, 2019.
Key Insights and Ideas
- The Power of Dual Guidance: The "aha moment" is that implicit and explicit signals are complementary. Implicit conditioning helps with feature fusion, while explicit conditioning provides a stable reference point that prevents the model from being misled by noise.
- Noising the Whole Sequence: Unlike some NLP diffusion models that only noise the "answer" (the target item), DCRec noises the entire history sequence. Because history is much longer than a single target item, noising only the target leads to an imbalance that hinders learning.
- Trajectory Precision: As shown in Figure 2(b), the dual conditional trajectory is significantly more likely to reach the "target item" area in the latent space compared to single-condition methods, which often drift toward "negative items."
Key Results
DCRec was compared against 10 baselines, including traditional models (GRU4Rec), contrastive models (CL4SRec), and state-of-the-art diffusion models (DiffuRec, SdifRec).
- Accuracy: DCRec consistently outperformed all baselines. For example, on the Toys dataset, it achieved a 17.35% improvement in Hit Ratio (HR@5) and a 17.87% improvement in NDCG@10 over the best baseline.
- Efficiency: DCRec maintains high performance even when the number of inference steps is drastically reduced. It achieves better results with just a few steps than other diffusion models do with many more, making it viable for production environments.
Limitations and Future Work
- Sequence Length Sensitivity: The authors noted that their strategy of noising the entire sequence was necessary because the history is roughly 50x longer than the target item. This suggests the model might behave differently on datasets with very short or extremely long histories.
- Future Directions: The authors suggest exploring how this dual-conditioning framework could be applied to other generative tasks beyond next-item prediction, such as generating entire diverse recommendation lists or incorporating multi-modal data (like item images or text descriptions) as additional explicit conditions.
Summary updated