KTO: Model Alignment as Prospect Theoretic Optimization
TL;DR. Prospect theory says people value outcomes relative to a reference point and feel losses more than gains. The paper argues that DPO and PPO-clip already behave like such human-aware losses (HALOs). It then designs one directly. KTO (Kahneman–Tversky Optimisation) needs only a label per output, desirable or undesirable, rather than a preferred/rejected pair. It matches or beats DPO from 1B to 30B parameters.
Key idea
Section titled “Key idea”Use DPO’s implied reward and a reference point . The value of an example is
A good output is pushed above the reference point and a bad one below it, with a saturating sigmoid, so outliers barely matter. The weights handle class imbalance. The recommended rule is , which gives loss aversion.
Results. SFT+KTO roughly matches SFT+DPO across Pythia and Llama models from 1B to 30B. Without SFT, KTO alone beats DPO alone for Llama 7B/13B/30B, and DPO’s output lengths balloon. Swapping DPO for KTO on Zephyr-β-SFT with UltraFeedback adds 13.5 points on GSM8K. Discarding 90% of the desirable examples (λ_D = 13.33) still beats DPO on Llama-7B. Using one output per input (72% less data) still beats DPO and the official Mistral-7B-Instruct. Recommended defaults are β = 0.1 and a learning rate of about 5e-6, which is 2–10× higher than typical DPO settings. These results come from a later revision of the paper. Worked numbers that compare KTO with the other offline losses are on the DPO family hub.
Connections
Section titled “Connections”- DPO (source of the implied reward), DPO family hub.
- Reward modelling hub (pairwise vs pointwise feedback).
- ORPO and SimPO (other DPO variants that change the inputs or drop the reference model).
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
With β = 0.1, λ_D = λ_U = 1 and a reference point z0 = 0.5, compute the KTO loss for a desirable output whose implied reward r_θ = log(π_θ/π_ref) is 2, and for an undesirable output whose implied reward is −3. Which example has the larger gradient, and why?
What a strong answer covers
- Desirable: v = σ(0.1·(2 − 0.5)) = σ(0.15) ≈ 0.537, so the loss is 1 − 0.537 ≈ 0.463.
- Undesirable: v = σ(0.1·(0.5 − (−3))) = σ(0.35) ≈ 0.587, so the loss is ≈ 0.413.
- The gradient of σ is σ(1 − σ), which peaks at 0 and shrinks as the argument grows. The desirable example (argument 0.15) gets a slightly larger gradient than the undesirable one (0.35).
- Examples already far past the reference point barely move the model. Prop. 4.1: KTO effectively ignores examples whose implied reward is extreme.
- Mechanism
Explain the role of the reference point z0 in KTO: how it is estimated, why gradients are not propagated through it, and what the paper's ablation shows when it is removed.
What a strong answer covers
- z0 approximates KL(π_θ ‖ π_ref). In practice it is estimated from mismatched pairs inside the microbatch (x_i with the output of x_j), clamped at 0, so microbatch size must be at least 2.
- It is treated as a constant (no backprop) so it acts as a baseline. The model cannot raise desirable rewards just by inflating the KL estimate.
- It ties the two kinds of examples together: a desirable output is only rewarded if its log-ratio beats the typical drift, an undesirable one only if it falls below it.
- Removing z0 costs 3.6 points on BBH and 4.0 on GSM8K. Replacing the saturating σ value with −log σ costs much more (−9.4 and −11.0).
- Critique
KTO's headline is that binary thumbs-up/down data can match paired-preference DPO. Identify what the comparisons actually control for and design an experiment that fairly tests binary feedback against pairs on the same annotation budget.
What a strong answer covers
- Most comparisons split existing preference pairs into one desirable and one undesirable example, so KTO sees the same information as DPO and is not truly unpaired.
- The one-y-per-x Mistral run (72% less data) and the 90%-desirable-dropped run are closer to real binary feedback, but each covers a single model and dataset.
- Hyperparameters differ: KTO uses learning rates 2–10× higher than DPO, so check that DPO received an equal tuning budget.
- Fair test: fix the number of human judgments, collect thumbs labels and pairwise labels on the same prompts, train KTO and DPO with tuned learning rates and β, and report GSM8K, AlpacaEval LC and length.