Improving Large Language Models via Fine-grained Reinforcement Learning with Minimum Editing Constraint

Zhipeng Chen, Kun Zhou, Wayne Xin Zhao, Junchen Wan, Fuzheng Zhang +2 more
1/11/2024
cs.CL

Official code: RUCAIBox/RLMEC (39 stars, last commit 2024-01-12).

Abstract

Reinforcement learning (RL) has been widely used in training large language models (LLMs) for preventing unexpected outputs, eg reducing harmfulness and errors. However, existing RL methods mostly adopt the instance-level reward, which is unable to provide fine-grained supervision for complex reasoning tasks, and can not focus on the few key tokens that lead to the incorrectness. To address it, we propose a new RL method named RLMEC that incorporates a generative model as the reward model, which is trained by the erroneous solution rewriting task under the minimum editing constraint, and can produce token-level rewards for RL training. Based on the generative reward model, we design the token-level RL objective for training and an imitation-based regularization for stabilizing RL process. And the both objectives focus on the learning of the key tokens for the erroneous solution, reducing the effect of other unimportant tokens. The experiment results on mathematical tasks and question-answering tasks have demonstrated the effectiveness of our approach. Our code and data are available at https://github.com/RUCAIBox/RLMEC.

View on arXivView PDF

Code Implementations(1)

RUCAIBox/RLMECOfficial100%

The official repository of "Improving Large Language Models via Fine-grained Reinforcement Learning with Minimum Editing Constraint"

393Shell, PythonJan 11, 20242 years ago

Similar Papers

Cite this paper

@article{chen2024improving,
  title  = {Improving Large Language Models via Fine-grained Reinforcement Learning with Minimum Editing Constraint},
  author = {Zhipeng Chen and Kun Zhou and Wayne Xin Zhao and Junchen Wan and Fuzheng Zhang and Di Zhang and Ji-Rong Wen},
  year   = {2024},
  eprint = {2401.06081},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.06081v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.06081.svg)](https://codeofpaper.com/paper/2401.06081)

Discussion