arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.16586cs.AIcs.IR
收藏

用直接偏好优化大语言模型:数据效率视角

Optimizing LLMs with Direct Preferences: A Data Efficiency Perspective

The University of Queensland(昆士兰大学)

Pietro Bernardelle, Gianluca Demartini

AI总结:

本文从数据效率角度研究直接偏好优化(DPO)微调大语言模型,系统分析偏好数据规模与类型对性能的影响,发现增加数据量、组合多样数据集及使用对话提示均能提升模型效果。

摘要:

使大语言模型(LLMs)的输出与人类偏好对齐(例如通过基于人类反馈的强化学习,即RLHF)对于确保其在现实场景中的有效性至关重要。尽管LLM对齐技术取得了显著进展,但不同类型偏好数据对模型性能的影响尚未得到系统探索。在本研究中,我们考察了直接偏好优化(DPO)在微调预训练LLMs时的可扩展性、数据效率和有效性,旨在减少其对大量偏好数据的依赖,因为偏好数据的收集成本高昂。我们(1)系统比较了使用不同比例的合并偏好判断数据集微调后的模型性能,以刻画DPO的改进曲线,并评估其在数据受限环境中的有效性;以及(2)为开发选择性偏好数据使用的最优方法提供见解。我们的研究表明,增加用于训练的数据量通常会提升并稳定模型性能。此外,使用多种数据集的组合显著提高了模型有效性。进一步地,当模型分别使用不同类型的提示进行训练时,使用对话提示训练的模型优于使用问答提示训练的模型。

英文摘要:

Aligning the output of Large Language Models (LLMs) with human preferences (e.g., by means of reinforcement learning with human feedback, or RLHF) is essential for ensuring their effectiveness in real-world scenarios. Despite significant advancements in LLM alignment techniques, the impact of different type of preference data on model performance has yet to be systematically explored. In this study, we investigate the scalability, data efficiency, and effectiveness of Direct Preference Optimization (DPO) in fine-tuning pre-trained LLMs, aiming to reduce their dependency on extensive amounts of preference data, which is expensive to collect. We (1) systematically compare the performance of models fine-tuned with varying percentages of a combined preference judgement dataset to define the improvement curve of DPO and assess its effectiveness in data-constrained environments; and (2) provide insights for the development of an optimal approach for selective preference data usage. Our study reveals that increasing the amount of data used for training generally enhances and stabilizes model performance. Moreover, the use of a combination of diverse datasets significantly improves model effectiveness. Furthermore, when models are trained separately using different types of prompts, models trained with conversational prompts outperformed those trained with question answering prompts.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑