Papers › Beyond Reverse KL: Generalizing Direct Preference Optimization with Diverse Divergence...

Beyond Reverse KL: Generalizing Direct Preference Optimization with Diverse Divergence Constraints

28 Sep 2023arXiv:2309.16240archive 2025-07-28

Chaoqi Wang, Yibo Jiang, Chenghao Yang, Han Liu, Yuxin Chen

The increasing capabilities of large language models (LLMs) raise opportunities for artificial general intelligence but concurrently amplify safety concerns, such as potential misuse of AI systems, necessitating effective AI alignment. Reinforcement Learning from Human Feedback (RLHF) has emerged as a promising pathway towards AI alignment but brings forth challenges due to its complexity and dependence on a separate reward model. Direct Preference Optimization (DPO) has been proposed as an alternative, and it remains equivalent to RLHF under the reverse KL regularization constraint. This paper presents f-DPO, a generalized approach to DPO by incorporating diverse divergence constraints. We show that under certain f-divergences, including Jensen-Shannon divergence, forward KL divergences and α-divergences, the complex relationship between the reward and optimal policy can also be simplified by addressing the Karush-Kuhn-Tucker conditions. This eliminates the need for estimating the normalizing constant in the Bradley-Terry model and enables a tractable mapping between the reward function and the optimal policy. Our approach optimizes LLMs to align with human preferences in a more efficient and supervised manner under a broad set of divergence constraints. Empirically, adopting these divergences ensures a balance between alignment performance and generation diversity. Importantly, f-DPO outperforms PPO-based methods in divergence efficiency, and divergence constraints directly influence expected calibration error (ECE).

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

Code

Syntology Ran 5 of 17 code samples harvested from 1 repository linked to this paper; 12 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 4 ran with no contract checked.

By repository: community (archive-listed): 17 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.

alecwangcq/f-divergence-dpo mentioned on GitHubpytorchApache-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

17 samples harvested; 5 ran; 0 honoured the contract we drafted; 12 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 · our draft was wrong
4ran
12unverified

Licence: 0 of the 17 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 alecwangcq/f-divergence-dpo. “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.

extract_anthropic_prompt alecwangcq/f-divergence-dpo/preference_datasets.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 12f6803880f9b17e · report
get_local_run_dir alecwangcq/f-divergence-dpo/utils.py community (archive-listed) ran Apache-2.0 (permissive) · 10ab71f27ffd7de8 · report
load_judge_prompts alecwangcq/f-divergence-dpo/mt_bench/common.py community (archive-listed) ran Apache-2.0 (permissive) · 41fd9954784a1330 · report
load_model_answers alecwangcq/f-divergence-dpo/mt_bench/common.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · 270d3eb4371b0d85 · report
load_questions alecwangcq/f-divergence-dpo/mt_bench/common.py community (archive-listed) ran Apache-2.0 (permissive) · 88969cdc675c418e · report
calculate_entropy alecwangcq/f-divergence-dpo/generation.py community (archive-listed) unverified Apache-2.0 (permissive) · 194f8dc522933267 · report
calculate_score alecwangcq/f-divergence-dpo/cali/hh_cali_eval.py community (archive-listed) unverified Apache-2.0 (permissive) · f2074220eaa2a95d · report
calculate_self_bleu alecwangcq/f-divergence-dpo/generation.py community (archive-listed) unverified Apache-2.0 (permissive) · c38b6fc85679b0b0 · report
dpo_loss alecwangcq/f-divergence-dpo/trainers.py community (archive-listed) unverified Apache-2.0 (permissive) · fc5f3e7e6f97a222 · report
forward_dpo_loss alecwangcq/f-divergence-dpo/trainers.py community (archive-listed) unverified Apache-2.0 (permissive) · 6ccfbad96ffcc246 · report
get_judge_name alecwangcq/f-divergence-dpo/mt_bench/compute_agreement.py community (archive-listed) unverified Apache-2.0 (permissive) · d24ec6691ff04146 · report
get_local_dir alecwangcq/f-divergence-dpo/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 8ab43db002bf984d · report
get_mt_bench_votes_data alecwangcq/f-divergence-dpo/mt_bench/compute_agreement.py community (archive-listed) unverified Apache-2.0 (permissive) · 7745c0e675406cf2 · report
get_remote_file alecwangcq/f-divergence-dpo/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · e7ce4c19888c6df6 · report
load_model alecwangcq/f-divergence-dpo/mt_bench/convert_dpo_trainer_file_to_huggingface.py community (archive-listed) unverified Apache-2.0 (permissive) · 3e9f2dd8699a6fff · report
revert alecwangcq/f-divergence-dpo/mt_bench/compute_agreement.py community (archive-listed) unverified Apache-2.0 (permissive) · 35801bf32affe123 · report
stabilized_log1pexp alecwangcq/f-divergence-dpo/trainers.py community (archive-listed) unverified Apache-2.0 (permissive) · 82acf8c8f8bc3e2b · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGNDPO

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