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

$f$-PO: $f$-다이버전스 최소화를 통한 선호 최적화의 일반화

Jiaqi Han, Mingjian Jiang, Yuxuan Song, Stefano Ermon, Minkai Xu · arXiv · 2024년 10월 29일

- **연구 문제** 대규모 언어모델의 선호 최적화는 다단계 RLHF의 불안정성을 줄이려고 DPO 같은 오프라인 방법으로 옮겨 가고 있으나, 각 방법의 함수 선택에는 이론적 기준이 부족합니다.
- **연구 방법** f-PO는 정책과 최적 정책 사이의 f-divergence를 최소화하는 분포 매칭 목적으로 DPO와 EXO를 포함하는 선호 최적화 계열을 구성하며, α-divergence 변형이 가장 강한 결과를 보였습니다.
- **주요 결과** Pythia-2.8B 실험에서 α = 0.1이 최고 결과를 보였고, Llama-3-8B와 Mistral-7B의 여러 벤치마크 비교에서 f-PO는 평가한 20개 지표 중 16개에서 최고 점수를 달성했다고 보고합니다.

## 선호 최적화의 배경과 문제

대규모 언어모델을 사람의 선호에 맞추는 과정은 보통 보상 모델을 따로 학습하고 정책을 강화학습으로 최적화하는 다단계 절차로 이루어집니다. 이 절차는 학습이 불안정하고 구성이 복잡하다는 어려움이 있습니다. 이를 완화하려고 DPO처럼 쌍별 선호 데이터에서 직접 정책을 최적화하는 오프라인 방법이 등장했습니다. DPO는 보상을 정책과 참조 모델의 로그 밀도비로 파라미터화하고 Bradley-Terry 모델의 이진 분류 목적으로 학습합니다. 그러나 이 파라미터화는 정책이 최적에 도달했다는 가정에 기대며, 초기 학습 단계에서는 이 가정이 보장되지 않는다고 원문은 설명합니다. 또한 IPO, EXO, GPO 등 여러 변형이 제안되었지만 convex 함수 f의 선택에는 이론적 지침이 부족합니다.

## f-divergence 최소화로 본 f-PO의 구성

f-PO는 정책 πθ와 최적 정책 π\* 사이의 f-divergence를 최소화하는 분포 매칭 관점에서 선호 최적화를 정식화합니다. 원문은 정책 밀도비를 적절히 조정한 ˆπθ와 ˆπ\*의 f-divergence를 목적으로 두며, 이상적인 용량과 완전한 최적화 아래 최적 정책이 π\*와 일치함을 증명합니다. 실제로는 분할 함수를 직접 계산할 수 없으므로, 프롬프트마다 참조 정책에서 K개의 완성문을 샘플링하고 보상을 정규화한 값으로 Monte Carlo 근사를 사용합니다. K가 무한대로 갈 때 이 목적은 f-divergence와 점근적으로 일치한다고 원문은 보고합니다. 쌍별 선호 데이터에서는 K=2로 두고 Bradley-Terry 형태로 식을 정리하며, 라벨 smoothing ε를 도입해 수치 문제를 피합니다.

f 생성 함수로 reverse KL을 대입하면 DPO 목적이 복원되고, forward KL의 u log u를 대입하면 EXO에 대응한다고 원문은 설명합니다.

## α-PO 변형과 SimPO식 근사

f 함수의 선택에 따라 여러 인스턴스가 만들어집니다. 원문은 α-divergence를 사용하는 α-PO가 실험에서 가장 경쟁력 있는 결과를 보였다고 설명합니다. α 값이 커지면 분포 꼬리의 차이에 더 민감해지며, α가 0에 가까우면 KL, 1에 가까우면 역방향 KL에 수렴합니다. 또한 원문은 기준 모델 로그비를 직접 쓰는 대신 SimPO식 근사를 쓰는 경험적 변형을 제안합니다. 이 근사는 문장 길이로 나눈 로그확률 차이와 목표 마진 γ를 사용하며, 근사 목적에 이 식을 대입해 학습 효율과 성능을 높인다고 보고합니다.

## f 선택과 α 변화에 대한 검증

첫 번째 실험은 Pythia-2.8B를 백본으로 하여 Anthropic HH와 TL;DR 데이터셋에서 f의 선택이 성능에 미치는 영향을 봅니다. 평가는 GPT-4의 쌍별 비교로 SFT 모델과 선택 응답에 대한 승률을 측정합니다. α를 sweep하면 승률이 mode-seeking과 mode-covering 사이에서 매끄럽게 변하며, α가 0에 가까울 때는 forward KL, 1에 가까울 때는 reverse KL과 비슷한 결과를 보입니다. 이 설정에서 α = 0.1이 가장 높은 결과를 보였습니다. 다른 f-divergence들과 비교하면 α-divergence가 대체로 가장 높은 승률을 보였고, reverse KL 대비 최대 20%p 이상 향상되었다고 원문은 보고합니다.

![Figure 2: The win rate (%) against SFT and Chosen of Pythia-2.8B fine-tuned byf-PO on Anthropic HH dataset with different values ofα](https://refivu.com/papers/0e3c42f4-ff84-48dd-8161-1b3c9aa4e77c/figures/figure-1c7a8238a1158a64765fcc3965d2a819.png?thumb=512)

**Figure 2** : The win rate (%) against SFT and Chosen of Pythia-2.8B fine-tuned byf-PO on Anthropic HH dataset with different values ofα.

[원문](https://arxiv.org/abs/2410.21662v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiaqi Han, Mingjian Jiang, Yuxuan Song, Stefano Ermon, Minkai Xu · $f$-PO: Generalizing Preference Optimization with $f$-divergence Minimization · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

![Table 2: The win rate (%) against SFT and Chosen of Pythia-2.8B fine-tuned by various alignment algo- rithms on TLDR and Anthropic HH datasets. Results of base…](https://refivu.com/papers/0e3c42f4-ff84-48dd-8161-1b3c9aa4e77c/figures/figure-1e4a91d3329422c5d01f5f35fc3b82f6.png?thumb=512)

**Table 2** : The win rate (%) against SFT and Chosen of Pythia-2.8B fine-tuned by various alignment algo- rithms on TLDR and Anthropic HH datasets. Results of baselines are taken from Ji et al. (2024). Best num- bers of preference optimization methods are boldfaced.

[원문](https://arxiv.org/abs/2410.21662v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiaqi Han, Mingjian Jiang, Yuxuan Song, Stefano Ermon, Minkai Xu · $f$-PO: Generalizing Preference Optimization with $f$-divergence Minimization · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 벤치마크에서의 f-PO 결과

두 번째 검증은 Llama-3-8B와 Mistral-7B를 Base와 Instruct 두 설정에서 AlpacaEval 2, Arena-Hard, MT-Bench, Open LLM Leaderboard v2로 평가합니다. Base 설정에서는 UltraChat-200k로 SFT 모델을 만든 뒤 UltraFeedback으로 선호 최적화합니다. Instruct 설정은 공개된 instruction-tuned 모델을 SFT 모델로 씁니다. 원문은 평가한 20개 지표 중 16개에서 f-PO가 최고 점수를 달성했다고 보고합니다. AlpacaEval 2 길이 통제 승률은 SimPO 대비 평균 1.4% 향상되었고, Llama-3-8B Base의 Arena-Hard에서는 SimPO 23.4%에 비해 28.2%를 기록했습니다.

Open LLM Leaderboard v2에서도 SimPO보다 평균 점수가 높았습니다.

![Table 3: Results on AlpacaEval 2 (Li et al., 2023), Arena-Hard (Li et al., 2024), and MT-Bench (Zheng et al., 2023) under four settings. LC and WR denote lengt…](https://refivu.com/papers/0e3c42f4-ff84-48dd-8161-1b3c9aa4e77c/figures/figure-9b81342ad5c4ab08f6f5fdf8f7a1027c.png?thumb=512)

**Table 3** : Results on AlpacaEval 2 (Li et al., 2023), Arena-Hard (Li et al., 2024), and MT-Bench (Zheng et al., 2023) under four settings. LC and WR denote length-controlled and raw win rate, respectively. SFT models are trained on UltraChat dataset for Base settings and initialized as off-the-shelf models for Instruct settings. Results of baselines are taken from Meng et al. (2024).

[원문](https://arxiv.org/abs/2410.21662v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiaqi Han, Mingjian Jiang, Yuxuan Song, Stefano Ermon, Minkai Xu · $f$-PO: Generalizing Preference Optimization with $f$-divergence Minimization · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

![Table 4: Results on LLM Leaderboard v2 with Llama3-Instruct (8B) and Mistral-Base (7B)](https://refivu.com/papers/0e3c42f4-ff84-48dd-8161-1b3c9aa4e77c/figures/figure-4f5750265dc15b3fc6c6ae3d46149675.png?thumb=512)

**Table 4** : Results on LLM Leaderboard v2 with Llama3-Instruct (8B) and Mistral-Base (7B).

[원문](https://arxiv.org/abs/2410.21662v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jiaqi Han, Mingjian Jiang, Yuxuan Song, Stefano Ermon, Minkai Xu · $f$-PO: Generalizing Preference Optimization with $f$-divergence Minimization · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 결과의 범위와 한계

이 결과는 Pythia-2.8B, Llama-3-8B, Mistral-7B와 제시된 데이터셋 및 평가 설정에서 얻은 것입니다. 벤치마크 비교의 하이퍼파라미터는 SimPO의 일반 설정을 따랐으며, 모델별 α, β, γ와 학습률은 해당 실험 조건에 묶여 있습니다. 또한 GPT-4 판정과 여러 벤치마크 점수의 조건은 실험마다 다르므로 하나의 공통 프로토콜로 묶을 수 없습니다. 원문은 이론 분석이 최적화 가정과 unlimited capacity 조건에서 성립한다고 밝힙니다.

## 논문 정보

- **저자**: Jiaqi Han, Mingjian Jiang, Yuxuan Song, Stefano Ermon, Minkai Xu
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2024년 10월 29일
- **등록일**: 2026년 11월 5일
- **수정일**: 2025년 2월 16일
- **버전**: v2
- **arXiv**: 2410.21662
- **분류**: cs.CL · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2410.21662v2) · [원문 PDF ↗](https://arxiv.org/pdf/2410.21662v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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, MT-Bench, and Open LLM Leaderboard v2. 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.

## 원문 인용

Jiaqi Han, Mingjian Jiang, Yuxuan Song, Stefano Ermon, Minkai Xu (2024). $f$-PO: Generalizing Preference Optimization with $f$-divergence Minimization. arXiv:2410.21662v2. https://arxiv.org/abs/2410.21662v2

**BibTeX**

```
@misc{han2024generalizing,
  title = {{$f$-PO: Generalizing Preference Optimization with $f$-divergence Minimization}},
  author = {Jiaqi Han and Mingjian Jiang and Yuxuan Song and Stefano Ermon and Minkai Xu},
  year = {2024},
  eprint = {2410.21662},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.21662v2}
}
```

## 이 논문의 용어

- [DPO](https://refivu.com/terms/4c5fb06dccd7-dpo)
- [MT-bench](https://refivu.com/terms/0cad66f1f433-mt-bench)
- [SFT](https://refivu.com/terms/ba69d88561ea-sft)
- [Win Rate](https://refivu.com/terms/14de48f4526a-win-rate)
- [Label Smoothing](https://refivu.com/terms/92ff7104c813-label-smoothing)
- [partition function](https://refivu.com/terms/78ea3a439142-partition-function)
- [Bradley-Terry model](https://refivu.com/terms/18d616a35daa-bradley-terry-model)
- [Arena-Hard](https://refivu.com/terms/73f051c9dfee-arena-hard)
- [AlpacaEval 2](https://refivu.com/terms/50ecc97e6a23-alpacaeval-2)
- [SimPO](https://refivu.com/terms/a200795d58fe-simpo)
- [Density ratio](https://refivu.com/terms/0e495816b20d-density-ratio)
- [reverse KL divergence](https://refivu.com/terms/9df68724e5d9-reverse-kl-divergence)
- [UltraChat-200k](https://refivu.com/terms/c67da80aa8cd-ultrachat-200k)
- [Anthropic HH](https://refivu.com/terms/546521535a0c-anthropic-hh)
- [generator function](https://refivu.com/terms/aa253156d919-generator-function)
- [Monte Carlo Estimation](https://refivu.com/terms/6710ade6f114-monte-carlo-estimation)
- [Pythia-2.8b](https://refivu.com/terms/ecebc7d6248d-pythia-2-8b)
- [Reddit TL;DR](https://refivu.com/terms/a0f0004d1892-reddit-tl-dr)
- [α-divergence](https://refivu.com/terms/376438ce2505-divergence)

## 다른 논문 해설

- [Orthogonal Finetuning for Direct Preference Optimization](https://refivu.com/papers/32483e1f-3b2b-4dc3-ab5c-4af2d5b385a5-orthogonal-finetuning-for-direct-preference-optimization.md)
- [Test-Time Preference Optimization: On-the-Fly Alignment via Iterative Textual Feedback](https://refivu.com/papers/a5408c3c-bf17-431a-9280-bf3e7e14506d-test-time-preference-optimization-on-the-fly-alignment.md)
- [Selective Preference Optimization via Token-Level Reward Function Estimation](https://refivu.com/papers/bb6bc59d-6f0b-4f0f-bed2-dcbb3037eb8a-selective-preference-optimization-via-token-level-reward.md)
- [MaPPO: Maximum a Posteriori Preference Optimization with Prior Knowledge](https://refivu.com/papers/dcf1d65c-c60e-42ba-a984-a649256d7704-mappo-maximum-a-posteriori-preference-optimization-with.md)
- [LOGO -- Long cOntext aliGnment via efficient preference Optimization](https://refivu.com/papers/853ee23f-3eb7-405a-8ff7-08e7d2510334-logo-long-context-alignment-via-efficient-preference.md)
- [GAW-PO: Preference Optimization with Gradient-Aligned Token Weights](https://refivu.com/papers/1751cadd-c5ac-4be5-b5f4-d5f5efd0c8fd-gaw-po-preference-optimization-with-gradient-aligned-token.md)
- [Aligning Diffusion Language Models via Unpaired Preference Optimization](https://refivu.com/papers/ea88a01a-260f-49a4-a56d-31a3426c0054-aligning-diffusion-language-models-via-unpaired-preference.md)
- [StoicLLM: Preference Optimization for Philosophical Alignment in Small Language Models](https://refivu.com/papers/52f09ec2-ec41-4700-9c0f-a3411c9b4740-stoicllm-preference-optimization-for-philosophical-alignment.md)
- [SIPO: Stabilized and Improved Preference Optimization for Aligning Diffusion Models](https://refivu.com/papers/43fc00cb-3411-4415-9937-21d491129d4f-sipo-stabilized-and-improved-preference-optimization-for.md)
- [Calibrated Multi-Preference Optimization for Aligning Diffusion Models](https://refivu.com/papers/79fb386a-6628-4c08-8986-85b6fd0e10c5-calibrated-multi-preference-optimization-for-aligning.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/0e3c42f4-ff84-48dd-8161-1b3c9aa4e77c-f-po-generalizing-preference-optimization-with-f-divergence)
