Papers › f-PO: Generalizing Preference Optimization with f-divergence Minimization

f-PO: Generalizing Preference Optimization with f-divergence Minimization

29 Oct 2024arXiv:2410.21662archive 2025-07-28

Jiaqi Han, Mingjian Jiang, Yuxuan Song, Jure Leskovec, Stefano Ermon, Minkai Xu

Preference optimization has made significant progress recently, with numerous methods developed to align language models with human preferences. This paper introduces f-divergence Preference Optimization (f-PO), a novel framework that generalizes and extends existing approaches. f-PO minimizes f-divergences between the optimized policy and the optimal policy, encompassing a broad family of alignment methods using various divergences. Our approach unifies previous algorithms like DPO and EXO, while offering new variants through different choices of f-divergences. We provide theoretical analysis of f-PO's properties and conduct extensive experiments on state-of-the-art language models using benchmark datasets. Results demonstrate f-PO's effectiveness across various tasks, achieving superior performance compared to existing methods on popular benchmarks such as AlpacaEval 2, Arena-Hard, and MT-Bench. Additionally, we present ablation studies exploring the impact of different f-divergences, offering insights into the trade-offs between regularization and performance in offline preference optimization. Our work contributes both practical algorithms and theoretical understanding to the field of language model alignment. Code is available at https://github.com/MinkaiXu/fPO.

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

Code

Syntology Ran 0 of 14 code samples harvested from 1 repository linked to this paper; 14 have no recorded run.

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

minkaixu/fpo officialmentioned in papermentioned on GitHubpytorchMIT 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; 0 ran; 0 honoured the contract we drafted; 14 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.

14unverified

Licence: 0 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 minkaixu/fpo. “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.

calculate_flops minkaixu/fpo/src/utils/perf.py official repository unverified MIT (permissive) · 069f56cb00324e10 · report
causal_lm_model_to_fp32_loss minkaixu/fpo/src/utils/model/model_utils.py official repository unverified MIT (permissive) · c0e274d4f6e1c499 · report
dpo_loss minkaixu/fpo/src/align_stage/loss.py official repository unverified MIT (permissive) · f87ec21e6cc554fb · report
exact_loss minkaixu/fpo/src/align_stage/loss.py official repository unverified MIT (permissive) · ca139c7b291fafb7 · report
fpo_loss minkaixu/fpo/src/align_stage/loss.py official repository unverified MIT (permissive) · 7ffcd72b9da5e2d2 · report
get_data_path minkaixu/fpo/src/align_stage/inference.py official repository unverified MIT (permissive) · af991fecf57a358d · report
get_eval_ds_config minkaixu/fpo/src/utils/ds_utils.py official repository unverified MIT (permissive) · 792e87a1badc5642 · report
get_hf_configs minkaixu/fpo/src/utils/perf.py official repository unverified MIT (permissive) · df20c2f4083d17af · report
get_tokenizer minkaixu/fpo/src/utils/utils.py official repository unverified MIT (permissive) · 018e3a683c8bc191 · report
load_hf_tokenizer minkaixu/fpo/src/utils/utils.py official repository unverified MIT (permissive) · 998ed94665ef9d83 · report
only_optimize_lora_parameters minkaixu/fpo/src/utils/module/lora.py official repository unverified MIT (permissive) · 7d082cd1b7edc2aa · report
read_json minkaixu/fpo/src/api.py official repository unverified MIT (permissive) · f2912713a5377070 · report
read_text minkaixu/fpo/src/api.py official repository unverified MIT (permissive) · c97333aaf3e9d25f · report
to_device minkaixu/fpo/src/utils/utils.py official repository unverified MIT (permissive) · 387b9e6c4f21dd62 · report

Tasks

Language ModelingLanguage Modelling

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