ESRL: Efficient Sampling-based Reinforcement Learning for Sequence Generation

Chenglong Wang, Hang Zhou, Yimin Hu, Yifu Huo, Bei Li +3 more
8/4/2023
cs.CL

No official code found. Best implementation: wangclnlp/DeepSpeed-Chat-Extension (21 stars, Apache-2.0, last commit 2024-07-02).

Abstract

Applying Reinforcement Learning (RL) to sequence generation models enables the direct optimization of long-term rewards (\textit{e.g.,} BLEU and human feedback), but typically requires large-scale sampling over a space of action sequences. This is a computational challenge as presented by the practice of sequence generation problems, such as machine translation, where we often deal with a large action space (\textit{e.g.,} a vocabulary) and a long action sequence (\textit{e.g.,} a translation). In this work, we introduce two-stage sampling and dynamic sampling approaches to improve the sampling efficiency during training sequence generation models via RL. We experiment with our approaches on the traditional sequence generation tasks, including machine translation and abstractive summarization. Furthermore, we evaluate our approaches in RL from human feedback (RLHF) through training a large language model using the reward model. Experimental results show that the efficient sampling-based RL, referred to as ESRL, can outperform all baselines in terms of both training efficiency and memory consumption. Notably, ESRL yields consistent performance gains over the strong REINFORCE, minimum risk training, and proximal policy optimization methods.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This repo contains some extensions of deepspeed-chat for fine-tuning LLMs (SFT+RLHF).

211Shell, PythonDec 15, 20232 years agoApache-2.0
deepspeedllamallmrlhfsft

Cite this paper

@article{wang2023esrl,
  title  = {ESRL: Efficient Sampling-based Reinforcement Learning for Sequence Generation},
  author = {Chenglong Wang and Hang Zhou and Yimin Hu and Yifu Huo and Bei Li and Tongran Liu and Tong Xiao and Jingbo Zhu},
  year   = {2023},
  eprint = {2308.02223},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.02223v1}
}

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/2308.02223.svg)](https://codeofpaper.com/paper/2308.02223)

Discussion