Preference Diffusion for Recommendation

Shuo Liu, An Zhang, Guoqing Hu, Hong Qian, Tat-Seng Chua

TL;DR

PreferDiff is a novel optimization objective designed specifically to align generative Diffusion Models (DMs) with the ranking requirements of recommender systems. By reformulating Bayesian Personalized Ranking into a log-likelihood framework and incorporating multiple negative samples, it significantly outperforms existing DM-based recommenders while offering faster convergence and strong zero-shot generalization.

What Problem Does This Paper Address?

Diffusion Models (DMs) have recently taken the recommendation world by storm due to their ability to model complex, non-Gaussian user preference distributions. However, most current DM-based recommenders suffer from a "square peg in a round hole" problem. They typically rely on standard generative objectives like Mean Squared Error (MSE) or blindly adapt traditional recommendation losses like Bayesian Personalized Ranking (BPR).

The authors identify two critical gaps:

  1. Lack of Negative Understanding: Generative DMs usually only learn from items a user has interacted with. Without seeing "negative" examples (items a user ignored or disliked), the model might place its predicted item embeddings too close to undesirable regions in the latent space.
  2. Suboptimal Objectives: Standard MSE doesn't align well with the way recommendation systems actually work—which is usually via similarity-based retrieval (like dot products or cosine similarity). Furthermore, standard BPR only cares about the margin between a "good" and "bad" item, failing to exploit the full generative power of the diffusion process.

Methods

The authors propose PreferDiff, which introduces several key innovations to make DMs "ranking-aware":

  • Probabilistic BPR: They reformulate the pairwise BPR loss into a log-likelihood generative framework ($L_{BPR-Diff}$). Since DMs are latent variable models, they derive a variational upper bound to make this objective tractable for gradient descent.
  • The "Negative Centroid" Trick: To capture richer preference information without the massive computational overhead of denoising every negative sample, they propose using the centroid of multiple negative items as a single diffusion target. This allows the model to distance itself from "disliked" categories efficiently.
  • Cosine Error over MSE: Recognizing that recommendation is a similarity task, they replace the standard MSE loss with cosine error. This ensures the generated embeddings are optimized for the same metric used during the final retrieval/ranking stage.
  • Balanced Learning: The final objective, $L_{PreferDiff}$, is a weighted combination of standard generative learning ($L_{Simple}$) and the new preference learning ($L_{BPR-Diff-C}$), controlled by a hyperparameter $\lambda$.

Datasets

The model was evaluated on six widely adopted public benchmarks:

  • Amazon Reviews 2014: Sports and Outdoors, Beauty, and Toys and Games.
  • Steam: A large-scale game review dataset.
  • MovieLens-1M (ML-1M): A classic movie rating dataset.
  • Yahoo!R1: A music rating dataset.

For zero-shot experiments, they used five other Amazon 2018 categories (Automotive, Cell Phones, etc.) for pretraining.

Key Insights and Ideas

  • The DPO Connection: One of the most interesting "aha moments" is the established theoretical link between PreferDiff and Direct Preference Optimization (DPO). The authors show that PreferDiff is essentially a special case of DPO, suggesting that DMs can be "aligned" with user preferences in much the same way Large Language Models are aligned with human feedback.
  • Hard Negative Handling: Gradient analysis reveals that PreferDiff automatically assigns higher weights to "hard negatives"—cases where the model incorrectly thinks a negative item is more likely than a positive one. This focus on difficult cases leads to much sharper ranking performance.
  • The Importance of "Dislike": By simply modeling what a user doesn't like, the model can push its predictions into higher-fidelity regions of the "positive" distribution, avoiding the "high-density negative" traps that plague standard generative models.
Density contour comparison showing how PreferDiff pushes predictions away from negative items.

Key Results

  • Superior Performance: PreferDiff consistently outperformed all baselines (including state-of-the-art DM models like DreamRec and DiffRec) across all six benchmarks. Improvements in Recall@5 ranged from 5.6% to 19.3%.
  • Faster Convergence: On the Amazon Beauty dataset, PreferDiff converged in roughly 35 epochs (8 minutes), compared to 65 epochs (15 minutes) for DreamRec.
Training convergence comparison between PreferDiff and DreamRec.
  • Zero-Shot Scaling: When using semantic text embeddings (PreferDiff-T), the model showed incredible scaling laws. Increasing the pretraining data scale by 5x led to a nearly 500% improvement in zero-shot performance on the Steam dataset, approaching the performance of fully supervised models.

Limitations and Future Work

The authors acknowledge two primary limitations:

  1. Dimension Sensitivity: DMs require significantly higher embedding dimensions (e.g., 3072) to capture user preferences effectively compared to traditional models (which often use 64 or 128). This increases the computational footprint.
  2. Hyperparameter Dependence: The performance is sensitive to the balance parameter $\lambda$. Finding the "sweet spot" between pure generation and preference ranking is crucial but requires tuning.

Future Work: The authors suggest exploring Variance Exploding (VE) diffusion models to potentially mitigate the embedding dimension issue and investigating more automated ways to balance the training objectives.

Summary updated

BibTeX
@inproceedings{liu2025preference,
  author = {Shuo Liu and An Zhang and Guoqing Hu and Hong Qian and Tat-Seng Chua},
  title = {{Preference Diffusion for Recommendation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=6GATHdOi1x},
}
Figure