arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.16345cs.CL
收藏

基于伪反馈的推理偏好优化

Preference Optimization for Reasoning with Pseudo Feedback

Nanyang Technological University(南洋理工大学);Microsoft Research(微软研究院);Georgia Institute of Technology(佐治亚理工学院);Salesforce Research(Salesforce研究院)

Fangkai Jiao, Geyang Guo, Xingxing Zhang, Nancy F. Chen, Shafiq Joty, Furu Wei

AI总结:

针对人类验证推理数据集有限的问题,本研究提出基于测试用例生成伪反馈的偏好优化方法,探索两种伪反馈形式并在数学推理和编码任务上验证,显著提升模型性能并超过多个基准模型。

摘要:

偏好优化技术(如直接偏好优化,DPO)常被用于增强大型语言模型(LLMs)在数学推理和编码等领域的推理能力,通常在监督微调之后应用。这些方法依赖推理任务的高质量标签来生成偏好对;然而,带有人类验证标签的推理数据集可用性有限。在本研究中,我们引入一种新方法,通过将推理问题解决方案的标注构建为针对相关测试用例的评估,为推理任务生成伪反馈。我们基于测试用例探索了两种伪反馈形式:一种由前沿LLM生成,另一种通过将自一致性扩展到多测试用例生成。我们使用伪反馈在数学推理和编码任务上进行偏好优化实验,观察到两个任务均有改进。具体而言,使用Mathstral-7B作为基础模型,我们将MATH结果从58.3提升至68.6,超过NuminaMath-72B和GPT-4-Turbo-1106-preview;在GSM8K和College Math中,分数分别从85.6提升至90.3、从34.3提升至42.3;基于Deepseek-coder-7B-v1.5,我们在LiveCodeBench上的得分从21.1提升至24.6,超过Claude-3-Haiku。

英文摘要:

Preference optimization techniques, such as Direct Preference Optimization (DPO), are frequently employed to enhance the reasoning capabilities of large language models (LLMs) in domains like mathematical reasoning and coding, typically following supervised fine-tuning. These methods rely on high-quality labels for reasoning tasks to generate preference pairs; however, the availability of reasoning datasets with human-verified labels is limited. In this study, we introduce a novel approach to generate pseudo feedback for reasoning tasks by framing the labeling of solutions to reason problems as an evaluation against associated test cases. We explore two forms of pseudo feedback based on test cases: one generated by frontier LLMs and the other by extending self-consistency to multi-test-case. We conduct experiments on both mathematical reasoning and coding tasks using pseudo feedback for preference optimization, and observe improvements across both tasks. Specifically, using Mathstral-7B as our base model, we improve MATH results from 58.3 to 68.6, surpassing both NuminaMath-72B and GPT-4-Turbo-1106-preview. In GSM8K and College Math, our scores increase from 85.6 to 90.3 and from 34.3 to 42.3, respectively. Building on Deepseek-coder-7B-v1.5, we achieve a score of 24.6 on LiveCodeBench (from 21.1), surpassing Claude-3-Haiku.

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

↑