Papers › ReMax: A Simple, Effective, and Efficient Reinforcement Learning Method for Aligning...

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

16 Oct 2023arXiv:2310.10505archive 2025-07-28

Ziniu Li, Tian Xu, Yushun Zhang, Zhihang Lin, Yang Yu, Ruoyu Sun, Zhi-Quan Luo

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.

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="2310.10505")

Code

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

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

liziniu/ReMax officialmentioned in papermentioned on GitHubpytorch report
niutrans/gram mentioned on GitHubpytorchApache-2.0 report
openpsi-project/realhf mentioned on GitHubpytorch 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

13 samples harvested; 8 ran; 0 honoured the contract we drafted; 5 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
7ran
5unverified

Licence: 13 of the 13 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 liziniu/ReMax. “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 liziniu/ReMax/step3_rlhf_finetuning/remax_trainer.py official repository ran · fixture could not drive it no licence file found · pointer only · 2f0a690c70d11c23 · report
generate liziniu/ReMax/step1_supervised_finetuning/prompt_eval.py official repository ran no licence file found · pointer only · 56842aca28dc25b7 · report
generate_constrastive_search liziniu/ReMax/step1_supervised_finetuning/prompt_eval.py official repository ran no licence file found · pointer only · 385922750eb70702 · report
get_eval_ds_config liziniu/ReMax/utils/ds_utils.py official repository ran no licence file found · pointer only · e221a76f7d7a3d73 · report
only_optimize_lora_parameters liziniu/ReMax/utils/module/lora.py official repository ran no licence file found · pointer only · e617041853afd002 · report
prepare_datapair liziniu/ReMax/step2_reward_model_finetuning/rw_eval.py official repository ran no licence file found · pointer only · ed8922a081978462 · report
prepare_singlesample liziniu/ReMax/step2_reward_model_finetuning/rw_eval.py official repository ran no licence file found · pointer only · 779ea48e220986c3 · report
to_device liziniu/ReMax/utils/utils.py official repository ran no licence file found · pointer only · 07ef4eb19492501f · report
calculate_flops liziniu/ReMax/utils/perf.py official repository unverified no licence file found · pointer only · 069f56cb00324e10 · report
get_hf_configs liziniu/ReMax/utils/perf.py official repository unverified no licence file found · pointer only · df20c2f4083d17af · report
get_tokenizer liziniu/ReMax/utils/utils.py official repository unverified no licence file found · pointer only · d0bac507b6ee8862 · report
load_hf_tokenizer liziniu/ReMax/utils/utils.py official repository unverified no licence file found · pointer only · 88cecd279a8c1dff · report
log_init liziniu/ReMax/step3_rlhf_finetuning/rlhf_engine.py official repository unverified no licence file found · pointer only · 429d42a3bf925da5 · report

Tasks

General Reinforcement Learningreinforcement-learning

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Entropy RegularizationPPOREINFORCEZeRO

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