SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.02223 · 2023

ESRL: Efficient Sampling-based Reinforcement Learning for Sequence Generation

arXiv · PDF · Open in the Atlas

Code that ran

12 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 10 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2308.02223.json · badge: /api/ran/2308.02223.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
wangclnlp/DeepSpeed-Chat-Extension canonical (classifier label)
classifier basis: census
12 ran · 2 no recorded run
FunctionStatusWhere it lives
gather_log_probs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step3_rlhf_finetuning/ppo_trainer.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from zyushun/adam-mini, is pointer only (licence: NONE) · get_code("2f0a690c70d11c23")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from zyushun/adam-mini, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate Ran
ran; our contract draft was wrong, not the code
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step1_supervised_finetuning/prompt_eval.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from JiancongXiao/PM_RLHF, is pointer only (licence: NONE) · get_code("451c619b9609c3c0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from JiancongXiao/PM_RLHF, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

generate Ran
ran; our contract draft was wrong, not the code
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step1_supervised_finetuning/predict.py
code served (permissive licence) · get_code("3ba2013469906a98")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Define a minimal tokenizer stand-in
class MinimalTokenizer:
    def __init__(self):
        self.pad_token_id = 0
        self.eos_token_id = 2
    
    def batch_decode(self, sequences, skip_special_tokens=False, clean_up_tokenization_spaces=False):
        # Return dummy decoded strings
        return [f"decoded_sequence_{i}" for i in range(len(sequences))]

# Define a minimal model with module attribute
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def generate(self, input_ids, attention_mask=None, **kwargs):
        # Return a mock generation output with sequences
        batch_size = input_ids.shape[0]
        prompt_length = input_ids.shape[1]
        max_new_tokens = kwargs.get('max_new_tokens', 512)
        num_return_sequences = kwargs.get('num_return_sequences', 1)
        
        # Create sequences: batch_size x (prompt_length + some generated tokens)
        seq_length = prompt_length + 10
        sequences = torch.randint(1, 100, (batch_size * num_return_sequences, seq_length))
        
        # Ensure EOS token appears in generated portion for at least one position
        for i in range(batch_size * num_return_sequences):
            sequences[i, prompt_length + 3] = 2  # eos_token_id
        
        return {'sequences': sequences, 'scores': None}

class WrappedModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.module = MinimalModel()

# Define a minimal inputs stand-in
class MinimalInputs:
    def __init__(self, batch_size=2, seq_length=3):
        self.input_ids = torch.randint(1, 100, (batch_size, seq_length))
        self.attention_mask = torch.ones((batch_size, seq_length))

# Create instances
tokenizer = MinimalTokenizer()
model = WrappedModel()
inputs = MinimalInputs(batch_size=2, seq_length=3)

# Define ARGS dictionary with all parameters
ARGS = {
    'model': model,
    'tokenizer': tokenizer,
    'inputs': inputs,
    'num_beams': 1,
    'num_beam_groups': 1,
    'do_sample': False,
    'top_k': 50,
    'top_p': 0.95,
    'temperature': 0.75,
    'repetition_penalty': 1.0,
    'num_return_sequences': 1,
    'max_new_tokens': 512,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
generate_constrastive_search Ran
ran; our contract draft was wrong, not the code
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step1_supervised_finetuning/prompt_eval.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from JiancongXiao/PM_RLHF, is pointer only (licence: NONE) · get_code("385922750eb70702")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from JiancongXiao/PM_RLHF, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_eval_ds_config Ran
ran; our contract draft was wrong, not the code
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/utils/ds_utils.py
code served (permissive licence) · get_code("8ce22956ed0b989e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'offload': False,
    'dtype': 'fp16',
    'stage': 0,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_model_response Ran
ran; our contract draft was wrong, not the code
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/inference/chatbot.py
code served (permissive licence) · get_code("2e5ee103f1579536")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class MockGenerator(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 8)
    
    def forward(self, user_input, max_new_tokens=None):
        # Simulate a text generator that returns a response string
        return f"Generated response with {max_new_tokens} tokens based on: {user_input}"

generator = MockGenerator()
user_input = "What is machine learning?"
max_new_tokens = 50

ARGS = {
    "generator": generator,
    "user_input": user_input,
    "max_new_tokens": max_new_tokens
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_train_ds_config Ran
ran; our contract draft was wrong, not the code
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/utils/ds_utils.py
code served (permissive licence) · get_code("0d4552e23174dc98")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'offload': False,
    'stage': 2,
    'dtype': 'fp16',
    'enable_hybrid_engine': False,
    'inference_tp_size': 1,
    'release_inference_cache': False,
    'pin_parameters': True,
    'tp_gather_partition_size': 8,
    'max_out_tokens': 512,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
log_init Ran
ran, honoured the contract we drafted
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step3_rlhf_finetuning/rlhf_engine.py
code served (permissive licence) · get_code("429d42a3bf925da5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import time
import torch
import torch.nn as nn
import torch.distributed as dist

# Mock distributed.get_rank() to return 0 so the function executes
class MockDistributed:
    @staticmethod
    def get_rank():
        return 0

# Patch torch.distributed.get_rank
torch.distributed.get_rank = MockDistributed.get_rank

ARGS = {
    'model_name': 'ResNet50',
    'stime': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
now Ran
ran; our contract draft was wrong, not the code
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/utils/datetime_utils.py
code served (permissive licence) · get_code("cdbaad9b00ba1398")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

from datetime import datetime

def now(date_format='%Y%m%d_%H%M%S'):
    """

    :param date_format:
    :return:
    """
    result = datetime.now()
    result = result.strftime(date_format)
    return result


ARGS = {
    'date_format': '%Y%m%d_%H%M%S'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prepare_datapair Ran
ran on a synthesized input
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step2_reward_model_finetuning/rw_eval.py
code served (permissive licence) · get_code("034cd7bbde2c40ff")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from transformers import AutoTokenizer

torch.manual_seed(0)

# Create a minimal tokenizer stand-in that mimics HuggingFace tokenizer behavior
class MinimalTokenizer:
    def __call__(self, text, max_length=1024, padding='max_length', truncation=True, return_tensors='pt'):
        # Simulate tokenization: convert text to token ids
        tokens = [101] + [1000 + (ord(c) % 100) for c in text[:50]] + [102]
        
        # Truncate if needed
        if truncation and len(tokens) > max_length:
            tokens = tokens[:max_length]
        
        # Pad to max_length
        if padding == 'max_length':
            if len(tokens) < max_length:
                tokens = tokens + [0] * (max_length - len(tokens))
        
        # Create attention mask (1 for real tokens, 0 for padding)
        attention_mask = [1 if token != 0 else 0 for token in tokens]
        
        # Return as pytorch tensors
        input_ids = torch.tensor([tokens], dtype=torch.long)
        attention_mask_tensor = torch.tensor([attention_mask], dtype=torch.long)
        
        return {
            'input_ids': input_ids,
            'attention_mask': attention_mask_tensor
        }

ARGS = {
    'prompt': 'What is the capital of France?',
    'good_ans': ' Paris is the capital of France.',
    'bad_ans': ' London is the capital of France.',
    'tokenizer': MinimalTokenizer(),
    'max_seq_len': 128,
    'end_of_conversation_token': ' [END]'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prepare_singlesample Ran
ran; our contract draft was wrong, not the code
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step2_reward_model_finetuning/rw_eval.py
code served (permissive licence) · get_code("11e574c0b1fbdefc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class MockTokenizer:
    def __call__(self, text, max_length=1024, padding='max_length', truncation=True, return_tensors='pt'):
        # Return a dict with input_ids and attention_mask
        batch_size = 1
        seq_len = min(len(text.split()), max_length)
        return {
            'input_ids': torch.randint(0, 1000, (batch_size, max_length)),
            'attention_mask': torch.ones((batch_size, max_length), dtype=torch.long)
        }

tokenizer = MockTokenizer()

ARGS = {
    'prompt': "What is the capital of France?",
    'good_ans': " Paris is the capital of France.",
    'tokenizer': tokenizer,
    'max_seq_len': 1024,
    'end_of_conversation_token': " [END]"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
whiten Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/training/step3_rlhf_finetuning/ppo_trainer.py
code served (permissive licence) · get_code("fa3a56183c58c15d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a small tensor for values
values = torch.randn(2, 4)

# Create a value_queue stand-in class with mean() and std() methods
class ValueQueue:
    def __init__(self, data):
        self.data = data
    
    def mean(self):
        return self.data.mean()
    
    def std(self, unbiased=False):
        return self.data.std(unbiased=unbiased)

value_queue = ValueQueue(torch.randn(3, 4))

ARGS = {
    "values": values,
    "shift_mean": True,
    "epsilon": 1e-08,
    "value_queue": value_queue
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_generator Not yet run
unverified (harvested, no recorded run)
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/inference/chatbot.py
code served (permissive licence) · get_code("01cbaddf368c1af0")
How it ran

no invocation recorded.

get_user_input Not yet run
unverified (harvested, no recorded run)
wangclnlp/DeepSpeed-Chat-Extension/rlhf_llama/deepspeed_chat/inference/chatbot.py
code served (permissive licence) · get_code("5a2aa8ea6f00f07c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 4 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 4 later) and 10 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
gather_log_probs 9 other papers
9 later
2310.10505 (2023-10)
ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Models
2024.naacl-long.326 (2024 (year only))
LSTDial: Enhancing Dialogue Generation via Long-and Short-Term Measurement Feedback
2401.13275 (2024-01)
Can AI Assistants Know What They Don't Know?
and 6 more not named here
log_init 9 other papers
9 later
2310.10505 (2023-10)
ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Models
2024.naacl-long.326 (2024 (year only))
LSTDial: Enhancing Dialogue Generation via Long-and Short-Term Measurement Feedback
2401.13275 (2024-01)
Can AI Assistants Know What They Don't Know?
and 6 more not named here
generate_constrastive_search 4 other papers
4 later
2310.10505 (2023-10)
ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Models
2310.20246 (2023-10)
Breaking Language Barriers in Multilingual Mathematical Reasoning: Insights and Observations
2024.naacl-long.326 (2024 (year only))
LSTDial: Enhancing Dialogue Generation via Long-and Short-Term Measurement Feedback
and 1 more not named here
generate 3 other papers
3 later
2310.20246 (2023-10)
Breaking Language Barriers in Multilingual Mathematical Reasoning: Insights and Observations
2024.naacl-long.326 (2024 (year only))
LSTDial: Enhancing Dialogue Generation via Long-and Short-Term Measurement Feedback
2405.16455 (2024-05)
On the Algorithmic Bias of Aligning Large Language Models with RLHF: Preference Collapse and Matching Regularization

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2308.02223")
get_code_for_paper("2308.02223")
have("2308.02223")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2308.02223.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2308.02223.svg)](https://syntology.ai/paper/2308.02223)

Connect an agent — have() is free.