Papers › On the Algorithmic Bias of Aligning Large Language Models with RLHF: Preference...

On the Algorithmic Bias of Aligning Large Language Models with RLHF: Preference Collapse and Matching Regularization

26 May 2024arXiv:2405.16455archive 2025-07-28

Jiancong Xiao, Ziniu Li, Xingyu Xie, Emily Getzen, Cong Fang, Qi Long, Weijie J. Su

Accurately aligning large language models (LLMs) with human preferences is crucial for informing fair, economically sound, and statistically efficient decision-making processes. However, we argue that reinforcement learning from human feedback (RLHF) -- the predominant approach for aligning LLMs with human preferences through a reward model -- suffers from an inherent algorithmic bias due to its Kullback--Leibler-based regularization in optimization. In extreme cases, this bias could lead to a phenomenon we term preference collapse, where minority preferences are virtually disregarded. To mitigate this algorithmic bias, we introduce preference matching (PM) RLHF, a novel approach that provably aligns LLMs with the preference distribution of the reward model under the Bradley--Terry--Luce/Plackett--Luce model. Central to our approach is a PM regularizer that takes the form of the negative logarithm of the LLM's policy probability distribution over responses, which helps the LLM balance response diversification and reward maximization. Notably, we obtain this regularizer by solving an ordinary differential equation that is necessary for the PM property. For practical implementation, we introduce a conditional variant of PM RLHF that is tailored to natural language generation. Finally, we empirically validate the effectiveness of conditional PM RLHF through experiments on the OPT-1.3B and Llama-2-7B models, demonstrating a 29% to 41% improvement in alignment with human preferences, as measured by a certain metric, compared to standard RLHF.

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

Code

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

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

JiancongXiao/PM_RLHF officialmentioned in papermentioned 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

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

Licence: 14 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 JiancongXiao/PM_RLHF. “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 JiancongXiao/PM_RLHF/dschat/rlhf/ppo_trainer.py official repository ran · fixture could not drive it no licence file found · pointer only · 2f0a690c70d11c23 · report
generate JiancongXiao/PM_RLHF/step1_supervised_finetuning/prompt_eval.py official repository ran no licence file found · pointer only · 451c619b9609c3c0 · report
generate_constrastive_search JiancongXiao/PM_RLHF/step1_supervised_finetuning/prompt_eval.py official repository ran no licence file found · pointer only · 385922750eb70702 · report
prepare_datapair JiancongXiao/PM_RLHF/step2_reward_model_finetuning/rw_eval.py official repository ran no licence file found · pointer only · ed8922a081978462 · report
prepare_singlesample JiancongXiao/PM_RLHF/step2_reward_model_finetuning/rw_eval.py official repository ran no licence file found · pointer only · 779ea48e220986c3 · report
calculate_flops JiancongXiao/PM_RLHF/dschat/utils/perf.py official repository unverified no licence file found · pointer only · 069f56cb00324e10 · report
causal_lm_model_to_fp32_loss JiancongXiao/PM_RLHF/dschat/utils/model/model_utils.py official repository unverified no licence file found · pointer only · a43ca11da51d269b · report
get_eval_ds_config JiancongXiao/PM_RLHF/dschat/utils/ds_utils.py official repository unverified no licence file found · pointer only · 792e87a1badc5642 · report
get_hf_configs JiancongXiao/PM_RLHF/dschat/utils/perf.py official repository unverified no licence file found · pointer only · df20c2f4083d17af · report
get_tokenizer JiancongXiao/PM_RLHF/dschat/utils/utils.py official repository unverified no licence file found · pointer only · 5017ecabf588a56c · report
load_hf_tokenizer JiancongXiao/PM_RLHF/dschat/utils/utils.py official repository unverified no licence file found · pointer only · 3f9f61afa9043c4f · report
log_init JiancongXiao/PM_RLHF/dschat/rlhf/rlhf_engine.py official repository unverified no licence file found · pointer only · 429d42a3bf925da5 · report
only_optimize_lora_parameters JiancongXiao/PM_RLHF/dschat/utils/module/lora.py official repository unverified no licence file found · pointer only · 7d082cd1b7edc2aa · report
to_device JiancongXiao/PM_RLHF/dschat/utils/utils.py official repository unverified no licence file found · pointer only · 387b9e6c4f21dd62 · report

Tasks

Decision MakingText Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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