Skip to main content
QUICK REVIEW

[Paper Review] On Softmax Direct Preference Optimization for Recommendation

Yuxin Chen, Junfei Tan|arXiv (Cornell University)|Jun 13, 2024
Recommender Systems and TechniquesComputer Science3 citations
TL;DR

This paper proposes Softmax-DPO (S-DPO), a novel training objective that adapts Direct Preference Optimization (DPO) for language model-based recommenders by incorporating multiple negative items into preference data. By connecting the loss to softmax sampling strategies and theoretically linking it to contrastive learning, S-DPO effectively optimizes for personalized ranking, outperforming existing methods while mitigating DPO's data likelihood decline issue on three real-world datasets.

ABSTRACT

Recommender systems aim to predict personalized rankings based on user preference data. With the rise of Language Models (LMs), LM-based recommenders have been widely explored due to their extensive world knowledge and powerful reasoning abilities. Most of the LM-based recommenders convert historical interactions into language prompts, pairing with a positive item as the target response and fine-tuning LM with a language modeling loss. However, the current objective fails to fully leverage preference data and is not optimized for personalized ranking tasks, which hinders the performance of LM-based recommenders. Inspired by the current advancement of Direct Preference Optimization (DPO) in human preference alignment and the success of softmax loss in recommendations, we propose Softmax-DPO (S-DPO) to instill ranking information into the LM to help LM-based recommenders distinguish preferred items from negatives, rather than solely focusing on positives. Specifically, we incorporate multiple negatives in user preference data and devise an alternative version of DPO loss tailored for LM-based recommenders, which is extended from the traditional full-ranking Plackett-Luce (PL) model to partial rankings and connected to softmax sampling strategies. Theoretically, we bridge S-DPO with the softmax loss over negative sampling and find that it has an inherent benefit of mining hard negatives, which assures its exceptional capabilities in recommendation tasks. Empirically, extensive experiments conducted on three real-world datasets demonstrate the superiority of S-DPO to effectively model user preference and further boost recommendation performance while providing better rewards for preferred items. Our codes are available at https://github.com/chenyuxin1999/S-DPO.

Motivation & Objective

  • To address the limitation of existing LM-based recommenders that use language modeling loss, which is not optimized for personalized ranking tasks.
  • To improve preference alignment in LMs by explicitly modeling user preferences using multiple negative items, rather than focusing only on positive items.
  • To bridge the gap between DPO and traditional recommendation losses by connecting S-DPO to the softmax loss over negative sampling.
  • To mitigate the data likelihood decline issue commonly observed in DPO fine-tuning while enhancing ranking performance.
  • To demonstrate that S-DPO inherently mines hard negatives, leading to more effective gradients and faster convergence.

Proposed method

  • S-DPO extends conventional DPO by incorporating multiple negative items per user preference sequence, forming preference triplets of (prompt, positive item, multiple negative items).
  • It reformulates the DPO loss using the Plackett-Luce preference model to handle relative rankings across multiple items, rather than just pairwise comparisons.
  • The method connects the S-DPO loss to the softmax loss over negative sampling, establishing a theoretical link to contrastive learning in recommendation.
  • It introduces a two-stage training pipeline: first, supervised fine-tuning to inject domain knowledge and improve instruction following; second, preference alignment via S-DPO.
  • The loss function is derived from the Bradley-Terry model but generalized to handle multiple negatives using the Plackett-Luce model, enabling more robust ranking optimization.
  • S-DPO is empirically shown to generate larger and more effective gradients due to implicit hard negative mining, improving training stability and performance.
Figure 1 : Framework of S-DPO. Different from existing methods which fine-tune LMs with a language modeling loss without tailoring for recommendations, S-DPO proposes to explicitly instill ranking information into LMs. To take one step further, S-DPO incorporates multiple negatives in user preferenc
Figure 1 : Framework of S-DPO. Different from existing methods which fine-tune LMs with a language modeling loss without tailoring for recommendations, S-DPO proposes to explicitly instill ranking information into LMs. To take one step further, S-DPO incorporates multiple negatives in user preferenc

Experimental results

Research questions

  • RQ1Can incorporating multiple negative items into preference data improve the ranking performance of LM-based recommenders?
  • RQ2How does S-DPO compare to standard DPO and language modeling loss in terms of recommendation accuracy and training stability?
  • RQ3What is the theoretical relationship between S-DPO and established recommendation losses like the softmax loss over negative sampling?
  • RQ4Does S-DPO inherently perform hard negative mining, and if so, how does this affect model optimization and convergence?
  • RQ5Can S-DPO mitigate the data likelihood decline issue commonly observed in DPO fine-tuning for recommendation tasks?

Key findings

  • S-DPO achieves state-of-the-art performance on three real-world sequential recommendation benchmarks, outperforming both traditional and LM-based baselines.
  • The method effectively mitigates the data likelihood decline issue of DPO, maintaining high likelihood on preference data while improving ranking metrics.
  • S-DPO is theoretically connected to the softmax loss over negative sampling, explaining its strong performance in ranking tasks.
  • The loss function naturally induces hard negative mining, resulting in larger and more informative gradients that accelerate training and improve model generalization.
  • Empirical ablation shows that increasing the number of negative samples improves performance, though with diminishing returns beyond 15 negatives due to computational cost.
  • The two-stage training pipeline—supervised fine-tuning followed by S-DPO preference alignment—leads to superior instruction-following and recommendation accuracy.
(a) Ablation study.
(a) Ablation study.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.