KTO: Model Alignment as Prospect Theoretic Optimization
About
Kahneman & Tversky's $\textit{prospect theory}$ tells us that humans perceive random variables in a biased but well-defined manner (1992); for example, humans are famously loss-averse. We show that objectives for aligning LLMs with human feedback implicitly incorporate many of these biases -- the success of these objectives (e.g., DPO) over cross-entropy minimization can partly be ascribed to them belonging to a family of loss functions that we call $\textit{human-aware losses}$ (HALOs). However, the utility functions these methods attribute to humans still differ from those in the prospect theory literature. Using a Kahneman-Tversky model of human utility, we propose a HALO that directly maximizes the utility of generations instead of maximizing the log-likelihood of preferences, as current methods do. We call this approach KTO, and it matches or exceeds the performance of preference-based methods at scales from 1B to 30B, despite only learning from a binary signal of whether an output is desirable. More broadly, our work suggests that there is no one HALO that is universally superior; the best loss depends on the inductive biases most appropriate for a given setting, an oft-overlooked consideration.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Code Generation | HumanEval | -- | 1036 | |
| Instruction Following | IFEval | IFEval Accuracy83 | 625 | |
| Instruction Following | AlpacaEval 2.0 | Win Rate55.5 | 507 | |
| Multi-turn Dialogue Evaluation | MT-Bench | Overall Score7 | 447 | |
| Mathematical Reasoning | MathQA | Accuracy75.8 | 305 | |
| Multi-hop Question Answering | HotpotQA (test) | F146.9 | 255 | |
| Mathematical Reasoning | GSM8K | Math Score80 | 197 | |
| Graduate-level Question Answering | GPQA | Accuracy34 | 184 | |
| Code Generation | HumanEval | Pass@163 | 171 | |
| Multi-task Language Understanding | MMLU | MMLU Score71 | 112 |