Controlling Diversity at Inference: Guiding Diffusion Recommender Models with Targeted Category Preferences

Gwangseok Han, Wonbin Kweon, Minsoo Kim, Hwanjo Yu · DOI

Abstract

Diversity control is an important task to alleviate bias amplification and filter bubble problems. The desired degree of diversity may fluctuate based on users' daily moods or business strategies. However, existing methods for controlling diversity often lack flexibility, as diversity is decided during training and cannot be easily modified during inference. We propose D3Rec (Disentangled Diffusion model for Diversified Recommendation), an end-to-end method that controls the accuracy-diversity trade-off at inference. D3Rec meets our three desiderata by (1) generating recommendations based on category preferences, (2) controlling category preferences during the inference phase, and (3) adapting to arbitrary targeted category preferences. In the forward process, D3Rec removes category preferences lurking in user interactions by adding noises. Then, in the reverse process, D3Rec generates recommendations through denoising steps while reflecting desired category preferences. Extensive experiments on real-world and synthetic datasets validate the effectiveness of D3Rec in controlling diversity at inference.

Introduction: The Challenge of Static Diversity

Recommender systems often fall into the "filter bubble" trap: by optimizing solely for accuracy based on historical data, they amplify existing biases and narrow a user's exposure to new content. While researchers have attempted to address this, existing solutions generally fall into two categories with significant drawbacks:

  1. Post-processing modules: These re-rank items after they are generated. While flexible, they are often suboptimal because the diversity signal wasn't present during the initial "thinking" (training) phase of the model.
  2. End-to-end models: These incorporate diversity during training. However, the balance between accuracy and diversity is "baked in" via hyperparameters. If a user suddenly wants more variety, or a business wants to promote a specific category, the model usually has to be retrained.
Comparison between existing methods and D3Rec for controlling category preferences.

The authors of D3Rec sought a "volume knob" for diversity—a model that understands categories deeply but allows the specific mix of those categories to be adjusted on the fly at inference time without retraining.

Methodology: The D3Rec Framework

D3Rec is built on the foundation of Diffusion Models, which have recently revolutionized image generation. The process works in two main stages:

  • The Forward Process (The "Reset"): The model takes a user's interaction history ($x_0$) and gradually adds Gaussian noise to produce $x_t$. This effectively "washes out" the specific category preferences lurking in their past clicks, creating a blanker slate that still retains the core "category-independent" essence of the user's taste.
  • The Reverse Process (The "Guided Reconstruction"): The model then denoises the data to predict future interactions. Crucially, this step is guided by a targeted category preference vector ($ ilde{y}$).

Key Architectural Innovations

To ensure the model can actually follow guidance, it employs a sophisticated disentanglement strategy:

  • Disentangled Two-Tower Encoders: The model uses two separate encoders. One ($\mathcal{E}_{ind}$) captures category-independent tastes (e.g., general quality or format preferences), while the other ($\mathcal{E}_{cate}$) captures category-aware features.
  • Orthogonal Disentanglement Loss ($L_{ortho}$): This ensures these two towers don't "leak" information into each other, allowing for clean control over the category signal.
  • Classifier-Free Diffusion Guidance: Borrowing a technique from text-to-image models, D3Rec uses a guiding strength parameter ($w$) to balance the general recommendation with the specific category constraints.
Detailed architecture of D3Rec showing the disentangled encoders and the guided reverse diffusion process.

Auxiliary Training Tasks

The framework includes two extra training objectives to sharpen its performance:

  1. $L_{cate}$: Ensures the category encoder can accurately reconstruct the preference vector.
  2. $L_{emb}$: Ensures category embeddings are tightly coupled with the actual items in those categories.

Evaluation and Datasets

The model was evaluated on three diverse, real-world datasets: ML-1M (MovieLens), Steam Game (User reviews), and Anime 2023 (Large-scale ratings). Additionally, the authors created semi-synthetic datasets to test "fast adaptation." They specifically hid the categories a user interacted with most and tasked the model with recommending items from the user's least visited categories—a "stress test" for arbitrary preference control.

Key Results and Insights

  • Pareto Frontier Superiority: D3Rec consistently achieved a better trade-off between accuracy (Recall, NDCG) and diversity (Coverage, Entropy) than state-of-the-art baselines like DCRS and DiffRec.
  • Massive Gains on Synthetic Tasks: On the "pivot" task (recommending from a user's bottom 30% categories), D3Rec outperformed the best baseline (COR) by 143% in Recall@10 on the ML-1M dataset.
  • Monotonic Control: Unlike some baselines where diversity fluctuates unpredictably, D3Rec shows a nearly linear relationship between the "temperature" parameter and the resulting diversity, making it highly predictable for production environments.
  • Robustness: When 30% noise was introduced into the training data, D3Rec's performance dropped by only ~1.2%, whereas standard models like MultVAE dropped by over 5%.

Conclusion and Future Work

D3Rec demonstrates that noise in the diffusion process can act as a mechanism to decouple a user's general intent from their historical category bias. While the model successfully handles "arbitrary" preferences—such as a user watching a different genre for a specific occasion—future work will need to address the higher inference latency inherent in diffusion models. The authors also suggest exploring more complex guidance signals, such as natural language descriptions or temporal trends, to further enhance the flexibility of modern recommendation systems.

Summary updated

BibTeX
@misc{han2024controlling,
  author = {Gwangseok Han and Wonbin Kweon and Minsoo Kim and Hwanjo Yu},
  title = {{Controlling Diversity at Inference: Guiding Diffusion Recommender Models with Targeted Category Preferences}},
  year = {2024},
  eprint = {2411.11240},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.11240},
}
Figure