arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.02392cs.LGstat.ML
收藏

构建具有多轮迭代偏好学习的数学智能体

Building Math Agents with Multi-Turn Iterative Preference Learning

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);University of Virginia(弗吉尼亚大学);Google DeepMind(谷歌DeepMind);Google Research(谷歌研究院);Princeton University(普林斯顿大学)

Wei Xiong, Chengshuai Shi, Jiaming Shen, Aviv Rosenberg, Zhen Qin, Daniele Calandriello, Misha Khalman, Rishabh Joshi, Bilal Piot, Mohammad Saleh, Chi Jin, Tong Zhang, Tianqi Liu

AI总结:

本文提出一种多轮直接偏好学习框架,利用代码解释器反馈优化轨迹级偏好,显著提升数学智能体性能,如Gemma-1.1-it-7B在GSM8K上从77.5%提升至83.9%。

摘要:

近期研究表明,通过集成外部工具(如代码解释器)并采用多轮思维链(CoT)推理,可以增强大型语言模型(LLMs)的数学问题解决能力。虽然当前方法侧重于合成数据生成和监督微调(SFT),但本文研究了互补的直接偏好学习方法,以进一步提升模型性能。然而,现有的直接偏好学习算法最初是为单轮聊天任务设计的,并未完全解决工具集成数学推理任务中多轮推理和外部工具集成的复杂性。为填补这一空白,我们引入了一个针对该情境量身定制的多轮直接偏好学习框架,该框架利用代码解释器的反馈并优化轨迹级偏好。该框架包括多轮DPO和多轮KTO作为具体实现。我们通过在GSM8K和MATH数据集上使用增强提示集训练各种语言模型,验证了框架的有效性。我们的结果显示了显著改进:监督微调的Gemma-1.1-it-7B模型在GSM8K上的性能从77.5%提升至83.9%,在MATH上从46.1%提升至51.2%。类似地,Gemma-2-it-9B模型在GSM8K上从84.1%提升至86.3%,在MATH上从51.0%提升至54.5%。

英文摘要:

Recent studies have shown that large language models' (LLMs) mathematical problem-solving capabilities can be enhanced by integrating external tools, such as code interpreters, and employing multi-turn Chain-of-Thought (CoT) reasoning. While current methods focus on synthetic data generation and Supervised Fine-Tuning (SFT), this paper studies the complementary direct preference learning approach to further improve model performance. However, existing direct preference learning algorithms are originally designed for the single-turn chat task, and do not fully address the complexities of multi-turn reasoning and external tool integration required for tool-integrated mathematical reasoning tasks. To fill in this gap, we introduce a multi-turn direct preference learning framework, tailored for this context, that leverages feedback from code interpreters and optimizes trajectory-level preferences. This framework includes multi-turn DPO and multi-turn KTO as specific implementations. The effectiveness of our framework is validated through training of various language models using an augmented prompt set from the GSM8K and MATH datasets. Our results demonstrate substantial improvements: a supervised fine-tuned Gemma-1.1-it-7B model's performance increased from 77.5% to 83.9% on GSM8K and from 46.1% to 51.2% on MATH. Similarly, a Gemma-2-it-9B model improved from 84.1% to 86.3% on GSM8K and from 51.0% to 54.5% on MATH.

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

↑