Improving Multi-Step Reasoning Abilities of Large Language Models with Direct Advantage Policy Optimization

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Liu, Jiacai, Wang, Chaojie, Liu, Chris Yuhao, Zeng, Liang, Yan, Rui, Sun, Yiwen, Liu, Yang, Zhou, Yahui
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917878732685312
author Liu, Jiacai
Wang, Chaojie
Liu, Chris Yuhao
Zeng, Liang
Yan, Rui
Sun, Yiwen
Liu, Yang
Zhou, Yahui
author_facet Liu, Jiacai
Wang, Chaojie
Liu, Chris Yuhao
Zeng, Liang
Yan, Rui
Sun, Yiwen
Liu, Yang
Zhou, Yahui
contents The role of reinforcement learning (RL) in enhancing the reasoning of large language models (LLMs) is becoming increasingly significant. Despite the success of RL in many scenarios, there are still many challenges in improving the reasoning of LLMs. One challenge is the sparse reward, which makes optimization difficult for RL and necessitates a large amount of data samples. Another challenge stems from the inherent instability of RL, particularly when using Actor-Critic (AC) methods to derive optimal policies, which often leads to unstable training processes. To address these issues, we introduce Direct Advantage Policy Optimization (DAPO), an novel step-level offline RL algorithm. Unlike standard alignment that rely solely outcome rewards to optimize policies (such as DPO), DAPO employs a critic function to predict the reasoning accuracy at each step, thereby generating dense signals to refine the generation strategy. Additionally, the Actor and Critic components in DAPO are trained independently, avoiding the co-training instability observed in standard AC algorithms like PPO. We train DAPO on mathematical and code query datasets and then evaluate its performance on multiple benchmarks. Our results show that DAPO can effectively enhance the mathematical and code capabilities on both SFT models and RL models, demonstrating the effectiveness of DAPO.
format Preprint
id arxiv_https___arxiv_org_abs_2412_18279
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Improving Multi-Step Reasoning Abilities of Large Language Models with Direct Advantage Policy Optimization
Liu, Jiacai
Wang, Chaojie
Liu, Chris Yuhao
Zeng, Liang
Yan, Rui
Sun, Yiwen
Liu, Yang
Zhou, Yahui
Artificial Intelligence
The role of reinforcement learning (RL) in enhancing the reasoning of large language models (LLMs) is becoming increasingly significant. Despite the success of RL in many scenarios, there are still many challenges in improving the reasoning of LLMs. One challenge is the sparse reward, which makes optimization difficult for RL and necessitates a large amount of data samples. Another challenge stems from the inherent instability of RL, particularly when using Actor-Critic (AC) methods to derive optimal policies, which often leads to unstable training processes. To address these issues, we introduce Direct Advantage Policy Optimization (DAPO), an novel step-level offline RL algorithm. Unlike standard alignment that rely solely outcome rewards to optimize policies (such as DPO), DAPO employs a critic function to predict the reasoning accuracy at each step, thereby generating dense signals to refine the generation strategy. Additionally, the Actor and Critic components in DAPO are trained independently, avoiding the co-training instability observed in standard AC algorithms like PPO. We train DAPO on mathematical and code query datasets and then evaluate its performance on multiple benchmarks. Our results show that DAPO can effectively enhance the mathematical and code capabilities on both SFT models and RL models, demonstrating the effectiveness of DAPO.
title Improving Multi-Step Reasoning Abilities of Large Language Models with Direct Advantage Policy Optimization
topic Artificial Intelligence
url https://arxiv.org/abs/2412.18279