Papers › ESRL: Efficient Sampling-based Reinforcement Learning for Sequence Generation

ESRL: Efficient Sampling-based Reinforcement Learning for Sequence Generation

4 Aug 2023arXiv:2308.02223archive 2025-07-28

Chenglong Wang, Hang Zhou, Yimin Hu, Yifu Huo, Bei Li, Tongran Liu, Tong Xiao, Jingbo Zhu

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.02223")

Code

Syntology Ran 11 of 14 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 10 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

wangclnlp/DeepSpeed-Chat-Extension officialpytorchApache-2.0 report
wangclnlp/deepspeed-chat-extension mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 11 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
10ran
3unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from wangclnlp/DeepSpeed-Chat-Extension. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

gather_log_probs wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step3_rlhf_finetuning/ppo_trainer.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 2f0a690c70d11c23 · report
generate wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step1_supervised_finetuning/prompt_eval.py official repository ran Apache-2.0 (permissive) · 451c619b9609c3c0 · report
generate wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step1_supervised_finetuning/predict.py official repository ran Apache-2.0 (permissive) · 3ba2013469906a98 · report
generate_constrastive_search wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step1_supervised_finetuning/prompt_eval.py official repository ran Apache-2.0 (permissive) · 385922750eb70702 · report
get_eval_ds_config wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/utils/ds_utils.py official repository ran Apache-2.0 (permissive) · 8ce22956ed0b989e · report
get_model_response wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/inference/chatbot.py official repository ran Apache-2.0 (permissive) · 2e5ee103f1579536 · report
get_train_ds_config wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/utils/ds_utils.py official repository ran Apache-2.0 (permissive) · 0d4552e23174dc98 · report
now wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/utils/datetime_utils.py official repository ran fingerprinted Apache-2.0 (permissive) · cdbaad9b00ba1398 · report
prepare_datapair wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step2_reward_model_finetuning/rw_eval.py official repository ran Apache-2.0 (permissive) · 034cd7bbde2c40ff · report
prepare_singlesample wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step2_reward_model_finetuning/rw_eval.py official repository ran Apache-2.0 (permissive) · 11e574c0b1fbdefc · report
whiten wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step3_rlhf_finetuning/ppo_trainer.py official repository ran Apache-2.0 (permissive) · fa3a56183c58c15d · report
get_generator wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/inference/chatbot.py official repository unverified Apache-2.0 (permissive) · 01cbaddf368c1af0 · report
get_user_input wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/inference/chatbot.py official repository unverified Apache-2.0 (permissive) · 5a2aa8ea6f00f07c · report
log_init wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step3_rlhf_finetuning/rlhf_engine.py official repository unverified Apache-2.0 (permissive) · 429d42a3bf925da5 · report

Tasks

Abstractive Text SummarizationLanguage ModelingLanguage ModellingLarge Language ModelMachine TranslationReinforcement LearningReinforcement Learning (RL)Translationreinforcement-learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

REINFORCE

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections