SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.10505 · 2023

ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning Large Language Models

arXiv · PDF · Open in the Atlas

Code that ran

11 of 13 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 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/2310.10505.json · badge: /api/ran/2310.10505.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
liziniu/ReMax canonical (classifier label)
classifier basis: census
11 ran · 2 no recorded run
FunctionStatusWhere it lives
calculate_flops Ran
ran, honoured the contract we drafted
liziniu/ReMax/utils/perf.py
pointer only (licence: NONE) · get_code("069f56cb00324e10")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liziniu/ReMax 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.

gather_log_probs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
liziniu/ReMax/step3_rlhf_finetuning/remax_trainer.py
pointer only (licence: NONE); 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: GitHub detected no licence in this paper's repository, liziniu/ReMax 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
liziniu/ReMax/step1_supervised_finetuning/prompt_eval.py
pointer only (licence: NONE) · get_code("56842aca28dc25b7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liziniu/ReMax 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_constrastive_search Ran
ran; our contract draft was wrong, not the code
liziniu/ReMax/step1_supervised_finetuning/prompt_eval.py
pointer only (licence: NONE); 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: GitHub detected no licence in this paper's repository, liziniu/ReMax 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
liziniu/ReMax/utils/ds_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from esyoon7/rlhf-tlcr, is pointer only (licence: NONE) · get_code("e221a76f7d7a3d73")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liziniu/ReMax 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_hf_configs Ran
ran, honoured the contract we drafted
liziniu/ReMax/utils/perf.py
pointer only (licence: NONE) · get_code("df20c2f4083d17af")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liziniu/ReMax 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.

log_init Ran
ran, honoured the contract we drafted
liziniu/ReMax/step3_rlhf_finetuning/rlhf_engine.py
pointer only (licence: NONE) · get_code("429d42a3bf925da5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liziniu/ReMax 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.

only_optimize_lora_parameters Ran
ran; our contract draft was wrong, not the code
liziniu/ReMax/utils/module/lora.py
pointer only (licence: NONE); the stored copy get_code serves, from esyoon7/rlhf-tlcr, is pointer only (licence: NONE) · get_code("e617041853afd002")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liziniu/ReMax 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.

prepare_datapair Ran
ran; our contract draft was wrong, not the code
liziniu/ReMax/step2_reward_model_finetuning/rw_eval.py
pointer only (licence: NONE); the stored copy get_code serves, from JiancongXiao/PM_RLHF, is pointer only (licence: NONE) · get_code("ed8922a081978462")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liziniu/ReMax 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.

prepare_singlesample Ran
ran; our contract draft was wrong, not the code
liziniu/ReMax/step2_reward_model_finetuning/rw_eval.py
pointer only (licence: NONE); the stored copy get_code serves, from JiancongXiao/PM_RLHF, is pointer only (licence: NONE) · get_code("779ea48e220986c3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liziniu/ReMax 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.

to_device Ran
ran; our contract draft was wrong, not the code
liziniu/ReMax/utils/utils.py
pointer only (licence: NONE) · get_code("07ef4eb19492501f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liziniu/ReMax 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_tokenizer Not yet run
unverified (harvested, no recorded run)
liziniu/ReMax/utils/utils.py
pointer only (licence: NONE) · get_code("d0bac507b6ee8862")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liziniu/ReMax 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. No invocation recorded.

load_hf_tokenizer Not yet run
unverified (harvested, no recorded run)
liziniu/ReMax/utils/utils.py
pointer only (licence: NONE) · get_code("88cecd279a8c1dff")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liziniu/ReMax 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. No invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 10 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 2 the same month, 10 later) and 3 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
1 dated earlier, 8 later
2308.02223 (2023-08)
ESRL: Efficient Sampling-based Reinforcement Learning for Sequence Generation
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
1 dated earlier, 8 later
2308.02223 (2023-08)
ESRL: Efficient Sampling-based Reinforcement Learning for Sequence Generation
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
calculate_flops 6 other papers
6 later
2402.05808 (2024-02)
Training Large Language Models for Reasoning through Reverse Curriculum Reinforcement Learning
2403.14112 (2024-03)
Benchmarking Chinese Commonsense Reasoning of LLMs: From Chinese-Specifics to Reasoning-Memorization Correlations
2405.16455 (2024-05)
On the Algorithmic Bias of Aligning Large Language Models with RLHF: Preference Collapse and Matching Regularization
and 3 more not named here
get_hf_configs 6 other papers
6 later
2402.05808 (2024-02)
Training Large Language Models for Reasoning through Reverse Curriculum Reinforcement Learning
2403.14112 (2024-03)
Benchmarking Chinese Commonsense Reasoning of LLMs: From Chinese-Specifics to Reasoning-Memorization Correlations
2405.16455 (2024-05)
On the Algorithmic Bias of Aligning Large Language Models with RLHF: Preference Collapse and Matching Regularization
and 3 more not named here
only_optimize_lora_parameters 6 other papers
1 the same month, 5 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
2402.14700 (2024-02)
Unveiling Linguistic Regions in Large Language Models
and 3 more not named here
generate_constrastive_search 4 other papers
1 dated earlier, 1 the same month, 2 later
2308.02223 (2023-08)
ESRL: Efficient Sampling-based Reinforcement Learning for Sequence Generation
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
prepare_datapair 3 other papers
3 later
2024.naacl-long.326 (2024 (year only))
LSTDial: Enhancing Dialogue Generation via Long-and Short-Term Measurement Feedback
2404.17287 (2024-04)
When to Trust LLMs: Aligning Confidence with Response Quality
2405.16455 (2024-05)
On the Algorithmic Bias of Aligning Large Language Models with RLHF: Preference Collapse and Matching Regularization
prepare_singlesample 3 other papers
3 later
2024.naacl-long.326 (2024 (year only))
LSTDial: Enhancing Dialogue Generation via Long-and Short-Term Measurement Feedback
2404.17287 (2024-04)
When to Trust LLMs: Aligning Confidence with Response Quality
2405.16455 (2024-05)
On the Algorithmic Bias of Aligning Large Language Models with RLHF: Preference Collapse and Matching Regularization
get_eval_ds_config 1 other paper
1 later
2407.16574 (2024-07)
TLCR: Token-Level Continuous Reward for Fine-grained Reinforcement Learning from Human Feedback
load_hf_tokenizer 1 other paper
1 later
2404.12253 (2024-04)
Toward Self-Improvement of LLMs via Imagination, Searching, and Criticizing

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

Reinforcement Learning from Human Feedback (RLHF) is key to aligning Large Language Models (LLMs), typically paired with the Proximal Policy Optimization (PPO) algorithm. While PPO is a powerful method designed for general reinforcement learning tasks, it is overly sophisticated for LLMs, leading to laborious hyper-parameter tuning and significant computation burdens. To make RLHF efficient, we present ReMax, which leverages 3 properties of RLHF: fast simulation, deterministic transitions, and trajectory-level rewards. These properties are not exploited in PPO, making it less suitable for RLHF. Building on the renowned REINFORCE algorithm, ReMax does not require training an additional value model as in PPO and is further enhanced with a new variance reduction technique. ReMax offers several benefits over PPO: it is simpler to implement, eliminates more than 4 hyper-parameters in PPO, reduces GPU memory usage, and shortens training time. ReMax can save about 46% GPU memory than PPO when training a 7B model and enables training on A800-80GB GPUs without the memory-saving offloading technique needed by PPO. Applying ReMax to a Mistral-7B model resulted in a 94.78% win rate on the AlpacaEval leaderboard and a 7.739 score on MT-bench, setting a new SOTA for open-source 7B models. These results show the effectiveness of ReMax while addressing the limitations of PPO in LLMs.

For agents

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

get_harvested_code_for_paper("2310.10505")
get_code_for_paper("2310.10505")
have("2310.10505")

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

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

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

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

Connect an agent — have() is free.