Papers › Unpacking DPO and PPO: Disentangling Best Practices for Learning from Preference Feedback

Unpacking DPO and PPO: Disentangling Best Practices for Learning from Preference Feedback

13 Jun 2024arXiv:2406.09279archive 2025-07-28

Hamish Ivison, Yizhong Wang, Jiacheng Liu, Zeqiu Wu, Valentina Pyatkin, Nathan Lambert, Noah A. Smith, Yejin Choi, Hannaneh Hajishirzi

Learning from preference feedback has emerged as an essential step for improving the generation quality and performance of modern language models (LMs). Despite its widespread use, the way preference-based learning is applied varies wildly, with differing data, learning algorithms, and evaluations used, making disentangling the impact of each aspect difficult. In this work, we identify four core aspects of preference-based learning: preference data, learning algorithm, reward model, and policy training prompts, systematically investigate the impact of these components on downstream model performance, and suggest a recipe for strong learning for preference feedback. Our findings indicate that all aspects are important for performance, with better preference data leading to the largest improvements, followed by the choice of learning algorithm, the use of improved reward models, and finally the use of additional unlabeled prompts for policy training. Notably, PPO outperforms DPO by up to 2.5% in math and 1.2% in general domains. High-quality preference data leads to improvements of up to 8% in instruction following and truthfulness. Despite significant gains of up to 5% in mathematical evaluation when scaling up reward models, we surprisingly observe marginal improvements in other categories. We publicly release the code used for training (https://github.com/hamishivi/EasyLM) and evaluating (https://github.com/allenai/open-instruct) our models, along with the models and datasets themselves (https://huggingface.co/collections/allenai/tulu-v25-suite-66676520fd578080e126f618).

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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

Code

Syntology Ran 15 of 19 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 4 ran · our draft was wrong; 3 ran · fixture could not drive it; 8 ran with no contract checked.

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

allenai/open-instruct officialmentioned in papermentioned on GitHubpytorch report
hamishivi/easylm officialmentioned in paperjaxApache-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

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

4ran · our draft was wrong
3ran · fixture could not drive it
8ran
4unverified

Licence: 0 of the 19 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 hamishivi/easylm. “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.

apply_rotary_pos_emb hamishivi/easylm/EasyLM/models/gptj/gptj_model.py official repository ran Apache-2.0 (permissive) · 0f14840c40641281 · report
blockwise_attn hamishivi/easylm/EasyLM/bpt.py official repository ran Apache-2.0 (permissive) · dbfe03f34fca42fc · report
concatenated_forward hamishivi/EasyLM/EasyLM/models/llama/llama_train_dpo.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 119ac1062aa47fe1 · report
convert_logits_to_logps hamishivi/EasyLM/EasyLM/models/llama/llama_train_dpo.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 4c4036a5cbd39f10 · report
create_sinusoidal_positions hamishivi/easylm/EasyLM/models/gptj/gptj_model.py official repository ran Apache-2.0 (permissive) · ff574bc6676f34f1 · report
get_jax_mesh hamishivi/easylm/EasyLM/jax_utils.py official repository ran Apache-2.0 (permissive) · 0cad657acf954c2f · report
get_names_from_parition_spec hamishivi/easylm/EasyLM/jax_utils.py official repository ran · our draft was wrong Apache-2.0 (permissive) · dad72196bdb2301a · report
masked_mean hamishivi/EasyLM/EasyLM/models/llama/llama_train_ppo.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 7125896060f86225 · report
masked_sum hamishivi/EasyLM/EasyLM/models/llama/llama_train_ppo.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 7cbbe7f38c74cab8 · report
masked_var hamishivi/EasyLM/EasyLM/models/llama/llama_train_ppo.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · c39dac404ff3f2b3 · report
match_keywords hamishivi/easylm/EasyLM/models/llama/convert_easylm_to_hf.py official repository ran Apache-2.0 (permissive) · cc2ba1b1b0c83f6c · report
optax_add_scheduled_weight_decay hamishivi/easylm/EasyLM/optimizers.py official repository ran Apache-2.0 (permissive) · 1db35ae97b8e784f · report
pad_out_to_full_batch hamishivi/easylm/EasyLM/data.py official repository ran Apache-2.0 (permissive) · cdf684770f174015 · report
read_json hamishivi/easylm/EasyLM/models/llama/convert_easylm_to_hf.py official repository ran · our draft was wrong Apache-2.0 (permissive) · c5bcf01d18bba63d · report
rotate_every_two hamishivi/easylm/EasyLM/models/gptj/gptj_model.py official repository ran Apache-2.0 (permissive) · 768565e8f56c5fb0 · report
blockwise_ffn hamishivi/easylm/EasyLM/bpt.py official repository unverified Apache-2.0 (permissive) · 4833ab3506125762 · report
dpo_loss hamishivi/EasyLM/EasyLM/models/llama/llama_train_dpo.py official repository unverified Apache-2.0 (permissive) · a6d706f6e0699b5c · report
inverse_permute hamishivi/easylm/EasyLM/models/llama/convert_hf_to_easylm.py official repository unverified Apache-2.0 (permissive) · 667a8648b1f3ad2c · report
make_shard_and_gather_fns hamishivi/easylm/EasyLM/jax_utils.py official repository unverified Apache-2.0 (permissive) · e23d17afdb6ab8b8 · report

Tasks

Instruction FollowingMath

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

DPOEntropy RegularizationPPO

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