Step-Controlled DPO: Leveraging Stepwise Error for Enhanced Mathematical Reasoning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lu, Zimu, Zhou, Aojun, Wang, Ke, Ren, Houxing, Shi, Weikang, Pan, Junting, Zhan, Mingjie, Li, Hongsheng
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913429785149440
author Lu, Zimu
Zhou, Aojun
Wang, Ke
Ren, Houxing
Shi, Weikang
Pan, Junting
Zhan, Mingjie
Li, Hongsheng
author_facet Lu, Zimu
Zhou, Aojun
Wang, Ke
Ren, Houxing
Shi, Weikang
Pan, Junting
Zhan, Mingjie
Li, Hongsheng
contents Direct Preference Optimization (DPO) has proven effective at improving the performance of large language models (LLMs) on downstream tasks such as reasoning and alignment. In this work, we propose Step-Controlled DPO (SCDPO), a method for automatically providing stepwise error supervision by creating negative samples of mathematical reasoning rationales that start making errors at a specified step. By applying these samples in DPO training, SCDPO can better align the model to understand reasoning errors and output accurate reasoning steps. We apply SCDPO to both code-integrated and chain-of-thought solutions, empirically showing that it consistently improves the performance compared to naive DPO on three different SFT models, including one existing SFT model and two models we finetuned. Qualitative analysis of the credit assignment of SCDPO and DPO demonstrates the effectiveness of SCDPO at identifying errors in mathematical solutions. We then apply SCDPO to an InternLM2-20B model, resulting in a 20B model that achieves high scores of 88.5% on GSM8K and 58.1% on MATH, rivaling all other open-source LLMs, showing the great potential of our method.
format Preprint
id arxiv_https___arxiv_org_abs_2407_00782
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Step-Controlled DPO: Leveraging Stepwise Error for Enhanced Mathematical Reasoning
Lu, Zimu
Zhou, Aojun
Wang, Ke
Ren, Houxing
Shi, Weikang
Pan, Junting
Zhan, Mingjie
Li, Hongsheng
Computation and Language
Direct Preference Optimization (DPO) has proven effective at improving the performance of large language models (LLMs) on downstream tasks such as reasoning and alignment. In this work, we propose Step-Controlled DPO (SCDPO), a method for automatically providing stepwise error supervision by creating negative samples of mathematical reasoning rationales that start making errors at a specified step. By applying these samples in DPO training, SCDPO can better align the model to understand reasoning errors and output accurate reasoning steps. We apply SCDPO to both code-integrated and chain-of-thought solutions, empirically showing that it consistently improves the performance compared to naive DPO on three different SFT models, including one existing SFT model and two models we finetuned. Qualitative analysis of the credit assignment of SCDPO and DPO demonstrates the effectiveness of SCDPO at identifying errors in mathematical solutions. We then apply SCDPO to an InternLM2-20B model, resulting in a 20B model that achieves high scores of 88.5% on GSM8K and 58.1% on MATH, rivaling all other open-source LLMs, showing the great potential of our method.
title Step-Controlled DPO: Leveraging Stepwise Error for Enhanced Mathematical Reasoning
topic Computation and Language
url https://arxiv.org/abs/2407.00782