[论文解读] On Softmax Direct Preference Optimization for Recommendation
本文提出 Softmax-DPO(S-DPO),一种新颖的训练目标,通过在偏好数据中引入多个负样本,将直接偏好优化(DPO)适配于基于语言模型的推荐系统。通过将损失与 Softmax 采样策略关联,并在理论上将其与对比学习联系起来,S-DPO 有效优化个性化排序,在三个真实世界数据集上表现优于现有方法,同时缓解了 DPO 在微调过程中数据似然性下降的问题。
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.
研究动机与目标
- 解决现有基于语言模型的推荐系统使用语言建模损失的问题,该损失并非为个性化排序任务而优化。
- 通过显式建模用户偏好(使用多个负样本,而非仅关注正样本),提升语言模型中的偏好对齐。
- 通过将 S-DPO 与负样本上的 Softmax 损失关联,弥合 DPO 与传统推荐损失之间的差距。
- 缓解 DPO 微调中常见的数据似然性下降问题,同时提升排序性能。
- 证明 S-DPO 天然地进行困难负样本挖掘,从而产生更有效的梯度并实现更快的收敛。
提出的方法
- S-DPO 通过在每个用户偏好序列中引入多个负样本,扩展了传统 DPO,形成由(提示,正样本,多个负样本)组成的偏好三元组。
- 采用 Plackett-Luce 偏好模型重新表述 DPO 损失,以处理多个项目之间的相对排序,而非仅成对比较。
- 将 S-DPO 损失与负样本采样上的 Softmax 损失关联,建立其与推荐中对比学习的理论联系。
- 引入两阶段训练流程:首先进行监督微调,以注入领域知识并提升指令遵循能力;其次通过 S-DPO 进行偏好对齐。
- 损失函数源自 Bradley-Terry 模型,但通过 Plackett-Luce 模型推广以处理多个负样本,实现更稳健的排序优化。
- 实证表明,S-DPO 由于隐式困难负样本挖掘,生成更大且更具信息量的梯度,从而提升训练稳定性和性能。

实验结果
研究问题
- RQ1在偏好数据中引入多个负样本是否能提升基于语言模型的推荐系统的排序性能?
- RQ2S-DPO 在推荐准确率和训练稳定性方面与标准 DPO 和语言建模损失相比如何?
- RQ3S-DPO 与已建立的推荐损失(如负样本上的 Softmax 损失)之间存在何种理论关系?
- RQ4S-DPO 是否天然执行困难负样本挖掘?若是,这对模型优化与收敛有何影响?
- RQ5S-DPO 是否能缓解 DPO 微调中常见的数据似然性下降问题?
主要发现
- S-DPO 在三个真实世界序列推荐基准上达到最先进性能,优于传统方法与基于语言模型的基线方法。
- 该方法有效缓解了 DPO 的数据似然性下降问题,在保持偏好数据高似然性的同时提升了排序指标。
- S-DPO 在理论上与负样本上的 Softmax 损失相关联,解释了其在排序任务中的优异表现。
- 损失函数天然诱导困难负样本挖掘,产生更大且更具信息量的梯度,从而加速训练并提升模型泛化能力。
- 消融实验证实,增加负样本数量可提升性能,但超过 15 个负样本后收益递减,因计算成本上升。
- 两阶段训练流程(监督微调后接 S-DPO 偏好对齐)显著提升了指令遵循能力与推荐准确率。

阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。