# 优势比偏好优化

优势比偏好优化（Odds Ratio Preference Optimization，ORPO）是一种面向大语言模型的后训练方法，它将监督微调与偏好优化合并为单一的训练阶段，通过对不受偏好回复施加优势比惩罚来替代独立的参考模型。该方法由韩国科学技术院（KAIST）的 Jiwoo Hong、Noah Lee 和 James Thorne 提出，2024 年 3 月以 arXiv 预印本形式发布，后发表于 EMNLP 2024。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup><sup> • </sup><sup>[2](https://p.rst.im/q/aclanthology.org/2024.emnlp-main.626.pdf)</sup>

| 关键事实 | 详情 |
|---|---|
| 类别 | 单阶段、无参考模型的偏好对齐算法<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup> |
| 来源 | Hong、Lee、Thorne，KAIST；arXiv:2403.07691，2024 年 3 月；EMNLP 2024 主会议<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup><sup> • </sup><sup>[2](https://p.rst.im/q/aclanthology.org/2024.emnlp-main.626.pdf)</sup> |
| 损失函数 | 对选中回复的 SFT 负对数似然，加上 lambda 加权的优势比惩罚<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup> |
| 算力声明 | 在作者的控制实验中，训练时间比 DPO 减少 56.3%；每设备批大小提升至四倍<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup> |
| 主要结果（作者报告） | Mistral-ORPO-beta：AlpacaEval2.0 12.20%，MT-Bench 7.32，IFEval（宽松）66.19%<sup>[2](https://p.rst.im/q/aclanthology.org/2024.emnlp-main.626.pdf)</sup><sup> • </sup><sup>[3](https://huggingface.co/docs/trl/en/orpo_trainer)</sup> |
| 开放工具 | Hugging Face TRL 中的 ORPOTrainer；alignment-handbook 中的配方<sup>[3](https://huggingface.co/docs/trl/en/orpo_trainer)</sup><sup> • </sup><sup>[4](https://deepwiki.com/huggingface/alignment-handbook/3.3-odds-ratio-preference-optimization-(orpo))</sup> |
| 声明的局限 | 未与更广泛的对齐算法集合进行比较，未扩展至 7B 以上，编码与数学能力弱被归因于 61k 实例的训练集<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup> |

## ORPO 是什么

ORPO 是一种一体化偏好优化算法：它在偏好数据上一次性完成域适应与偏好对齐，而非传统的两阶段流水线——先监督微调（SFT），再使用 DPO 或基于 PPO 的 RLHF 等偏好优化方法。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup><sup> • </sup><sup>[5](https://gsai.kaist.ac.kr/wp-content/uploads/2024/10/KAIST-ORPO.pdf)</sup> 它同时去掉了参考模型，即 DPO 和 RLHF 方法用来锚定更新的初始策略冻结副本。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup>

## 起源与提出

该方法在《ORPO：无参考模型的一体化偏好优化》一文中提出，于 2024 年 3 月发布在 arXiv（arXiv:2403.07691），作者为 Jiwoo Hong、Noah Lee 和 James Thorne。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup> 该论文经过同行评审，以主会议论文第 626 号的身份出现在 EMNLP 2024。<sup>[2](https://p.rst.im/q/aclanthology.org/2024.emnlp-main.626.pdf)</sup> 作者发布了 Mistral-ORPO-alpha（7B）和 Mistral-ORPO-beta（7B）的训练代码与检查点。<sup>[2](https://p.rst.im/q/aclanthology.org/2024.emnlp-main.626.pdf)</sup>

## 机制原理

ORPO 损失是 \(L_{\mathrm{SFT}} + \lambda \cdot L_{\mathrm{OR}}\) 在偏好对（x、选中回复 y_w、拒绝回复 y_l）上的期望值。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup> 第一项是施加于选中回复的传统 SFT 负对数似然，驱动模型趋向目标域。第二项是优势比损失，\(L_{\mathrm{OR}} = -\log \sigma(\log[\mathrm{odds}_{\theta}(y_w \mid x) / \mathrm{odds}_{\theta}(y_l \mid x)])\)，即对偏好回复与不受偏好回复似然之间的对数优势比做 log-sigmoid 包裹。最小化该项会增大选中回复与拒绝回复之间的优势比，从而相对于选中回复压低拒绝回复的似然。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup>

该惩罚针对一种特定的 SFT 失效模式。在作者的框架中，仅对选中字段做 SFT 会让拒绝字段的似然随选中字段一同上升；优势比项抑制这种联合上升，而 NLL 项负责域适应。<sup>[5](https://gsai.kaist.ac.kr/wp-content/uploads/2024/10/KAIST-ORPO.pdf)</sup>

训练对权重 lambda 敏感。当 lambda = 1.0 时，选中与拒绝的对数概率均下降，而二者之间的间隔扩大；与 lambda = 0.1 相比，lambda = 1.0 在抽取、数学和推理这些通常需要确定性答案的类别上表现更差，而在 STEM、人文学科和角色扮演等开放式类别上有提升。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup>

## 与 DPO、PPO 及其他偏好方法的比较

ORPO 与 DPO 和 PPO 流水线的结构差异在于既无参考模型，也无独立的 SFT 阶段，作者将此转化为更低的内存分配和每批更少的 FLOPs。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup> 在 Mistral 7B 上使用 2 块 NVIDIA A100 GPU 配合 DeepSpeed ZeRO 3 的控制实验中，ORPO 相比 DPO 减少训练时间 56.3%（5.5 小时对 12.6 小时），且每设备可容纳四倍大的批大小。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup>

在质量方面，论文自报的比较显示 ORPO 相对 DPO 的增益为：Phi-2（2.7B）+5.57%，官方 Llama-2（7B）Chat 检查点 +4.48%，Llama-2（13B）Chat +1.74%，[Zephyr](https://www.edgepedia.org/zh/zephyr-ai-model) alpha（7B）+2.98%。<sup>[2](https://p.rst.im/q/aclanthology.org/2024.emnlp-main.626.pdf)</sup> 在奖励模型偏好测试中，ORPO 对 DPO 的胜率随模型规模增大而提高，在 HH-RLHF 上 OPT-1.3B 达到 70.9%，同时在所有规模上均击败 SFT 和 PPO（分别最高达 84.0% 和 79.4%）。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup><sup> • </sup><sup>[2](https://p.rst.im/q/aclanthology.org/2024.emnlp-main.626.pdf)</sup> 这些均为作者报告的数字；来源中没有 ORPO 对 IPO 或 SimPO 的直接对比测量，也没有对这些比较的独立复现。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup>

## 应用场景

ORPO 已进入主流开放工具链。[Hugging Face](https://www.edgepedia.org/zh/hugging-face) 的 TRL 库提供官方 ORPOTrainer，文档中注明为 Hong、Lee 和 Thorne 的方法。<sup>[3](https://huggingface.co/docs/trl/en/orpo_trainer)</sup> alignment-handbook 将 ORPO 列为替代独立 SFT 与 DPO 阶段的单阶段方案。<sup>[4](https://deepwiki.com/huggingface/alignment-handbook/3.3-odds-ratio-preference-optimization-(orpo))</sup> 论文自身的微调使用 Phi-2（2.7B）、Llama-2（7B）和 Mistral（7B），仅在 [UltraFeedback](https://www.edgepedia.org/zh/ultrafeedback) 这一 61k 实例的偏好数据集上训练。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup>

## 数据一览

以下所有基准数字均为作者报告；来源中没有对它们的独立复现。

- AlpacaEval2.0：Mistral-ORPO-alpha 11.33%，Mistral-ORPO-beta 12.20%。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup><sup> • </sup><sup>[2](https://p.rst.im/q/aclanthology.org/2024.emnlp-main.626.pdf)</sup>
- MT-Bench：alpha 为 7.24，beta 为 7.32（arXiv 版本给出 alpha 为 7.23；EMNLP 版本给出 7.24）。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup><sup> • </sup><sup>[2](https://p.rst.im/q/aclanthology.org/2024.emnlp-main.626.pdf)</sup>
- IFEval：Mistral-ORPO-beta 得分为提示严格 0.5287、指令严格 0.6355、指令宽松 0.6619。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup><sup> • </sup><sup>[3](https://huggingface.co/docs/trl/en/orpo_trainer)</sup>
- 作者报告称，Phi-2、Llama-2 和 Mistral 在 UltraFeedback 上的 ORPO 微调超越了参数量超过 7B 和 13B 的最先进模型。<sup>[1](https://doi.org/10.48550/arxiv.2403.07691)</sup> Mistral-ORPO-beta 被描述为在需要描述性生成的 MT-Bench 类别上与 GPT-3.5-turbo 相当，但缺乏编码和数学能力。<sup>[2](https://p.rst.im/q/aclanthology.org/2024.emnlp-main.626.pdf)</sup>

## References

1. ORPO: Monolithic Preference Optimization without Reference Model (arXiv:2403.07691) — https://doi.org/10.48550/arxiv.2403.07691
2. ORPO: Monolithic Preference Optimization without Reference Model (EMNLP 2024 main conference paper 626) — https://p.rst.im/q/aclanthology.org/2024.emnlp-main.626.pdf
3. ORPO Trainer, Hugging Face TRL documentation — https://huggingface.co/docs/trl/en/orpo_trainer
4. Odds Ratio Preference Optimization (ORPO), alignment-handbook (DeepWiki) — https://deepwiki.com/huggingface/alignment-handbook/3.3-odds-ratio-preference-optimization-(orpo)
5. KAIST GSAI presentation on ORPO (October 2024) — https://gsai.kaist.ac.kr/wp-content/uploads/2024/10/KAIST-ORPO.pdf

---
*Initially written Sep 17, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Foundation-model methods and training › Post-training and alignment methods

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/odds-ratio-preference-optimization

English original: https://www.edgepedia.org/odds-ratio-preference-optimization
