TL;DR
CDDRec (Conditional Denoising Diffusion for Recommendation) moves beyond traditional one-step generative models like VAEs by adopting a multi-step diffusion process for sequential recommendation. By breaking the generation of item representations into smaller, tractable denoising steps conditioned on user history, the model achieves significant performance gains—improving Recall@1 by up to 21% over state-of-the-art baselines.
What Problem Does This Paper Address?
Sequential recommendation aims to predict a user’s next interaction based on their history. While attention-based models (like SASRec) are popular, they struggle with "noisy" data—like accidental clicks—which can bias results.
Generative models like Variational AutoEncoders (VAEs) and GANs were introduced to handle this uncertainty, but they have their own "recommender-specific" headaches:
- Posterior Collapse: VAEs often ignore the latent variables they are supposed to learn, leading to generic recommendations.
- Over-smoothing: Generative models often assign very similar ranking scores to many items, making it difficult to place the "true" next item at the very top of the list.
- Optimization Instability: GANs are notoriously difficult to train, especially on sparse, discrete sequence data.
Methods
The authors propose CDDRec, which adapts Denoising Diffusion Models (DDMs)—usually used for images—to the discrete world of item sequences. The architecture consists of three main components:
- Sequence Encoder: A self-attentive layer (similar to a Transformer) that encodes the user's historical interactions into a "conditioning" representation.
- Step-wise Diffuser: During training, this component gradually adds Gaussian noise to the target item's embedding over $T$ steps, creating a "corrupted" target.
- Cross-attentive Conditional Denoising Decoder: This is the heart of the model. Instead of trying to predict the next item in one giant leap, it learns to reverse the noise step-by-step. It uses the current denoising step as a "query" to attend to the user's history, ensuring the generation is always grounded in actual user behavior.
To make this work for ranking, the authors introduced a Cross-Divergence Loss. Unlike standard diffusion (which just tries to reconstruct the original input), this loss forces the model to maximize the distance between the predicted item and "negative" (irrelevant) items, directly baking ranking capability into the diffusion process.
Datasets
The model was evaluated on four popular Amazon product datasets:
- Office Products
- Beauty
- Tools and Home Improvement
- Toys and Games
These datasets are standard benchmarks in the field, characterized by varying sequence lengths and high sparsity.
Key Insights and Ideas
- Diffusion as Iterative Refinement: By treating recommendation as a multi-step denoising process, the model can learn "fine-grained intermediate transitions." This prevents the "over-smoothing" seen in VAEs, where the model gives up on precision and just predicts a blurry average of likely items.
- Handling the "Discrete" Hurdle: Diffusion models are native to continuous spaces (like pixels). CDDRec successfully applies them to discrete item IDs by performing the diffusion/denoising on the embedding space rather than the IDs themselves.
- Robustness to Noise: The authors found that explicitly adding noise (diffusion) and then learning to remove it makes the model much more robust to "random click" noise in user histories. This was particularly effective for short sequences, where a single random click usually derails standard models.
- Direct Conditioning: Unlike some diffusion models that only look at the previous noisy step, CDDRec conditions every step on the original user history. This prevents "bias accumulation," where small errors in early denoising steps snowball into a completely wrong recommendation.
Key Results
CDDRec consistently outperformed state-of-the-art models (including SASRec, BERT4Rec, and ContrastVAE) across all metrics:
- Recall@1 Improvements: The most striking result was in Recall@1, with gains of 20.98% (Office), 16.67% (Beauty), and 18.42% (Toys) over the best-performing baselines. This suggests the model is much better at putting the exact correct item in the #1 spot.
- NDCG and MRR: Significant improvements were also noted in ranking-aware metrics like NDCG@5 and Mean Reciprocal Rank (MRR), proving the model isn't just "getting lucky" but is actually ranking items more accurately.
- Ablation Success: Removing the contrastive loss or the cross-divergence loss led to massive performance drops, confirming that simply "applying diffusion" isn't enough—the custom ranking-aware losses are critical.
Limitations and Future Work
While the paper demonstrates clear superiority in accuracy, diffusion models are inherently more computationally expensive than one-step models because they require multiple iterations ($T$ steps) during inference.
Future directions suggested by the work include: * Optimizing the number of denoising steps to balance speed and accuracy. * Exploring more complex noise schedules beyond simple Gaussian noise. * Applying this conditional diffusion framework to other recommendation contexts, such as cross-domain or social-aware recommendation.
Summary updated