Post-training alignment of large language models has long relied on pairwise comparison datasets. Methods such as Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO) assume access to curated pairs , where a human or automated judge explicitly marks completion as superior to for a given prompt . In production environments, however, collecting paired preferences is logistically complex, expensive, and artificial. Real-world telemetry predominantly generates unpaired binary signals: users upvote or downvote an answer, accept or reject a code suggestion, or abandon a conversational turn.
Kahneman-Tversky Optimization (KTO), introduced by Ethayarajh et al. (2024), reformulates language model alignment through the lens of behavioral economics. Rather than maximizing the log-likelihood of preference pairs under a Bradley-Terry model, KTO directly maximizes the subjective utility of individual generations based on Daniel Kahneman and Amos Tversky's prospect theory. By treating alignment as utility maximization under cognitive heuristics (including loss aversion and reference-point dependence), KTO achieves alignment parity with DPO across model scales from 1B to 30B parameters while training exclusively on binary, unpaired feedback.
1. The Preference Bottleneck and Bradley-Terry Assumptions
Standard preference alignment algorithms ground their optimization in the Bradley-Terry preference model (Bradley and Terry, 1952). Given prompt and two candidate responses , the probability that is preferred to is formalized as:
where is the standard logistic function, and represents the latent, ground-truth scalar reward of the completion.

In classical RLHF, a proxy reward model is parameterized to minimize negative log-likelihood on preference pairs:
The language model is subsequently updated using policy gradient algorithms (such as PPO) against the reward model with a Kullback-Leibler (KL) divergence penalty to prevent policy collapse relative to reference model :
DPO simplified this two-stage process by leveraging the closed-form analytical solution of the optimal policy:
where $Z(x) = \sum_y \pi_{\text{ref}}(y \mid x) \exp\left(\frac{1}{\beta} r^*(x, y)\right)$ is the partition function. Substituting this formulation directly into the Bradley-Terry objective eliminates the reward model entirely:
While computationally efficient, DPO remains strictly tied to paired data. It cannot natively update model parameters when presented with an isolated positive example (such as an approved response) or an isolated negative example (such as a toxic hallucination) without artificially pairing it against a counterfactual baseline.
2. Prospect Theory and Human-Aware Losses (HALOs)
To understand how humans evaluate outputs without explicit comparisons, Ethayarajh et al. draw from cumulative prospect theory (Tversky and Kahneman, 1992). Prospect theory models decision-making under uncertainty, establishing three core tenets of human judgment:
- Reference Dependence: Utility is evaluated not in terms of absolute outcomes, but as gains or losses relative to a neutral reference point .
- Diminishing Sensitivity: The marginal perceived value of both gains and losses decreases as their magnitude grows (concavity in the gain regime, convexity in the loss regime).
- Loss Aversion: Losses loom larger than gains of equal objective magnitude; the value function is steeper for losses than for gains.
Tversky and Kahneman parameterized this subjective value function as:
Empirical estimates across human subjects typically place (governing risk curvature) and (the loss aversion multiplier).
Defining the HALO Framework
Ethayarajh et al. generalize alignment objectives into a broader mathematical family called Human-Aware Losses (HALOs). Let the implied implicit reward of a model generation be:
where measures the decrease in conditional surprisal in nats when transitioning from to .
Let denote a reference distribution over completions, and represent a monotonic value function that is concave on . A loss function is defined as a HALO if there exist direction indicators such that:
Ethayarajh et al. prove that both DPO and PPO-Clip belong to the HALO family. In DPO, the reference distribution places all probability mass on the dispreferred output , setting . However, treating a single paired output as the universal reference point causes severe distortions when preferences are noisy or non-transitive.
3. Mathematical Formulation of KTO
KTO derives an alignment objective directly from prospect theory without relying on paired counterfactuals. Instead of comparing two completions and side-by-side, KTO assumes that a human evaluates an individual output relative to an expected baseline representing the entire distribution of possible model outputs for prompt .
The Reference Point
Under KTO, the human reference point for prompt is defined as the expected implicit reward under the current policy distribution:
The reference point is therefore the KL divergence between the current policy and the reference model. If the policy shifts its distribution broadly without improving alignment, rises proportionally, penalizing unconditional reward inflation.
The Logistic Value Function
To avoid numerical instability from polynomial exponents while preserving the characteristic S-curve of prospect theory, KTO replaces the power law with the logistic function :
Here, dictates the risk curvature, while and serve as loss aversion weights for desirable and undesirable examples, respectively.
The KTO Loss Objective
The complete KTO loss function minimizes the expected shortfall below maximum subjective utility:
Written explicitly across binary subsets, where for desirable examples and for undesirable examples:
Since , the objective can also be expressed directly as:
During backpropagation, gradients are not propagated through ; the reference term acts as a detached baseline that adaptively centers the loss saturation regime.
4. Gradient Dynamics and Saturation Control
Differentiating the KTO loss with respect to parameters illuminates its stability characteristics. Let if is desirable and if is undesirable. Let . The parameter gradient is:
This gradient yields several critical structural properties:
- Directional Updates: For desirable completions (), the negative sign increases the log-likelihood of tokens under . For undesirable completions (), the positive sign suppresses token log-likelihoods.
- Gradient Vanishing at Extreme Rewards: Because the derivative contains the term , the update weight approaches zero as the implicit reward margin .
Gradient Weight: σ(βz)(1 - σ(βz))
▲
0.25 ┼ ╭───╮
│ ╭╯ ╰╮
│ ╭╯ ╰╮
0.10 ┼ ╭╯ ╰╮
│ ╭─╯ ╰─╮
0.00 ┴────┴───────────────┴────►
-4 -2 0 2 4
Margin (βz)This saturation property protects optimization against noisy, contaminated, or extreme outliers. If a training example contains a mislabeled positive with an irreconcilably low probability, or an extreme degenerate output, its gradient contribution vanishes rather than destabilizing the policy network.
5. Practical Reference Point Estimation in Microbatches
Computing the exact reference point on every forward pass would require generating on-policy completions from , which reintroduces the substantial compute overhead of online RL.
To circumvent this bottleneck, KTO estimates empirically within each training microbatch of size . For a microbatch of prompt-response pairs , the responses are cyclically shifted by index to create mismatched pairs . The shared batch reference estimator is computed as:
Why use mismatched pairs instead of ?
- Aligned dataset responses are selected specifically for high or low quality, creating extreme reward magnitudes that bias the expectation.
- Mismatched responses reflect arbitrary textual continuations for prompt , providing an unbiased estimate of background model surprisal.
- The non-negative clamping introduces a slight positive bias while significantly suppressing estimator variance across distributed worker nodes.
When KTO is applied immediately after supervised fine-tuning (SFT) on the same dataset, the policy distribution is already close to the reference distribution, allowing practitioners to safely set without sacrificing convergence stability.
6. Theoretical Properties: Utility vs. Preference Likelihood
Ethayarajh et al. establish two formal theorems showing why optimizing prospect-theoretic utility outperforms maximizing preference likelihood.
Disconnect Between Preference Likelihood and Human Utility
In DPO and Bradley-Terry models, two reward functions $r_a^(x, y)$ and $r_b^(x, y) = r_a^*(x, y) + h(x)$ belong to the same equivalence class because any prompt-dependent offset cancels out when computing pairwise margins:
Consequently, $r_a^$ and $r_b^$ induce the exact same optimal policy in Bradley-Terry modeling.
However, Ethayarajh et al. prove (Theorem 4.2) that under a nonlinear human value function , $r_a^$ and $r_b^$ induce completely different human utility distributions unless . Maximizing pairwise preference likelihood does not guarantee the maximization of subjective human utility across varying prompts.
Robustness to Intransitive and Contradictory Feedback
Real-world feedback contains frequent contradictions. Consider a prompt with two valid responses and . Suppose a majority of evaluators prefer , while a minority prefer .
Ethayarajh et al. prove (Theorem 4.3) that if the reference model strongly favors the minority output such that:
then the optimal DPO policy will produce the minority-preferred completion . In contrast, under a loss-neutral value function (), the optimal KTO policy is guaranteed to produce the majority-preferred completion .
7. Hyperparameters and Implementation Guidelines
- Learning Rate:
5e-6to1e-5with AdamW. KTO implicit rewards have smaller magnitudes than pairwise DPO margins, requiring 2x to 10x higher learning rates. - Risk Curvature ():
0.05to0.10for models post-SFT;0.10to0.50when aligning base pretrained models directly. - Loss Aversion (): Scaled according to class ratio. Set such that , where are the counts of positive and negative samples.
- Microbatch Size: (effective batch size 32 to 128) to enable cyclic permutation for the reference estimator.
Handling Severe Data Imbalance
In production logs, negative signals often vastly outnumber positive signals (or vice versa). In standard DPO, an unpaired ratio requires synthesizing artificial pairs or discarding excess data. KTO handles class imbalance by scaling and .
For example, if an application logs 1 positive thumbs-up for every 10 negative thumbs-down signals (), setting and maintains the balanced gradient condition:
Empirical evaluations show that models aligned with KTO retain full benchmark accuracy even when 90% of positive examples are randomly discarded, demonstrating resilience against asymmetric real-world telemetry.
Sources
- Ethayarajh, K., Xu, W., Muennighoff, N., Jurafsky, D., and Kiela, D. (2024). KTO: Model Alignment as Prospect Theoretic Optimization. International Conference on Machine Learning (ICML). arXiv:2402.01306
- Tversky, A. and Kahneman, D. (1992). Advances in Prospect Theory: Cumulative Representation of Uncertainty. Journal of Risk and Uncertainty, 5(4), 297–323. Springer DOI:10.1007/BF00122574
- Rafailov, R., Sharma, A., Mitchell, E., Ermon, S., Manning, C. D., and Finn, C. (2023). Direct Preference Optimization: Your Language Model Is Secretly a Reward Model. NeurIPS. arXiv:2305.18290
- Christiano, P. F., Leike, J., Brown, T., Martic, M., Legg, S., and Amodei, D. (2017). Deep Reinforcement Learning from Human Preferences. NeurIPS. arXiv:1706.03741
- Bradley, R. A. and Terry, M. E. (1952). Rank Analysis of Incomplete Block Designs: I. The Method of Paired Comparisons. Biometrika, 39(3/4), 324–345. JSTOR:2334029



