What is ORPO?

ORPO is a method that merges supervised fine-tuning and preference alignment into a single training stage without a reference model, by adding to the supervised loss on preferred answers a penalty term comparing the odds of preferred and rejected answers.

The name stands for Odds Ratio Preference Optimisation. Unlike DPO, which usually needs a separate supervised fine-tuning stage first and keeps a frozen reference model in memory throughout, ORPO merges the stages with no reference model.

Topic
Machine learning, models and training
Also known as
Odds Ratio Preference Optimization
Origin
2024, Hong, Lee and Thorne

How ORPO works

  1. Training data consists of triples: a prompt, a preferred answer and a rejected answer.
  2. The first part of the loss is the standard supervised fine-tuning loss on the preferred answer.
  3. The second is a small penalty raising the preferred answer's odds relative to the rejected one's.
  4. Both parts form one loss and the model updates in one stage; no separate reference model is loaded.

In more detail

The odds definition and length normalisation

Formally, ORPO defines the odds of a response as the probability of generating it divided by the probability of not generating it, using length-normalised geometric mean token probabilities to avoid length bias. The total loss is the standard supervised cross-entropy loss on the preferred answer plus a weighted log odds ratio penalty, which grows as the rejected answer's odds approach those of the preferred answer.

The lambda balance and choice of starting model

The lambda hyperparameter balances imitating preferred answers (SFT) against pushing down rejected answers (the odds ratio penalty). Because the SFT loss stays active throughout training, ORPO fits most naturally when training starts from a base model; for an already instruction-tuned model, preference-only methods such as DPO or SimPO may disturb existing capabilities less.

Commonly confused terms

TermHow it differs
SimPOSimPO (Simple Preference Optimisation) is also reference-free, using the length-normalised average log-probability of a sequence as an implicit reward margin; unlike ORPO, SimPO does not bundle the SFT loss term and is typically applied after SFT.
KTOKTO (Kahneman-Tversky Optimisation) aligns models using unpaired binary feedback (desirable versus undesirable labels per output) rather than requiring matched preferred and rejected pairs for the same prompt as in ORPO and DPO.

Why ORPO matters for on-premises AI

Reducing the alignment pipeline to one stage with no reference model in memory, ORPO eases preference alignment on limited in-house GPU capacity, also cutting training time and the number of intermediate models to manage. Preference data is prepared in pairs as for DPO and can be labelled by the organisation's own experts. Proposed in 2024, it is best compared with established methods such as DPO on the organisation's own tasks.

ON-PREMISES EXAMPLE

An insurer aligns its customer correspondence assistant with ORPO on a single-GPU in-house server, using pairs where agents marked which of two drafts they preferred; with no reference model, full-parameter training fits a larger model in the same memory.

Common questions

How does ORPO differ from DPO?

DPO usually needs supervised fine-tuning first and uses a reference model throughout. ORPO merges the two stages and needs no reference model.

What data does ORPO need?

A preferred and a rejected answer for each prompt, the same structure as for DPO.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.