Kawin Ethayarajh
Stanford University (first author was an intern at Contextual AI)
Winnie Xu
Contextual AI
Niklas Muennighoff
Contextual AI
Dan Jurafsky
Stanford University (first author was an intern at Contextual AI)
Douwe Kiela
Stanford University (first author was an intern at Contextual AI)
Contextual AI
Correspond to: Kawin Ethayarajh [email protected]
Keywords: Machine Learning, ICML
Kahneman & Tversky's prospect theory tells us that humans perceive random variables in a biased but well-defined manner [1]; 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 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.
Executive Summary: Aligning large language models (LLMs) with human preferences is essential for making their outputs more helpful, accurate, and ethical, but current methods rely on costly pairwise preference data, which limits scalability in real-world applications. As LLMs grow larger and are deployed more widely, there is an urgent need for alignment techniques that use simpler, more abundant feedback forms, such as basic approval or disapproval of outputs, to reduce expenses and enable faster iteration without sacrificing performance.
This document evaluates whether alignment can be achieved effectively using binary feedback—signals indicating if an output is desirable or not—rather than complex preferences, by drawing on prospect theory, a framework from behavioral economics that explains human biases in evaluating gains and losses. It demonstrates a new method called Kahneman-Tversky Optimization (KTO) that optimizes LLMs directly for human-like utility, treating outputs as uncertain outcomes relative to a baseline.
The authors analyzed existing alignment methods through prospect theory, identifying a class of "human-aware losses" (HALOs) that incorporate human biases like loss aversion. They tested these on LLMs from 1 billion to 30 billion parameters, using datasets like Anthropic Helpful-Harmless, OpenAssistant, and Stanford Human Preferences, which include over 100,000 examples from 2020–2023. Key experiments involved supervised finetuning followed by alignment, with performance judged via automated metrics (e.g., GPT-4 comparisons) and human evaluations on tasks like math reasoning and instruction-following. Assumptions included converting preference data to binary labels and using a simplified model of human value functions for stability.
The most important findings are: First, KTO matches or outperforms Direct Preference Optimization (DPO), the leading preference-based method, across model sizes from 1B to 30B, achieving win rates 5–10% higher on benchmarks like GSM8K math problems (e.g., 60% accuracy vs. 46% for DPO) and AlpacaEval instruction tasks. Second, KTO handles data imbalances well, maintaining DPO-level performance with up to 90% fewer desirable examples, unlike DPO which degrades sharply. Third, at larger scales (13B+), KTO can skip the initial supervised finetuning step entirely without quality loss, while DPO requires it and risks overly long outputs. Fourth, a simple offline variant of another method (PPO) with dummy rewards nearly matches DPO up to 13B but fails at 30B due to instability, highlighting KTO's robustness. Fifth, human evaluations confirm KTO's edge, with 73% win rates over baselines vs. 62% for DPO.
These results mean that alignment can shift from expensive preference collection to cheaper binary signals, cutting costs by 50–90% while improving outcomes on noisy real-world data, where preferences often conflict. KTO reduces risks like model drift or bias amplification by better handling inconsistencies, potentially leading to safer, more reliable LLMs in applications like chatbots or decision aids. This challenges prior emphasis on reward modeling, showing that built-in human biases in the optimization process drive much of the success, and it outperforms expectations by not needing paired data.
Decision-makers should adopt KTO for projects with binary or imbalanced feedback, starting with hyperparameters like a learning rate of 5e-6 and risk aversion factor of 0.1, as it simplifies pipelines and boosts performance on diverse tasks. For preference-heavy setups, compare KTO-converted data against DPO; KTO wins if noise or contradictions are high, but DPO may suit clean data with less underfitting risk—trade-offs include KTO's slight added compute for reference estimation. Next steps include piloting KTO on proprietary datasets, then scaling to multimodal models; further analysis is needed on custom value functions per domain to refine HALOs.
Limitations include reliance on prospect theory's monetary assumptions, which may not fully capture text judgments, and experiments on English-centric datasets that could overlook cultural biases. Confidence is high for the tested scales and tasks (supported by statistical significance, p<0.05), but caution is advised for non-instruction domains or very small models under 1B, where gains are minimal—more diverse, real-world deployments would strengthen generalizability.
Section Summary: Aligning large language models with human feedback has improved their helpfulness and ethics, but top methods like RLHF and DPO rely on hard-to-obtain preference data comparing good and bad outputs. Drawing from prospect theory, which describes human biases in decision-making such as greater sensitivity to losses than gains, the authors propose "human-aware losses" that embed these biases to explain why existing methods succeed and introduce a new class of such losses. Their method, Kahneman-Tversky Optimization (KTO), uses simple yes-or-no feedback on outputs, which is easier and cheaper to gather, and it matches or beats DPO's performance across model sizes from 1 billion to 30 billion parameters while handling data imbalances and sometimes skipping initial training steps.
Aligning generative models with human feedback has been successfully used to make generations more helpful, factual, and ethical, among other desiderata ([2, 3]). For LLMs, alignment methods such as RLHF and DPO have consistently proven to be more beneficial than doing supervised finetuning (SFT) alone. However, human feedback is often discussed only in the context of preferences (e.g., output $y_w \succ y_l$ for input $x$), even though it can take many forms (e.g., approval/disapproval of $y$ given $x$). This is because preferences, despite being a kind of data that is relatively scarce and expensive to collect in practice ([4]), are required by the alignment methods shown to work best—RLHF ([5]) and DPO ([6]).
To understand why these methods work so well, and whether feedback needs to be in preference form, we frame alignment through the lens of prospect theory [7, 1]. Prospect theory explains why humans make decisions about uncertain events that do not maximize their expected value. It formalizes how humans perceive random variables in a biased but well-defined manner; for example, relative to some reference point, humans are more sensitive to losses than gains, a property called loss aversion. We show that popular alignment methods such as DPO and PPO-Clip ([8]) implicitly model some of these biases, helping explain their success independently of the data used (§ 3.2). We then propose a more general class of such loss functions called human-aware losses (HALOs).[^3]
[^3]: We use the term human-aware to draw an analogy with how hardware-aware methods benefit from being designed around hardware limitations ([9]), not to claim that a simple loss function is fully aware of human behavior.
![**Figure 1:** The utility that a human gets from the outcome of a random variable, as implied by different human-aware losses (HALOs). Notice that the implied value functions share properties such as loss aversion with the canonical human value function in prospect theory ([1]).](https://ittowtnkqtyixxjxrhou.supabase.co/storage/v1/object/public/public-images/3mtcct7y/utility.png)
Although it is impossible to say that HALOs are categorically better than non-HALOs, we find that among existing methods, those that meet the definition of a HALO work better than those that do not (§ 3.3). We find that DPO performance can even be matched at most scales by running an offline PPO variant on dummy +1/-1 rewards, suggesting that preference data might not be needed if the inductive bias in the loss function is good enough. However, despite the surprising success of this simple baseline, it significantly lags behind DPO at the 30B LLM scale and suffers from hyperparameter sensitivity, making it difficult to use.
Taking a more principled approach, we derive a HALO using the model of human utility that Kahneman & Tversky proposed to describe how humans make decisions about uncertain monetary outcomes ([1]). This approach, which we call Kahneman-Tversky Optimization (KTO), directly maximizes the utility of generations instead of maximizing the log-likelihood of preferences, as most current methods do (§ 4.1). KTO only requires a binary signal of whether an output is desirable or undesirable for an input. This data is more abundant, cheaper, and faster to collect in the real world, making it easier to scale alignment in production and rapidly iterate on models. We find that:
GPT-4.[^2]: Our code is available on Github; models are on Huggingface.
The intent behind KTO was that even if the model learns from a weaker signal, we could compensate with the higher volume of data that could be accessed in practice; the fact that KTO can match and even outperform DPO on the same data is thus surprising. We conclude by discussing some theoretical explanations for this phenomenon (§ 4.4). Despite the success of KTO in our experiments, our work ultimately suggests that there is no one HALO that is universally superior; the best HALO depends on the inductive biases appropriate for a given setting, and this choice should be made deliberately instead of defaulting to any one loss.
Section Summary: Large language models are typically trained in three main stages: pretraining on vast amounts of text to predict the next word, supervised finetuning on task-specific data like instructions and responses to make outputs more relevant, and reinforcement learning from human feedback (RLHF) to align the model with human preferences. In RLHF, a reward model is trained on pairs of preferred and dispreferred responses to an input, then used to optimize the model while preventing it from straying too far from its finetuned version, often via algorithms like PPO, though this process can be slow and unstable. As an alternative, methods like Direct Preference Optimization simplify this by using a direct mathematical formula to boost preferred outputs without needing reinforcement learning.
For a detailed survey, please see Appendix A. In brief, LLMs are traditionally trained in three stages ([2]):
Pretraining
Given a large corpus, train the model to maximize the log-likelihood of the next token conditioned on the preceding text. Let $\pi_0$ denote the pretrained model.
Supervised Finetuning (SFT)
Finetune the model to predict the next token on data that is more relevant to the downstream task. Often, such data will comprise instructions and an appropriate response (i.e., instruction finetuning). Let $\pi_\text{ref}$ denote the finetuned model.
RLHF
Given a dataset $\mathcal{D}$ of preferences $(x, y_w, y_l)$ —where $x$ is an input, $y_w, y_l$ are the preferred and dispreferred outputs (i.e., $y_w \succ y_l$ for $x$), and $r^*$ is the “true” reward function underlying the preferences—it is first assumed that the probability that $y_w$ is preferred to $y_l$ can be captured with a specific function class, typically a Bradley-Terry model ([10]). Where $\sigma$ is the logistic function:
$ p^*(y_w \succ y_l|x) = \sigma(r^*(x, y_w) - r^*(x, y_l))\tag{1} $
Since getting the true reward from a human would be intractably expensive, a reward model $r_\phi$ learns to serve as a proxy, done by minimizing the negative log-likelihood of the human preference data:
$ \mathcal{L}R(r\phi) = \mathbb{E}{x, y_w, y_l \sim D}[- \log \sigma(r\phi(x, y_w) - r_\phi(x, y_l))] $
But solely maximizing the reward might come at the expense of desiderata such as generating grammatical text. To avoid this, a KL divergence penalty is introduced to restrict how far the language model can drift from $\pi_\text{ref}$. Where $\pi_\theta$ is the model we are optimizing, the optimal model $\pi^*$ is that which maximizes
$
\begin{split}
\mathbb{E}{x \in D, y \in \pi\theta} [r_\phi(x, y)]
& - \beta D_{\text{KL}}(\pi_\theta(y|x) | \pi_{\text{ref}}(y|x))
\end{split}\tag{2}
$
where $\beta > 0$ is a hyperparameter. Since this objective is not differentiable, we need to use an RL algorithm like PPO ([8]).
However, RLHF is often slow (largely because of having to sample generations) and quite unstable in practice (especially in a distributed setting). For this reason, recent work has focused on designing closed-form losses that maximize the margin between the preferred and dispreferred generations. In particular, Direct Preference Optimization (DPO) ([6]) has emerged as a popular alternative as it allows the same optimal policy as in RLHF to be recovered under certain conditions:
$ \begin{split} & \mathcal{L}\text{DPO}(\pi\theta, \pi_\text{ref}) = \mathbb{E}{x, y_w, y_l \sim D} \ & \left[-\log \sigma \left(\beta \log \frac{\pi\theta(y_w|x)}{\pi_\text{ref}(y_w|x)} - \beta \log \frac{\pi_\theta(y_l|x)}{\pi_\text{ref}(y_l|x)} \right) \right] \end{split}\tag{3} $
Section Summary: This section explains AI alignment techniques through prospect theory, a psychological framework showing how people make decisions under uncertainty by overvaluing losses and curving their sense of gains relative to a baseline, rather than strictly maximizing expected outcomes. It focuses on a "value function" that captures human-like sensitivity to relative wins and losses, applying it to language models by defining "human-aware losses" (HALOs) that reward desirable outputs more strongly while penalizing undesirable ones against an expected reference point derived from the model's predictions. Experiments show these HALO methods, like DPO, outperform others in producing high-quality responses that even beat supervised baselines, especially in larger models.
To understand why alignment methods work so well, we now frame them through the lens of prospect theory ([1]). Prospect theory explains why, when faced with an uncertain event, humans make decisions that do not maximize their expected value. For example, because humans are loss-averse, given a gamble that returns $100 with 80% probability and $60 with 20% probability, a person might accept $60 to avoid the gamble, despite their certainty equivalent of $60 being less than the expected value of $80.
In prospect theory, human utility depends on a value function and a weighting function:[^4]
[^4]: Cumulative prospect theory is the full name of the expanded theory we dicuss here ([1]).
########## {caption="Definition"}
A value function $v: \mathcal{Z} \to \mathbb{R}$ maps an outcome $z$, relative to some reference point $z_0$, to its perceived (or subjective) value. For example, these functions capture the fact that humans tend to be more sensitive to relative losses than relative gains of the same magnitude.
########## {caption="Definition"}
A weighting function $\omega$ is the derivative of a capacity function that maps cumulative probabilities to perceived cumulative probabilities. These functions capture, for example, the fact that humans tend to overestimate the chance of rare events. Let $\omega_z$ denote the weight placed on outcome $z$.
########## {caption="Definition"}
The utility of a random variable $Z$ is a function of its outcomes: $u(Z) \triangleq \sum_{z \in Z} \omega_z v(z - z_0)$.
However, because humans do not see the full probability distribution of an LLM, weighting functions are not salient to this discussion; we will focus only on value functions. Using experiments that presented real humans with monetary gambles and asked for their certainty equivalent, [1] proposed the following functional form for human value:
$ v(z; \lambda, \alpha, z_0) = \begin{cases} (z - z_0)^\alpha & \text{if } z \geq z_0\ -\lambda(z_0 - z)^\alpha & \text{if } z < z_0 \ \end{cases}\tag{4} $
where the median value of hyperparameter $\alpha = 0.88$ and $\lambda = 2.25$ across individuals. $\alpha$ controls the curvature of the function, which reflects risk aversion; $\lambda$ controls its steepness, which reflects loss aversion. While the shape of the median Kahneman-Tversky value function is illustrated in Figure 1, it should be noted that it varies across individuals ([1]). There are also other functional forms for the value function that have been proposed in later work ([11]). The salient qualities of a value function are: the existence of a reference point that is used to get the relative gain or loss; concavity in relative gains (i.e., diminishing sensitivity away from $z_0$); and loss aversion (i.e., greater sensitivity to losses).
########## {caption="Definition: HALOs"}
Let $\theta$ denote the trainable parameters of the model $\pi_\theta: \mathcal{X} \to \mathcal{P}(\mathcal{Y})$ being aligned, $\pi_\text{ref}$ the reference model, $l: \mathcal{Y} \to \mathbb{R}^+$ a normalizing factor, and $r_\theta(x, y) = l(y) \log [\pi_\theta(y|x) / \pi_\text{ref}(y|x)]$ the implied reward. Where $Q(Y'|x)$ is a reference point distribution over $\mathcal{Y}$ and $v: \mathbb{R} \to \mathbb{R}$ is non-decreasing everywhere and concave in $(0, \infty)$, the human value of $(x, y)$ is
$ v(r_\theta(x, y) - \mathbb{E}{Q}[r\theta(x, y')]) $
A function $f$ is a human-aware loss for $v$ if $\exists\ a_{x, y} \in {-1, +1}$ such that:
$ \begin{split} f(& \pi_\theta, \pi_\text{ref}) = \ & \mathbb{E}{x, y\sim\mathcal{D}}[a{x, y} v(r_\theta(x, y) - \mathbb{E}{Q}[r\theta(x, y')])] + C_\mathcal{D} \end{split} $
where $\mathcal{D}$ is the feedback data and $C_\mathcal{D} \in \mathbb{R}$ is a data-specific constant.
In a classic prospect theory experiment, $r_\theta$ would be the dollar amount assigned to each outcome; here, $r_\theta$ is measured in nats, as the decrease in conditional surprisal when going from $\pi_\text{ref}$ to $\pi_\theta$, normalized according to $l$. This follows naturally from the next-token prediction objective used to pretrain and finetune LLMs. As $\pi_\theta$ is aligned, we would expect $r_\theta$ to grow increasingly positive for desirable outputs and increasingly negative for undesirable outputs.
Another perspective on the reward comes from the RLHF objective in Equation (2). The policy that maximizes this objective has a closed-form expression ([12, 13]); where $Z(x)$ is the partition function:
$ \pi^*(y|x) = \frac{1}{Z(x)} \pi_{\text{ref}}(y|x) \exp\left(\frac{1}{\beta} r^*(x, y)\right) $
Letting $l(\cdot) = \beta$, we get
$ r_{\theta^*}(x, y) = r^*(x, y) - \beta \log Z(x)\tag{5} $
Under $\theta^*$, the HALO-defined reward is just the optimal reward shifted by an input-specific term, meaning that $r_{\theta^*}$ is in the same equivalence class as $r^*$ and would also induce the optimal policy $\pi^*$ (Lemma 1, [6]).

The reference point in a HALO is the expected reward from the human's perspective, where $Q(Y'|x)$ describes the examples that are used to construct a baseline. We require that the value function be concave in gains but not necessarily convex in losses—unlike the canonical Kahneman-Tversky value function—because a minority of individuals are risk-averse in both the gain and loss regime, resulting in concavity everywhere ([7]).
########## {caption="Theorem 1"}
DPO and PPO-Clip are human-aware losses.
The proof is deferred to Appendix B. In Figure 1, we can see this more intuitively by plotting the value function (i.e., the implied human utility).
It is difficult to answer whether being a HALO is useful, since both HALOs and non-HALOs are diverse function classes, but we attempt to do so by comparing popular methods that qualify as a HALO with those that do not:
$ \begin{split} & \mathcal{L}\text{cal}(\pi\theta) = \mathbb{E}{x, y_w, y_l \sim D}\left[\max \left(0, \delta - \log \frac{\pi\theta(y_w|x)}{\pi_\theta(y_l|x)} \right) \right] \ & \mathcal{L}\text{reg}(\pi\theta, \pi_{\text{ref}}) = \mathbb{E}{x \sim D, y \sim \pi\text{ref}(x)}[- \log \pi_\theta(y|x)] \ & \mathcal{L}\text{SLiC}(\pi\theta, \pi_{\text{ref}}) = \mathcal{L}\text{cal}(\pi\theta) + \lambda_\text{reg} L_\text{reg}(\pi_\theta, \pi_{\text{ref}}) \ \end{split} $
$ \begin{split} \mathcal{L}\text{PPO (offline)} =& -\mathbb{E}{x, y, t \sim D}[\min(q_\theta A(x{:}y_{<t}, y_t), \ &\text{clip}(q_\theta, 1 - \epsilon, 1 + \epsilon) A(x{:}y_{<t}, y_t))] \end{split} $
where $q_\theta = \frac{\pi_\theta (y_t|x{:}y_{<t})}{\pi_\text{old}(y_t|x{:}y_{<t})}$ and $A(x{:}y_{<t}, y_t)$ is the per-token advantage (i.e., the surplus benefit from producing a given token in a given state).
PPO is an online algorithm—generations are sampled from the current model, judged by a reward model, and then used to update the current version.
However, for a fair comparison with offline methods, we consider a variant of PPO that is only fed offline data.
Because RLHF is also quite unstable in a distributed setting, we never update $\pi_\text{old}$ and keep it as $\pi_\text{ref}$, instead clipping less conservatively than we traditionally would. [16] found that these changes, along with treating the entire output sequence as a single action, greatly improves stability.
However, since RLHF traditionally uses token-level advantages, we omit the third change and only preserve the first two.
The PPO-Clip loss is unchanged and remains a HALO (Theorem 1).
Calling this method PPO is somewhat imprecise, because it is offline and takes only one step, but to avoid introducing too many new terms, we will call this PPO (offline).
Instead of using learned rewards, we simplify even further and use dummy +1/-1 rewards[^1] for $y_w$ and $y_l$ instead.
[^1]: Note that +1/-1 do not refer to the HALO-implied rewards, but rather the rewards used for the advantage $A(x{:}y_{<t}, y_t)$ calculation.
Further details on the implementation of this method can be found in Appendix C.
Experimental Setup
We compare these baselines on two model families, Pythia-1.4B, 2.8B, 6.9B, 12B ([17]) and Llama-7B, 13B, 30B ([18]). This permits us to see how LLM alignment scales within a model family (Llama-2 lacks a 30B model, hence our use of Llama). Later experiments (§ 4.3) are done on Mistral-7B derivatives ([19]) and Llama-3 ([20]). The models are trained on a combination of Anthropic-HH ([21]), OpenAssistant ([22]), and SHP ([23]).
All models are aligned under identical settings on the same data, save for hyperparameters unique to them. Similar to [6], the target sequences for SFT are a subset of ${y_w}$. We use GPT-4-0613 to judge whether the aligned model’s response is better than the SFT target for a given test input with respect to helpfulness, harmlessness, and conciseness, a now standard practice ([24, 25]).[^5] Note that while the SFT target is considered a desirable output for $x$, it is by no means the best output, meaning that an aligned model can certainly achieve a winrate above 50%, although this is difficult given that many of the target sequences are human-written.
[^5]: We validate that GPT-4 judgments concur with human judgments in Appendix D.
In Figure 2, we see the results of this analysis:
Section Summary: This section introduces Kahneman-Tversky Optimization (KTO), a method inspired by human psychology's model of value, where people feel losses more intensely than equivalent gains, to better align AI models with human preferences using just simple good or bad labels on outputs. Instead of relying on complex preference rankings, KTO directly optimizes for overall utility by adjusting the model's responses relative to a reference point, incorporating hyperparameters to control risk aversion and separate handling of desirable versus undesirable examples. Practical tweaks, like using mismatched output pairs for efficient calculations, help stabilize training, and results show KTO performing competitively on tasks like evaluation benchmarks with models such as Llama-3 and Qwen.
The surprising success of offline PPO with dummy +1/-1 rewards suggests that—with the right inductive biases—a binary signal of good/bad generations may be sufficient to reach DPO-level performance, even if the offline PPO approach itself was unable to do so past a certain scale (§ 3.3). Taking a more principled approach, we now derive a HALO using the Kahneman-Tversky model of human value, which allows us to directly optimize for utility instead of maximizing the log-likelihood of preferences.
: Table 1: Recommended hyperparameter settings for different losses and models when aligned on UltraFeedback, evaluated on the benchmarks discussed in § 4.3. The hyperparameter sweeps were done with AdamW, an effective batch size of 32, and $\lambda_D = \lambda_U = 1$. Depending on your task and ratio of desirable:undesirable examples, the optimal choice of $\lambda_D, \lambda_U$ might be significantly different.
| Model | Method | LR | $\beta$ | AlpacaEval (LC) $\uparrow$ | BBH $\uparrow$ | GSM8K (8-shot) $\uparrow$ |
|---|---|---|---|---|---|---|
| Llama-3 8B | SFT+KTO | 5e-6 | 0.05 | 10.59 | 65.15 | 60.20 |
| Llama-3 8B | KTO | 5e-6 | 0.10 | 11.25 | 65.26 | 57.92 |
| Qwen2.5 3B Instruct | SFT+KTO | 5e-6 | 0.10 | 13.01 | 32.39 | 61.11 |
| Qwen2.5 3B Instruct | KTO | 5e-6 | 0.50 | 16.63 | 20.41 | 60.35 |
The canonical Kahneman-Tversky value function Equation (4) suffers from numerical instability during optimization due to the exponent $a$, so we replace it with the logistic function $\sigma$, which is also concave in gains and convex in losses.
To control the degree of risk aversion, we introduce a hyperparameter $\beta \in \mathbb{R}^+$ as part of the value function. The greater $\beta$ is, the more quickly the value saturates, meaning the human is simultaneously more risk-averse in gains and more risk-seeking in losses. In practice, this has a similar effect as $\beta$ in the DPO loss, which controls how far $\pi_\theta$ drifts from $\pi_\text{ref}$, though we introduce it here explicitly to control risk aversion; in DPO, it carries over from the KL constraint in the RLHF objective Equation (2) and is part of the reward.
We replace the loss aversion coefficient $\lambda$ in the original Kahneman-Tversky value function Equation (4) with ${\lambda_D, \lambda_U}$, where $\lambda_D$ and $\lambda_U$ are hyperparameters for desirable and undesirable outputs respectively; more complex schemes could also be used for importance sampling.
Rather than having just one dispreferred generation serve as the reference point $z_0$, as in DPO, we assume that humans judge the quality of $y|x$ in relation to all possible outputs. This implies that $Q(Y'|x)$ is the policy and that the reference point is the KL divergence $\text{KL}(\pi_{\theta}(y'|x)|\pi_\text{ref}(y'|x))$. However, as we discuss further below, we end up taking a biased estimate of this term in practice.
Where $\lambda_y$ denotes $\lambda_D(\lambda_U)$ when $y$ is desirable(undesirable) respectively, the default KTO loss is:[^6]
[^6]: An earlier draft separated out $\lambda_D, \lambda_U$ into a function $w$. For an easier comparison with Equation (4), they—along with $\beta$ —have been moved into the value function itself. Note that $\lambda_y$ exists solely to make the loss non-negative and can be removed. The use of multiple $x'$ to estimate $z_0$ in practice was included in the loss definition originally, but has now been moved outside for clarity.
$ L_\text{KTO}(\pi_\theta, \pi_\text{ref}) = \mathbb{E}_{x, y \sim D} [\lambda_y - v(x, y)]\tag{6} $
where
$ \begin{split} r_\theta(x, y) &= \log \frac{\pi_\theta(y|x)}{\pi_\text{ref}(y|x)} \ z_0 &= \text{KL}(\pi_{\theta}(y'|x)|\pi_\text{ref}(y'|x)) \ v(x, y) &= \begin{cases} \lambda_D \sigma(\beta(r_\theta(x, y) - z_0)) \ \text{if } y \sim y_\text{desirable}|x \ \lambda_U \sigma(\beta(z_0 - r_\theta(x, y))) \ \text{if } y \sim y_\text{undesirable}|x\ \end{cases} \ \end{split} $
For more stable training, we do not backpropagate through $z_0$; it exists purely to control the loss saturation.
Intuitively, KTO works as follows: if the model increases the reward of a desirable example in a blunt manner, then the KL penalty also rises and no progress is made. This forces the model to learn exactly what makes an output desirable, so that the reward can be increased while keeping the KL term flat (or even decreasing it). The argument works in the other direction as well, though the non-negativity of the KL term allows faster saturation in the loss regime.
KL Estimate
In practice, estimating $z_0$ as it is defined above is impractical because sampling from $\pi_\theta$ is slow. Instead, we take a biased but convenient estimate by shifting outputs in the same microbatch to induce mismatched pairs ${ (x_1, y_2), (x_2, y_3), ..., (x_m, y_0) }$, then estimating a shared reference point $z_0$ for all examples in the same microbatch as follows. Where $j = (i+1) \text{ mod } m$,
$ \hat{z}\text{0} = \max\left(0, \frac{1}{m} \sum{1 \leq i < m} \log \frac{ \pi_\theta(y_{j}|x_i)}{\pi_\text{ref}(y_{j}|x_i)}\right) $
Because of clamping, our estimator has a positive bias but lower variance than the standard unbiased estimator. Although it costs an additional forward pass, we use a mismatched output $y_j$ instead of the corresponding $y_i$ because the latter have often been deliberately chosen to be canonically good or bad outputs, and thus have unrepresentative high-magnitude rewards. It is worth noting that although our estimator is biased, so would the human-perceived reference point, since humans do not perceive the full distribution induced by $\pi_\theta$ and would employ an “availability heuristic” that would overweight outputs for which they have recently given feedback, regardless of whether those outputs are a good continuation of $x$ ([27]).
If KTO is preceded by SFT done on the same data that is used as desirable feedback and the SFT model is used as $\pi_\text{ref}$, then the KL estimate will quickly approach zero. Having already learned what is desirable during SFT, the policy will tend to scatter the mass placed on undesirable examples, leading to minimal divergence. Also, because the policy may learn to place less mass on undesirable $y_i$ regardless of whether it is preceded by $x_i$, $\hat{z}_0$ might actually be an under-estimate. In such cases, one can avoid the extra computation and set $\hat{z}_0 = 0$. However, when KTO is not preceded by SFT, or when the SFT data is not a subset of the KTO data, estimating $\hat{z}_0$ is necessary.
Data
If the alignment data is naturally binary, every positive example can be assumed to be drawn from $y_\text{desirable}|x$ and every negative example from $y_\text{undesirable}|x$. However, the canonical feedback datasets in academic research (HH, SHP, OASST) are in preference format, since the methods that have worked best up until now are preference-based. In our experiments, we convert preference data $y_w \succ y_l$ by assuming that $y_w$ is drawn from the desirable distribution and $y_l$ from the undesirable one. This is a naive assumption, made for the sake of simplicity, and a more complex deconstruction of preferences into binary feedback would likely yield better results, which we leave for future work. To show that KTO can be used with non-preference data, we also subsample exactly one $y$ per $x$ for some experiments (denoted one- $y$-per- $x$), removing any trace of paired preferences at the cost of reducing the data volume.
If human feedback is in the form of scores or ratings, the simplest means of incorporating it into KTO is to construct a weighting function such that high-magnitude data is weighed more and that examples with scores above(below) some threshold are desirable(undesirable). It is also possible to construct score-based HALOs from first principles, but we leave the design of such losses to future work.

In Table 1, we provide recommended hyperparameter settings for Llama-3 8B ([20]) and Qwen2.5 3B Instruct ([28]) based on benchmarks such as MMLU (0-shot) ([29]), GSM8K (8-shot, chain-of-thought) ([30]), HumanEval (0-shot) ([31]), and BigBench-Hard (3-shot chain-of-thought) ([32]).
Learning Rate
We find that that the performance of an aligned model is more sensitive to the learning rate than any other hyperparameter. The optimal learning rate for KTO is usually 2x to 10x the optimal learning rate for DPO; since the reference-adjusted reward tends to be much smaller in magnitude for KTO, one needs to use a more aggressive learning rate to compensate. For example, the default learning rate for DPO is 5e-7 ([6]), but we find that a default of 5e-6 works better for KTO. In our experiments, we use the default DPO learning rate with RMSProp for all methods to ensure an apples-to-apples comparison with [6], but when using KTO in practice, we recommend starting at 5e-6 with AdamW and adjusting the learning rate as needed.
Batch Size
KTO needs a microbatch size $\geq$ 2 to estimate the reference point in a single step. The experiments in this paper all use an effective batch size of 32, and in general we recommend using a batch size between 8 and 128.
Risk Aversion
The degree of risk aversion/seeking is controlled by $\beta$; the greater $\beta$ is, the greater the risk aversion in gains and risk seeking in losses. In practice, lower values of $\beta$ in the range [0.01, 0.10] work better for larger models that have already undergone SFT; higher values of $\beta$ in the range [0.10, 1.00] work better for smaller models undergoing KTO directly, without SFT prior.
Loss Aversion
The default weighting function controls the degree of loss aversion with $\lambda_D, \lambda_U$, which are both set to 1 by default. In general, where $n_D$ and $n_U$ refer to the number of desirable and undesirable examples respectively, we find that it is generally best to set $\lambda_D, \lambda_U$ such that
$ \frac{\lambda_D n_D}{\lambda_U n_U} \in \left[1, \frac{3}{2} \right]\tag{7} $
For example, if there were a 1:10 ratio of desirable to undesirable examples, we would set $\lambda_U = 1, \lambda_D \in [10, 15]$. This interval was determined empirically, and implies that—after adjusting for class imbalances—gain sensitivity yields better performance than loss sensitivity, ostensibly because producing good outputs is more important than avoiding bad outputs for success on most benchmarks. This is not a hard rule, however. In tasks where minimizing the downside is more important, like toxicity prevention, setting $\lambda_D, \lambda_U$ such that $\lambda_D n_D < \lambda_U n_U$ may work better. Unless otherwise stated, we use $\lambda_D = \lambda_U = 1$ in our experiments.
The current configuration permits different sensitivities to desirable and undesirable examples based on the premise that upon convergence, all undesirable outputs will yield negative rewards and all desirable outputs will yield positive ones, in which case $\lambda_U, \lambda_D$ would directly correspond to $\lambda$ in the original Kahneman-Tversky value function. However, during training itself, a desirable output may have a negative reward (and vice-versa), yet $\lambda_D$ would be the same regardless of whether $r_\theta(x, y) - z_0$ were positive or negative. We may want to change this so that not only is asymmetry possible upon convergence, but even during training within the same class of output: in this case, using a higher $\lambda_D$ when $r_\theta(x, y) - z_0$ is negative than when it is positive. We leave the design of dynamic hyperparameter selection schemes as directions for future work.
::: {caption="Table 2: (top) Results from aligning Zephyr- $\beta$-SFT ([33]) on UltraFeedback for exactly 1 epoch. Even when only one of the two outputs in each preference is seen by KTO, it still outperforms DPO, despite this reducing the volume of data by half (one- $y$-per- $x$). (middle) Changing the structure of the KTO loss, even in subtle ways, makes the aligned model worse, supporting our design choices. (bottom) Fixing $\lambda_U = 1$, we try different levels of loss and risk aversion by changing $\lambda_D$ and $\beta$ respectively (see Appendix C for more results)."}

:::

KTO $\geq$ DPO
As seen in Figure 3, when rerunning the winrate evaluation in § 3.3, SFT+KTO is competitive with SFT+DPO at scales from 1B to 30B, despite the model learning from a weaker signal. KTO alone is better than DPO alone for the Llama-7B, 13B, 30B models, and this gap is significant ($p < 0.01$) at 7B and 30B even after correcting for multiple comparisons ([26]). Among the Pythia models, there is no significant difference between the two, suggesting that a minimum model capacity is needed for these differences to emerge. KTO also fares better than DPO and other baselines on generative benchmarks (Table 2). This is most pronounced for certain tasks: on GSM8K, a mathematical reasoning dataset, just swapping DPO for KTO when aligning Zephyr- $\beta$-SFT [33] on UltraFeedback ([34]) improves performance by 13.5 points.
At sufficient scale, KTO does not need SFT.
A KTO-aligned Llama-13B, 30B model is competitive with its SFT+KTO counterpart despite not undergoing SFT first, and is the only alignment method of the ones we tested to show this behavior. This is perhaps due to KTO alone keeping the average response length roughly the same, while running DPO without SFT prior causes the response length to increase dramatically (Figure 4).
KTO data $\underline{need not}$ come from preferences.
Might KTO be secretly benefiting from its $2n$ examples in the previous experiment coming from $n$ preference pairs instead of a naturally unpaired data distribution? To test this, we randomly discard increasingly large fractions of the desirable data before KTO-aligning a Llama-7B model. For example, if we discard 90% of the desirable data while leaving the undesirable data untouched, then the ratio of desirable:undesirable examples goes from 1:1 to 1:10 and the vast majority of undesirable examples no longer have a preferred counterpart. We handle such imbalances by changing $\lambda_D, \lambda_U$ to satisfy the criteria in Equation (7); when we drop 90% of the desirable data, we set $\lambda_u = 1, \lambda_D = 13.33$ for example. For Llama-7B, we find that up to 90% of the desirable data can in fact be discarded while still outperforming DPO (Figure 5).
We further verify this claim by aligning Mistral-7B on OpenAssistant using DPO (on $n$ pairs), standard KTO (on all $2n$ outputs), and KTO where only one $y$ per $x$ is used. Since the output of one $y$ in OpenAssistant is not conditioned on the other $y$ for the same $x$, the latter captures the setting where the data is from an inherently unpaired distribution. Despite the one- $y$-per- $x$ setup decreasing the amount of training data by 72%, the KTO-aligned model still outperforms both its DPO counterpart and the official instruction-tuned Mistral-7B ([19]), as seen in Table 3.
Changing the design of KTO makes it significantly worse.
For one, removing the reference point $z_0$ —which is necessary for KTO to qualify as a HALO—causes a 3.6 and 4.0 point drop on BBH and GSM8K respectively (Table 2, middle). Even changes that allow KTO to remain a HALO are typically suboptimal. For example, removing the symmetry of the value function—going from $1 - \sigma(\cdot)$ to $- \log \sigma(\cdot)$ (i.e., making the value function concave everywhere, as in DPO)—causes a 9.4 and 11.0 point drop on BBH and GSM8K respectively. Making the value function risk-neutral by setting it to the identity function leads to a total collapse in BBH performance. Changing the curvature and slope via the risk and loss aversion hyperparameters can, depending on the task, improve or degrade performance (Table 2, bottom).
KTO works without a reference model or SFT, but not as well as standard KTO.
If we can avoid storing the reference model in memory, then we can do much more memory-efficient alignment. The naive way to do this is to assume that $\pi_\text{ref}$ returns a uniform distribution over outputs for all $x$, which simplifies $r_\theta - z_0$ to $\log \pi_\theta(y|x) - H(\pi_\theta(y'|x))$, where $H$ denotes the entropy. As seen in Table 2 (middle), if we set $\lambda_D = 1.75$, this memory-efficient variant of KTO is better than DPO on some tasks and worse on others, though it still trails standard KTO. We find that it is also more sensitive to the loss aversion hyperparameters; setting $\lambda_D \in {1.5, 2.0}$ reduces performance on GSM8K and BBH by several points. Still, it strictly outperforms ORPO ([35]), a recently-proposed reference-free method, while also using less memory than all existing approaches, since $\pi_\text{ref}$ need never be loaded into memory and a batch of $m$ KTO outputs is smaller than a batch of $m$ preferences (i.e., $2m$ outputs) used for ORPO/DPO.

KTO was designed with the motivation that even if binary feedback were weaker, one could compensate with sheer volume, as such data is much more abundant, cheaper, and faster to collect than preferences. So why does KTO perform as well or better than DPO on the same preference data (that has been broken up)? Greater data efficiency helps, but it is not the only answer, given that even after adjusting for this factor in the one- $y$-per- $x$ setup, KTO still outperforms.
In this section, we will discuss two theoretical explanations for this phenomenon: (1) preference likelihood can be maximized without necessarily maximizing underlying human utility; (2) KTO implicitly ignores noisy and intransitive data, which is common in real-world feedback.
########## {caption="Proposition 2"}
As the reward implied by the current policy tends to $\pm \infty$, the KTO update of $\pi_\theta$ tends to zero.
This means that if $(x, y)$ is implied by the current policy $\pi_\theta$ to be too difficult or too easy to learn from, then it is effectively ignored. In some cases, this may be a blessing in disguise: since real-world feedback is very noisy ([36]), the reason a desirable example has a highly negative implied reward may be because it is mislabelled. By avoiding this hard-to-learn data, KTO avoids fitting to noise. However, this also means that KTO could end up ignoring data that is hard-to-learn but necessary to recover $r^*$, potentially resulting in underfitting to complex distributions. Such underfitting may be mitigated by aligning the model with lower $\beta$ and for more epochs.
########## {caption="Theorem 3"}
Assuming the value function is logistic, for a reward function $r^*_a$ that maximizes Equation (2), there exists a reward function in its equivalence class (i.e., $r^*_b(x, y) = r^*_a(x, y) + h(x)$ for some $h(x)$) that induces the same optimal policy $\pi^*$ and the same Bradley-Terry preference distribution but a different human value distribution.
A key insight from [6] is that reward functions in the same equivalence class (i.e., differing only in an input-specific component) induce the same optimal policy under Equation (2) and the same Bradley-Terry preference distribution. However, we show under mild assumptions that the value distribution—i.e., human utility—is affected by such input-specific changes, so maximizing preference likelihood does not mean one is maximizing human utility. This helps explain why the margin between KTO and DPO is even bigger in human evaluations than it is in automated LLM-as-a-judge evaluations (Appendix D).
: Table 3: In aligning Mistral-7B on the OpenAssistant dataset, we find that using KTO with only one output per input still outperforms DPO, despite this restriction reducing the amount of training data by 72%. A 90% binomial confidence interval is given.
| Method | Winrate vs. SFT Target |
|---|---|
| Mistral-7B (unaligned) | 0.525 $\pm$ 0.037 |
| Mistral-7B + DPO | 0.600 $\pm$ 0.037 |
| Mistral-7B + KTO (all $y$ per $x$) | 0.652 $\pm$ 0.036 |
| Mistral-7B + KTO (one $y$ per $x$) | 0.631 $\pm$ 0.036 |
| Mistral-7B-Instruct | 0.621 $\pm$ 0.031 |
########## {caption="Theorem 4"}
For input $x$ with outputs ${y_a, y_b}$, let dataset $D$ comprise contradictory preferences $y_a \succ y_b$ and $y_b \succ y_a$ in proportion $p \in (0.5, 1)$ and $(1 - p) \in (0, 0.5)$ respectively. If $p^{1/\beta} \pi_\text{ref}(y_a|x) < (1 - p)^{1/\beta} \pi_\text{ref}(y_b|x)$, then the optimal DPO policy is more likely to produce the minority-preferred $y_b$; the optimal KTO policy will strictly produce the majority-preferred $y_a$ for a loss-neutral value function ($\lambda_D = \lambda_U$).
Informally, say there are two contradictory preferences over the output for $x$, with the majority $p$ preferring $y_a$ and the minority $1 - p$ preferring $y_b$. In the worst-case, when $p$ is sufficiently low and the reference model is sufficiently unaligned, the optimal DPO policy is more likely to produce the minority-preferred output $y_b$ even though the implied reward $r_\theta(x, y_b) > r_\theta(x, y_a)$. In contrast, the optimal KTO policy will deterministically produce the majority-preferred $y_a$ if the value function is loss-neutral ($\lambda_D = \lambda_U$), which is the default setting. This suggests that KTO has better worst-case outcomes when handling feedback intransitivity.
When human feedback is in a binary format, and especially when there is an imbalance between the number of desirable and undesirable examples, KTO is the natural choice. When your data is in the form of preferences, the choice is less clear. Putting aside the greater data efficiency of KTO, our theoretical analysis suggests that if your preference data has sufficiently little noise and sufficiently little intransitivity, then DPO will work better, since there is some risk of KTO underfitting; this risk can be mitigated by using a lower value of $\beta$ and aligning with KTO for more epochs. But if there is enough noise and intransitivity, then the better worst-case guarantees of KTO will win out. Most publicly available preference datasets (e.g., SHP, OpenAssistant) contain noisy feedback from many different humans whose preferences likely contradict to some extent, which explains why KTO was able to match or exceed DPO performance in our experiments. Even synthetic feedback can be noisy and intransitive, which helps explain why KTO outperforms DPO when aligning with UltraFeedback.
Section Summary: The section explores unanswered questions about Human Alignment Losses (HALOs), noting that the current approach draws from economic theories of monetary risk, which may not capture how people truly value text, and calls for research into tailored value functions for language that account for individual and contextual differences. It also outlines technical advancements needed, such as HALOs that handle detailed feedback for multiple goals, extend to images or other AI models, address conflicting inputs fairly, and adapt to real-time data. Finally, it emphasizes the importance of testing these HALOs in actual real-world deployments to properly assess their effectiveness.
The existence of HALOs raises many questions. For one, KTO is based on the Kahneman-Tversky value function for monetary gambles, which is almost certainly different from how humans perceive the relative goodness of text. What value functions and reference point distributions best describe how humans perceive language, and how do they vary across domains and individuals? How can we identify the best HALO for each individual and setting instead of using one default loss?
On a more technical level, important directions include developing HALOs that: (1) incorporate granular feedback, such as a score, especially when optimizing for multiple desiderata; (2) work for other modalities (e.g. images) and model classes (e.g., diffusion models), especially models that do not produce an explicit distribution over the output space; (3) can resolve contradictions in feedback according to different definitions of fairness; (4) are designed to be used with online data, where the direction of feedback is implied by $r_\theta$ or some external reward data.
Ecologically valid evaluation ([37]), where the aligned models are deployed in real-world settings, are also needed to judge the merits of different HALOs.
Section Summary: Traditionally, aligning AI models with human values has focused on rewards, but this work shows that built-in assumptions in the alignment goals are equally important for success, as they mirror human decision-making biases from prospect theory. The authors created a new set of goals called human-aware losses, including one named Kahneman-Tversky Optimization (KTO), which directly boosts the usefulness of AI outputs rather than just predicting human preferences. In tests, KTO matched or outperformed other methods using only simple yes/no feedback on outputs, and the research highlights that the ideal approach varies by situation, leaving room for more exploration.
Although model alignment has historically been reward-centric, we found that the inductive biases of alignment objectives are critical to their success. Moreover, these inductive biases have analogs in the prospect theory literature, suggesting that they work in part because they reflect human biases in decision-making. We abstracted these insights into a family of alignment objectives called human-aware losses (HALOs). We then proposed a HALO called Kahneman-Tversky Optimization (KTO) for directly maximizing the utility of generations instead of maximizing the likelihood of preferences, as existing methods do. Despite only learning from a binary signal of whether an output is (un)desirable, KTO was as good or better than preference-based methods in our experiments. More broadly, our work suggests that akin to how there is no one reward model that is universally superior, there is no one loss function either—the best HALO depends on the inductive biases that are most appropriate for a given setting, and much work remains to be done in identifying the best HALO for each context.
We thank Percy Liang, Dilip Arumugam, Arya McCarthy, and Nathan Lambert for feedback. We thank Stas Bekman and Gautam Mittal for cluster assistance and Alex Manthey for helping with human evaluation.
Section Summary: While the techniques in this paper could make large language models more useful and secure for real-world use, they risk favoring certain users or groups over others, potentially excluding people from underrepresented backgrounds due to biased training data from sources like SHP, HH, and OASST. Methods like KTO, which prioritize majority preferences in feedback, might unfairly propagate these biases and lead to more uniform user opinions at scale, clashing with ideas of fairness that protect the most vulnerable. However, KTO's reliance on simple yes-or-no feedback makes it easier and cheaper to gather input from diverse groups, enabling tailored models for different users rather than a one-size-fits-all approach.
The methods discussed in this paper have the potential to make LLMs more helpful and safer, which is often needed for models deployed in production. It is possible that in making models more helpful, we increase the utility of one person at the expense of broader society. In aligning models with human feedback, one may also—without even fully recognizing it—be aligning to an unrepresentative subset of the population, which may hinder the ability of individuals outside that subset to benefit equally from using the model.
The data used for LLM alignment, including the datasets used in this paper (e.g., SHP, HH, OASST) contain preferences of groups that are not representative of the broader population. Biases in this data have the potential to be propagated downstream when used to align models with methods like KTO, especially when no efforts are made to adjust for the different population. KTO in particular implicitly resolves contradictions in feedback by taking the majority-preferred outcome for a loss-neutral value function, which does not comport with many theories of fairness (e.g., Rawlsianism). Since user preferences are, in turn, affected by the models they interact with, this also risks the homogenization of preferences and utility functions when KTO-aligned models are deployed at scale. The design of HALOs that resolve contradictions in more diverse ways is an important direction for future work.
On the other hand, because KTO works with binary feedback, which is more abundant, cheaper, and faster to collect in the real world, it significantly lowers the barrier to data collection. This makes it easier to collect feedback from traditionally under-represented groups and serve different models to different users, instead of just one monolithic model being served to everyone.
Section Summary: The appendix first surveys related research on aligning large language models, highlighting how human feedback has improved tasks like translation and summarization through methods such as RLHF and newer approaches like DPO, which directly use preferences without needing a separate reward model. It also covers binary feedback techniques, including unlikelihood training and their use in retrieval systems, online self-training methods that refine models using their own outputs, and the limited application of prospect theory from economics to machine learning. Finally, it includes mathematical proofs showing that DPO and PPO-Clip qualify as human-aware loss functions and that the KTO method's updates become negligible as implied rewards grow extremely large.
LLM Alignment
Human feedback has been used to improve LLM capabilities in translation ([38]), summarization ([39]), sentiment-conditioned generation ([40]), and instruction-following ([2]). The RLHF framework ([5, 41]) traditionally used to accomplish this is detailed in § 2. Still, momentum has largely shifted in favor of closed-form losses that directly operate on offline preferences, such as DPO ([6]). This single stage of optimization distinguishes DPO from the conventional approach in preference-based RL, which learns a reward and then fits the policy to those rewards ([42, 43]). Other preference-based losses include CPO ([44]) and IPO ([45]).
Binary Feedback
Despite not being a human-aware loss, unlikelihood training was among the first methods to align language models using a binary signal ([46]). However, [14] found unlikelihood training to be worse than the CSFT baseline we tested in this work, which is among various approaches that convert a binary/discrete signal into a control token ([47]). Learning from sparse binary feedback is a staple of information retrieval and recommender systems ([48, 49]). Many retrieval-augmented generation systems use contrastive learning to ensure that generations are grounded. This can be framed as learning from synthetic binary feedback, although depending on the implementation, it may be the retriever and not the LLM that is updated ([47]).
Online Alignment
A recent string of work has centered on the idea of "self-training" or "self-play", during which the policy is continually aligned on online data sampled from itself and then filtered ([50, 51]). Many of these approaches frame the learning of a preference model as a two-player min-max game between two policies ([52, 53, 54]). In theory, KTO can also be adapted for online alignment, though we leave this as a direction for future work.
Prospect Theory
Prospect theory, despite being influential in behavioral economics, has had a muted impact in machine learning, with work concentrated in human-robot interaction ([55, 56, 57]).
Theorem 1 (restated)
DPO and PPO-Clip are human-aware loss functions.
Proof: For a loss $f$ to be a HALO, we need to first construct the human value
$ v(r_\theta(x, y) - \mathbb{E}{Q}[r\theta(x, y')]) $
where $r_\theta(x, y) = l(x, y) \log \frac{\pi_\theta(y|x)}{\pi_\text{ref}(y|x)}$ is the implied reward (normalized by factor $l(y)$), $Q(Y'|x)$ is an input-conditioned reference point distribution, and $v: \mathbb{R} \to \mathbb{R}$ is a value function (in the prospect theoretic sense) that is non-decreasing everywhere and concave in $(0, \infty)$.
The DPO loss is
$ \mathcal{L}\text{DPO}(\pi\theta, \pi_\text{ref}) = \mathbb{E}{x, y_w, y_l} \left[-\log \sigma \left(\beta \log \frac{\pi\theta(y_w|x)}{\pi_\text{ref}(y_w|x)} - \beta \log \frac{\pi_\theta(y_l|x)}{\pi_\text{ref}(y_l|x)} \right) \right] $
where $\beta > 0$ is a hyperparameter. DPO meets the criteria with the following construction: $l(y) = \beta$; $r_\theta = \beta \log \frac{\pi_\theta(y|x)}{\pi_\text{ref}(y|x)}$; $v(\cdot) = \log \sigma(\cdot)$ is increasing and concave everywhere; $Q$ places all mass on $(x, y_l)$, where $y_l$ is a dispreferred output for $x$ such that $y \succ y_l$; and $a_{x, y} = -1$.
The PPO-Clip loss is
$ \begin{split} \mathcal{L}\text{PPO (offline)} = -\mathbb{E}{x, y, t \sim D}[\min(q_\theta A(x{:}y_{<t}, y_t), \text{clip}(q_\theta, 1 - \epsilon, 1 + \epsilon) A(x{:}y_{<t}, y_t))] \end{split} $
where $q_\theta = \frac{\pi_\theta(y_t|x{:}y_{<t})}{\pi_\text{ref}(y_t|x{:}y_{<t})}$ are the token-level probability ratios (where $y_{< t}$ denotes the output sequence up to the $t$-th token), $A$ denotes the token-level advantages, and $\epsilon \in (0, 1)$ is a hyperparameter.
Since this is a token-level objective, let $x{:}y_{<t}$ denote the actual input and the token $y_i$ the actual output for the purpose of framing this as a HALO. The advantage function $A(x{:}y_{<t}, y_t)$ can be expressed as $Q^\pi(x{:}y_{<t}, y_t) - V^\pi(x{:}y_{<t})$, the difference between the action-value and value functions. Because $V^\pi(x{:}y_{<t}) = \mathbb{E}{y \sim \pi}Q^\pi(x{:}y{<t}, y)$, the reference point distribution is simply the policy.
The HALO-defined reward $r_\theta$ is then implied by the product $q_\theta Q^\pi(x{:}y_{<t}, y)$. Assume without loss of generality that $Q^\pi$ is non-negative, since a constant can be added to $Q^\pi$ without changing the advantage. Then means $\exists\ u \geq 1, q_\theta Q^\pi(x{:}y_{<t}, y) = \log u = \log \hat{\pi}\theta(x{:}y{<t}, y) / \hat{\pi}\text{ref}(x{:}y{<t}, y)$, where $\hat{\pi}\theta, \hat{\pi}\text{ref}$ are some implied policy and reference distributions. It is trivial to show that the latter exist but are not unique.
For clarity, we can first write the value function piecewise. Where $q_\theta A = r_\theta - z_0$ in the HALO notation:
$ v(q_\theta A) = \begin{cases} A \min(q_\theta, 1 + \epsilon)& \text{if } A(x{:}y_{<t}, y_t) \geq 0 \ A \max(q_\theta, 1 - \epsilon)& \text{if } A(x{:}y_{<t}, y_t) < 0 \ \end{cases} $
which we can combine as $v(q_\theta A) = \min(q_\theta A, A(1 + sign(q_\theta A) \epsilon))$. $a_{x, y} = -1$ completes the construction.
Proposition 2 (restated)
As the reward $r_\theta(x, y)$ implied by the current policy tends to $\pm \infty$, the KTO update of $\pi_\theta$ tends to zero.
Proof: Where $d(y)$ is -1(+1) when $y$ is desirable(undesirable), $\lambda_y$ is $\lambda_D(\lambda_U)$ when $y$ is desirable(undesirable), and $z = r_\theta(x, y) - z_0$, the derivative of the KTO loss is
$ \nabla_\theta L_\text{KTO}(\pi_\theta, \pi_\text{ref}) = \mathbb{E}{x, y \sim D}\left[d(y) \lambda_y \sigma(\beta z) (1 - \sigma(\beta z)) \beta \nabla\theta \log \pi_\theta(y|x) \right]\tag{8} $
Note that we do not backpropagate through the KL term in the KTO loss and $\beta, \lambda_y > 0$. This gradient is simple to interpret: if $y$ is desirable, then $d(y)$ is negative and we push up the probability of $\pi_\theta(y|x)$ to minimize the loss; if $y$ is undesirable, then $d(y)$ is positive and we push down the probability of $\pi_\theta(y|x)$ to minimize the loss. As $r_\theta$ tends to $\pm \infty$, the gradient will tend to zero since either $(1 - \sigma(\beta z))$ or $\sigma(\beta z)$ will tend to zero.
Theorem 3 (restated)
Assuming the value function is logistic, for a reward function $r^_a$ that maximizes Equation (2), there exists a reward function in its equivalence class (i.e., $r^*_b(x, y) = r^*_a(x, y) + h(x)$ for some $h(x)$) that induces the same optimal policy $\pi^*$ and the same Bradley-Terry preference distribution but a different human value distribution.*
Proof: Following the definition in [6], we say $r^*_a$ and $r^*_b$ are in the same equivalence class if there exists some function $h(x)$ such that $r^*_b(x, y) = r^*_a(x, y) + h(x)$. From Lemma 1 in [6], we know that two functions in the same equivalence class induce the same optimal policy:
$ \begin{split} \pi^*_{r_a}(y|x) &= \frac{1}{Z(x)} \pi_{\text{ref}}(y|x) \exp\left(\frac{1}{\beta} r^*a(x, y)\right) \ &= \frac{1}{\sum_y \pi{\text{ref}}(y|x) \exp\left(\frac{1}{\beta} r^*a(x, y)\right) \exp\left(\frac{1}{\beta} h(x)\right)} \pi{\text{ref}}(y|x) \exp\left(\frac{1}{\beta} r^*a(x, y) \right) \exp\left(\frac{1}{\beta} h(x) \right) \ &= \frac{1}{\sum_y \pi{\text{ref}}(y|x) \exp\left(\frac{1}{\beta} (r^*a(x, y) +h(x))\right)} \pi{\text{ref}}(y|x) \exp\left(\frac{1}{\beta} (r^*a(x, y) + h(x))\right) \ &= \pi^*{r_b}(y|x) \ \end{split} $
For a Bradley-Terry model of preferences, it is trivial to show that $p(y_w \succ y_l|x)$ is unaffected by $h(x)$ since it is added to the reward of both $y_w$ and $y_l$. We will now show that the two reward functions do not necessarily induce the same distribution of human values.
First, we assume
A Taylor series expansion of the human value of $r^*_a(x, y)$ around 0 would be:
$ \sigma(0) + \sigma'(0) (r^*_a(x, y) - z_0) + \frac{\sigma''(0)}{2} (r^*_a(x, y) - z_0)^2 + ... $
A Taylor series expansion of the value of $r^*_a(x, y) + h(x)$ around $h(x)$ would be:
$ \sigma(h(x)) + \sigma'(h(x)) (r^*_a(x, y) - z_0) + \frac{\sigma''(h(x))}{2} (r^*_a(x, y) - z_0)^2 + ... $
Since $\sigma$ is strictly monotonic, for these series to be equal, we must have $h(x) = 0$. If this is not the case, then the values of $r^*_a(x, y)$ and $r^*_b(x, y)$ will be different. Thus two arbitrary reward functions in the same equivalence class do not induce the same distribution of human values.
Theorem 4 (restated)
For input $x$ with outputs ${y_a, y_b}$, let dataset $D$ comprise contradictory preferences $y_a \succ y_b$ and $y_b \succ y_a$ in proportion $p \in (0.5, 1)$ and $(1 - p) \in (0, 0.5)$ respectively. If $p^{1/\beta} \pi_\text{ref}(y_a|x) < (1 - p)^{1/\beta} \pi_\text{ref}(y_b|x)$, then the optimal DPO policy is more likely to produce the minority-preferred $y_b$; the optimal KTO policy will strictly produce the majority-preferred $y_a$ for a loss-neutral value function ($\lambda_D = \lambda_U$).
Proof: Where $u = \beta (r_\theta(x, y_a) - r_\theta(x, y_b))$, we can write the total DPO loss for $x$ as
$ \mathcal{L}_{\text{DPO}}(x) = p (- \log \sigma(u)) + (1 - p)(- \log \sigma(-u)) $
Taking the derivative with respect to $u$ and setting to zero, we get
$ \begin{split} 0 &= -p \frac{\sigma(u) \sigma(-u)}{\sigma(u)} + (1 - p) \frac{\sigma(-u) \sigma(u)}{\sigma(-u)} = -p(1 - \sigma(u)) + (1 - p) \sigma(u) = -p + \sigma(u) \ \implies u &= \sigma^{-1}(p) \ \beta r^*_\theta(x, y_a) &= \sigma^{-1}(p) + \beta r^*_\theta(x, y_b) \ \beta \log \frac{\pi^*_\theta(y_a|x)}{\pi_\text{ref}(y_a|x)} &= \log \frac{p}{1 - p} + \beta \log \frac{\pi^*_\theta(y_b|x)}{\pi_\text{ref}(y_b|x)} \ \pi^*_\theta(y_a|x) &= \left(\frac{p}{1 - p}\right)^{1/\beta} \cdot \frac{ \pi_\text{ref}(y_a|x) } {\pi_\text{ref}(y_b|x)} \cdot \pi^*_\theta(y_b|x) \end{split} $
Thus when $p^{1/\beta} \pi_\text{ref}(y_a|x) < (1 - p)^{1/\beta} \pi_\text{ref}(y_b|x)$, we have $\pi^*_\theta(y_a|x) < \pi^*_\theta(y_b|x)$, meaning the optimal DPO policy is more likely to produce the minority-preferred $y_b$.
Where $u_a = \beta(r_\theta(x, y_a) - \mathbb{E}{Q}[r\theta(x, y')])$ and $u_b = \beta(r_\theta(x, y_b) - \mathbb{E}{Q}[r\theta(x, y')])$, noting that $1 - \sigma(-u) = \sigma(u)$, we can write the total KTO loss for $x$ as
$ \begin{split} \mathcal{L}_{\text{KTO}}(x) &= p \lambda_D (1 - \sigma(u_a)) + (1 - p) \lambda_U \sigma(u_a) + p \lambda_U \sigma(u_b) + (1 - p) \lambda_D (1 - \sigma(u_b)) \ &= p \lambda_D + ((1 - p)\lambda_U - p \lambda_D) \sigma(u_a) + (1 - p) \lambda_D + (p \lambda_U - (1 - p) \lambda_D) \sigma(u_b) \ &= \lambda_D + ((1 - p)\lambda_U - p \lambda_D) \sigma(u_a) + (p \lambda_U - (1 - p) \lambda_D) \sigma(u_b) \ &= \lambda_D + \lambda_D ((1 - 2p) \sigma(u_a) + (2p - 1) \sigma(u_b)) \quad \text{(under loss neutrality)} \end{split} $
Given that $p > 0.5$ by assumption and $\lambda_D > 0$ by definition, the KTO loss is decreasing in $u_a$ and increasing in $u_b$ —and thus decreasing in $r_\theta(x, y_a)$ and increasing in $r_\theta(x, y_b)$ respectively. The optimal KTO policy is thus $\pi^*_\theta(y|x) = \mathbb{1}[y = y_a]$.
SLiC
Instead of sampling from the reference model to calculate the $\mathcal{L}_\text{reg}$ as [15] do—as it is very slow—we just apply the cross-entropy loss to the SFT data, assuming that the reference model recovers the SFT distribution.
DPO
We use the implementation of DPO in the code provided by [6]. We found that, as mentioned in the original paper, $\beta = 0.1$ works best for most settings. Other training configurations, such as the learning rate and optimizer, were borrowed from the original paper.
CSFT
The control tokens used for generating the good and bad outputs are $\left<|\text{good}|\right>$ and $\left<|\text{bad}|\right>$ respectively, following the precedent set in [14].
KTO
We use a $\beta = 0.1$ in our experiments unless otherwise specified (the same setting as for DPO), as it is close-to-optimal for most settings. By default, $\lambda_D = \lambda_U = 1$. In experiments on imbalanced data subsampled from [SHP, HH, OASST], we found that setting $\lambda_U, \lambda_D$ such that the effective ratio of desirable:undesirable examples was 4:3 worked best, regardless of which group was in the minority (see Equation (7)). However, in running data-imbalanced experiments on UltraFeedback, we found that an effective ratio of 1:1 worked best. The other hyperparameters (e.g., learning rate) are the same as in DPO.
PPO
PPO-Clip is the traditional means of optimizing the RLHF objective Equation (2). However, most implementations of PPO-Clip for LLM alignment suffer from instability, particularly during distributed training. We find that running the PPO-Clip objective on offline data with the following "tricks" leads to much more stable training:
For human evaluation, we randomly sampled 256 prompts from the OpenAssistant test set and generated outputs from Mistral 7B models aligned with DPO and KTO. All inputs were multi-turn conversations between a user and an assistant, where the LLM played the role of the assistant (see Table 6 for an example) and the last turn in the input was that of the user. These were sent to a third-party data annotation service where a pool of workers picked either the generated output or the SFT target (from the OpenAssistant dataset) as the more appropriate response by the assistant. Any questions that required specific domain experience (e.g., coding) were skipped, leading to 214 comparisons for DPO and KTO each.
The winrates of the aligned model over the SFT targets are $72.9% \pm 5.3$ for KTO and $62.1% \pm 5.7$ for DPO (where the intervals are 90% binomial confidence intervals). In contrast, Table 3 contains the winrates when the same experiment is run with GPT-4 as a judge instead: $65.2% \pm 3.6$ for KTO and $60.0% \pm 3.7$ for DPO. Thus although there is no significant difference in the GPT-4-based evaluation, there is a significant difference with human evaluation at $p < 0.05$. We found that 68.7% of the individual human judgments concurred with the GPT-4 judgments for KTO; this number fell to 65.9% for DPO.
::: {caption="Table 4: KTO alignment with only desirable/positive examples (i.e., the same data that would be used for SFT), yields similar results to SFT when $\beta$ is small; this is intuitive because it is less bound to the reference model. $\lambda_D$ is fixed at $1$."}

:::

::: {caption="Table 5: Results from aligning Zephyr- $\beta$-SFT ([33]) on UltraFeedback. Note that the base model had not been finetuned on UltraFeedback but a similar dataset called UltraChat; the first row here denotes the finetuning results. All the methods below see exactly 1 epoch of UltraFeedback, for an apples-to-apples comparison. AlpacaEval 2 was run using GPT4 Turbo CoT as the LM judge. All evaluations were run with sampling temperature $0.7$. Among the KTO variants: "one- $y$-per- $x$ " denotes training standard KTO with either the positive or negative output (not both); "no $z_0$ " refers to a constant reference point of $0$; "concave" refers to a variant where the human value function is concave in the loss regime (i.e., minimize $-\log(\cdot)$ instead of $1 - (\cdot)$); "no $\pi_\text{ref}$ " refers to a reference model-free variant; "risk-neutral" refers to a variant where the human value function is just the identity function, implying risk neutrality."}

:::
::: {caption="Table 6: Sample generations from the different aligned versions of Llama-30B for a prompt about show recommendations (all models were aligned with data following the user-assistant format). Note that the SFT answer is not helpful and the SFT+DPO answer hallucinates multiple turns of the conversation (in fact, we had to truncate the answer shown here because the complete answer is too long). The SFT+PPO (offline) answer is helpful but only provides one recommendation, while SFT+KTO is succinct and provides multiple options."}

:::
[1] Tversky, A. and Kahneman, D. Advances in prospect theory: Cumulative representation of uncertainty. Journal of Risk and uncertainty, 5:297–323, 1992.
[2] Ouyang, L., Wu, J., Jiang, X., Almeida, D., Wainwright, C., Mishkin, P., Zhang, C., Agarwal, S., Slama, K., Ray, A., et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730–27744, 2022.
[3] Tian, K., Mitchell, E., Yao, H., Manning, C. D., and Finn, C. Fine-tuning language models for factuality. arXiv preprint arXiv:2311.08401, 2023.
[4] Casper, S., Davies, X., Shi, C., Gilbert, T. K., Scheurer, J., Rando, J., Freedman, R., Korbak, T., Lindner, D., Freire, P., et al. Open problems and fundamental limitations of reinforcement learning from human feedback. Transactions on Machine Learning Research, 2023.
[5] Christiano, P. F., Leike, J., Brown, T., Martic, M., Legg, S., and Amodei, D. Deep reinforcement learning from human preferences. Advances in neural information processing systems, 30, 2017.
[6] Rafailov, R., Sharma, A., Mitchell, E., Manning, C. D., Ermon, S., and Finn, C. Direct preference optimization: Your language model is secretly a reward model. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
[7] Kahneman, D. and Tversky, A. Prospect theory: An analysis of decision under risk. Econometrica, 47(2):263–292, 1979.
[8] Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
[9] Dao, T., Fu, D., Ermon, S., Rudra, A., and Ré, C. Flashattention: Fast and memory-efficient exact attention with io-awareness. Advances in Neural Information Processing Systems, 35:16344–16359, 2022.
[10] Bradley, R. A. and Terry, M. E. Rank analysis of incomplete block designs: I. the method of paired comparisons. Biometrika, 39(3/4):324–345, 1952.
[11] Gurevich, G., Kliger, D., and Levy, O. Decision-making under uncertainty–a field study of cumulative prospect theory. Journal of Banking & Finance, 33(7):1221–1229, 2009.
[12] Peng, X. B., Kumar, A., Zhang, G., and Levine, S. Advantage-weighted regression: Simple and scalable off-policy reinforcement learning. arXiv preprint arXiv:1910.00177, 2019.
[13] Peters, J. and Schaal, S. Reinforcement learning by reward-weighted regression for operational space control. In Proceedings of the 24th international conference on Machine learning, pp. 745–750, 2007.
[14] Korbak, T., Shi, K., Chen, A., Bhalerao, R. V., Buckley, C., Phang, J., Bowman, S. R., and Perez, E. Pretraining language models with human preferences. In International Conference on Machine Learning, pp. 17506–17533. PMLR, 2023.
[15] Zhao, Y., Joshi, R., Liu, T., Khalman, M., Saleh, M., and Liu, P. J. Slic-hf: Sequence likelihood calibration with human feedback. arXiv preprint arXiv:2305.10425, 2023.
[16] Baheti, A., Lu, X., Brahman, F., Le Bras, R., Sap, M., and Riedl, M. Improving language models with advantage-based offline policy gradients. In The Twelfth International Conference on Learning Representations, 2023.
[17] Biderman, S., Schoelkopf, H., Anthony, Q. G., Bradley, H., O’Brien, K., Hallahan, E., Khan, M. A., Purohit, S., Prashanth, U. S., Raff, E., et al. Pythia: A suite for analyzing large language models across training and scaling. In International Conference on Machine Learning, pp. 2397–2430. PMLR, 2023.
[18] Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023.
[19] Jiang, A. Q., Sablayrolles, A., Mensch, A., Bamford, C., Chaplot, D. S., Casas, D. d. l., Bressand, F., Lengyel, G., Lample, G., Saulnier, L., et al. Mistral 7b. arXiv preprint arXiv:2310.06825, 2023.
[20] Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., Yang, A., Fan, A., et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.
[21] Ganguli, D., Lovitt, L., Kernion, J., Askell, A., Bai, Y., Kadavath, S., Mann, B., Perez, E., Schiefer, N., Ndousse, K., et al. Red teaming language models to reduce harms: Methods, scaling behaviors, and lessons learned. arXiv preprint arXiv:2209.07858, 2022.
[22] Köpf, A., Kilcher, Y., von Rütte, D., Anagnostidis, S., Tam, Z.-R., Stevens, K., Barhoum, A., Duc, N. M., Stanley, O., Nagyfi, R., et al. Openassistant conversations–democratizing large language model alignment. arXiv preprint arXiv:2304.07327, 2023.
[23] Ethayarajh, K., Choi, Y., and Swayamdipta, S. Understanding dataset difficulty with $\mathcal{V}$-usable information. In Chaudhuri, K., Jegelka, S., Song, L., Szepesvari, C., Niu, G., and Sabato, S. (eds.), Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 5988–6008. PMLR, 17–23 Jul 2022.
[24] Zheng, L., Chiang, W.-L., Sheng, Y., Zhuang, S., Wu, Z., Zhuang, Y., Lin, Z., Li, Z., Li, D., Xing, E., et al. Judging llm-as-a-judge with mt-bench and chatbot arena. arXiv preprint arXiv:2306.05685, 2023.
[25] Li, X., Zhang, T., Dubois, Y., Taori, R., Gulrajani, I., Guestrin, C., Liang, P., and Hashimoto, T. B. Alpacaeval: An automatic evaluator of instruction-following models. https://github.com/tatsu-lab/alpaca_eval, 2023.
[26] Holm, S. A simple sequentially rejective multiple test procedure. Scandinavian journal of statistics, pp. 65–70, 1979.
[27] Tversky, A. and Kahneman, D. Availability: A heuristic for judging frequency and probability. Cognitive psychology, 5(2):207–232, 1973.
[28] Yang, A., Yang, B., Hui, B., Zheng, B., Yu, B., Zhou, C., Li, C., Li, C., Liu, D., Huang, F., et al. Qwen2 technical report. arXiv preprint arXiv:2407.10671, 2024.
[29] Hendrycks, D., Burns, C., Basart, S., Zou, A., Mazeika, M., Song, D., and Steinhardt, J. Measuring massive multitask language understanding. Proceedings of the International Conference on Learning Representations (ICLR), 2021.
[30] Cobbe, K., Kosaraju, V., Bavarian, M., Chen, M., Jun, H., Kaiser, L., Plappert, M., Tworek, J., Hilton, J., Nakano, R., Hesse, C., and Schulman, J. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021.
[31] Chen, M., Tworek, J., Jun, H., Yuan, Q., Pinto, H. P. d. O., Kaplan, J., Edwards, H., Burda, Y., Joseph, N., Brockman, G., et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.
[32] Srivastava, A., Rastogi, A., Rao, A., Shoeb, A. A. M., Abid, A., Fisch, A., Brown, A. R., Santoro, A., Gupta, A., Garriga-Alonso, A., et al. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. arXiv preprint arXiv:2206.04615, 2022.
[33] Tunstall, L., Beeching, E., Lambert, N., Rajani, N., Rasul, K., Belkada, Y., Huang, S., von Werra, L., Fourrier, C., Habib, N., Sarrazin, N., Sanseviero, O., Rush, A. M., and Wolf, T. Zephyr: Direct distillation of lm alignment, 2023.
[34] Cui, G., Yuan, L., Ding, N., Yao, G., Zhu, W., Ni, Y., Xie, G., Liu, Z., and Sun, M. Ultrafeedback: Boosting language models with high-quality feedback, 2023.
[35] Hong, J., Lee, N., and Thorne, J. Reference-free monolithic preference optimization with odds ratio. arXiv preprint arXiv:2403.07691, 2024.
[36] Hoeffler, S. and Ariely, D. Constructing stable preferences: A look into dimensions of experience and their impact on preference stability. Journal of consumer psychology, 8(2):113–139, 1999.
[37] De Vries, H., Bahdanau, D., and Manning, C. Towards ecologically valid research on language user interfaces. arXiv preprint arXiv:2007.14435, 2020.
[38] Kreutzer, J., Uyheng, J., and Riezler, S. Reliability and learnability of human bandit feedback for sequence-to-sequence reinforcement learning. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1777–1788, 2018.
[39] Stiennon, N., Ouyang, L., Wu, J., Ziegler, D., Lowe, R., Voss, C., Radford, A., Amodei, D., and Christiano, P. F. Learning to summarize with human feedback. Advances in Neural Information Processing Systems, 33:3008–3021, 2020.
[40] Ziegler, D. M., Stiennon, N., Wu, J., Brown, T. B., Radford, A., Amodei, D., Christiano, P., and Irving, G. Fine-tuning language models from human preferences. arXiv preprint arXiv:1909.08593, 2019.
[41] Bai, Y., Jones, A., Ndousse, K., Askell, A., Chen, A., DasSarma, N., Drain, D., Fort, S., Ganguli, D., Henighan, T., et al. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862, 2022.
[42] Jain, A., Wojcik, B., Joachims, T., and Saxena, A. Learning trajectory preferences for manipulators via iterative improvement. Advances in neural information processing systems, 26, 2013.
[43] Busa-Fekete, R., Szörényi, B., Weng, P., Cheng, W., and Hüllermeier, E. Preference-based reinforcement learning: evolutionary direct policy search using a preference-based racing algorithm. Machine learning, 97:327–351, 2014.
[44] Xu, H., Sharaf, A., Chen, Y., Tan, W., Shen, L., Van Durme, B., Murray, K., and Kim, Y. J. Contrastive preference optimization: Pushing the boundaries of llm performance in machine translation. arXiv preprint arXiv:2401.08417, 2024.
[45] Azar, M. G., Guo, Z. D., Piot, B., Munos, R., Rowland, M., Valko, M., and Calandriello, D. A general theoretical paradigm to understand learning from human preferences. In International Conference on Artificial Intelligence and Statistics, pp. 4447–4455. PMLR, 2024.
[46] Welleck, S., Kulikov, I., Roller, S., Dinan, E., Cho, K., and Weston, J. Neural text generation with unlikelihood training. In International Conference on Learning Representations, 2019.
[47] Lu, X., Welleck, S., Hessel, J., Jiang, L., Qin, L., West, P., Ammanabrolu, P., and Choi, Y. Quark: Controllable text generation with reinforced unlearning. Advances in neural information processing systems, 35:27591–27609, 2022.
[48] He, X., Liao, L., Zhang, H., Nie, L., Hu, X., and Chua, T.-S. Neural collaborative filtering. In Proceedings of the 26th international conference on world wide web, pp. 173–182, 2017.
[49] Koren, Y., Bell, R., and Volinsky, C. Matrix factorization techniques for recommender systems. Computer, 42(8):30–37, 2009.
[50] Chen, Z., Deng, Y., Yuan, H., Ji, K., and Gu, Q. Self-play fine-tuning converts weak language models to strong language models. arXiv preprint arXiv:2401.01335, 2024.
[51] Yuan, W., Pang, R. Y., Cho, K., Sukhbaatar, S., Xu, J., and Weston, J. Self-rewarding language models. arXiv preprint arXiv:2401.10020, 2024.
[52] Munos, R., Valko, M., Calandriello, D., Azar, M. G., Rowland, M., Guo, Z. D., Tang, Y., Geist, M., Mesnard, T., Michi, A., et al. Nash learning from human feedback. arXiv preprint arXiv:2312.00886, 2023.
[53] Rosset, C., Cheng, C.-A., Mitra, A., Santacroce, M., Awadallah, A., and Xie, T. Direct nash optimization: Teaching language models to self-improve with general preferences. arXiv preprint arXiv:2404.03715, 2024.
[54] Swamy, G., Dann, C., Kidambi, R., Wu, Z. S., and Agarwal, A. A minimaximalist approach to reinforcement learning from human feedback. arXiv preprint arXiv:2401.04056, 2024.
[55] Kwon, M., Biyik, E., Talati, A., Bhasin, K., Losey, D. P., and Sadigh, D. When humans aren't optimal: Robots that collaborate with risk-aware humans. In Proceedings of the 2020 ACM/IEEE international conference on human-robot interaction, pp. 43–52, 2020.
[56] Sun, L., Zhan, W., Hu, Y., and Tomizuka, M. Interpretable modelling of driving behaviors in interactive driving scenarios based on cumulative prospect theory. In 2019 IEEE Intelligent Transportation Systems Conference (ITSC), pp. 4329–4335. IEEE, 2019.
[57] Chan, L., Critch, A., and Dragan, A. Human irrationality: both bad and good for reward inference. arXiv preprint arXiv:2111.06956, 2021.
[58] von Werra, L., Belkada, Y., Tunstall, L., Beeching, E., Thrush, T., Lambert, N., and Huang, S. Trl: Transformer reinforcement learning. https://github.com/huggingface/trl, 2020.