Papers
Topics
Authors
Recent
Search
2000 character limit reached

Kahneman–Tversky Optimization (KTO)

Updated 30 March 2026
  • Kahneman–Tversky Optimization (KTO) is a method that integrates Prospect Theory into LLM fine-tuning, emphasizing nonlinear risk sensitivity and loss aversion.
  • It generalizes Direct Preference Optimization by replacing logistic loss with a prospect-theoretic utility-based objective, enhancing performance under data scarcity and imbalance.
  • KTO has practical applications in safety alignment, multi-agent coordination, federated learning, and tool use, driving improvements in sample efficiency and overall model robustness.

Kahneman–Tversky Optimization (KTO) is a preference-based fine-tuning method for LLMs that grounds its objective in Prospect Theory, bringing risk sensitivity, loss aversion, and reference dependence into model alignment. Originating with Ethayarajh et al. (ICML 2024), and now widely applied in LLM safety alignment, tool use, multi-agent coordination, federated learning, and beyond, KTO generalizes Direct Preference Optimization (DPO) by replacing the standard pairwise logistic loss with a prospect-theoretic utility-based objective. According to Prospect Theory, agents do not value outcomes in absolute terms but perceive utility as nonlinear, with losses weighed more heavily than gains and evaluated relative to a status-quo reference. KTO injects these human-like asymmetries into LLM optimization, enabling efficient alignment from binary preference signals and robust model adaptation under data scarcity, annotation heterogeneity, and class imbalance.

1. Theoretical Foundations and Prospect-Theoretic Objective

KTO draws deeply from Prospect Theory, as developed by Kahneman and Tversky, introducing two critical nonlinearities absent from classical expected utility:

  • Value Function: A piecewise curve v()v(\cdot), concave for gains (Δ0\Delta \geq 0) and convex (and typically steeper) for losses (Δ<0\Delta < 0), with a loss aversion coefficient λ>1\lambda > 1. Canonical forms (see (Ethayarajh et al., 2024)):

v(z,zref;α,λ)={(zzref)α,zzref λ(zrefz)α,z<zrefv(z, z_{\mathrm{ref}}; \alpha, \lambda) = \begin{cases} (z - z_{\mathrm{ref}})^{\alpha}, & z \geq z_{\mathrm{ref}} \ -\lambda\, (z_{\mathrm{ref}} - z)^{\alpha}, & z < z_{\mathrm{ref}} \end{cases}

with 0<α10 < \alpha \leq 1 controlling curvature (diminishing sensitivity).

  • Probability Weighting: A function w(p)w(p) that overweights small probabilities and underweights large ones, with a common instantiation (Prelec’s law):

w(p;γ)=exp((lnp)γ),0<γ1.w(p; \gamma) = \exp\left(-(-\ln p)^\gamma\right), \quad 0 < \gamma \leq 1.

In the KTO context, "outcomes" are model completions yy for prompt xx, valued by their relative log-probability under the current policy Δ0\Delta \geq 00 versus a reference Δ0\Delta \geq 01, and "events" are preference or safety labels. The expectation of prospect-theoretic utility Δ0\Delta \geq 02 is then computed over these sample-label pairs, aligning model outputs with human-like gain/loss perception.

2. Formal Definition, Loss Functions, and Optimization

KTO is formulated for both pairwise and unary (single-label) preference settings.

Pairwise (Preference) Formulation

Given tuples Δ0\Delta \geq 03 ("preferred"/"rejected"), the central margin is Δ0\Delta \geq 04. The basic KTO loss (exemplified by (Shuieh et al., 9 May 2025, Viswanadha et al., 23 Jun 2025, Liu et al., 2024, Zhai, 2024)) is:

Δ0\Delta \geq 05

where Δ0\Delta \geq 06 is the sigmoid, Δ0\Delta \geq 07 the value function, Δ0\Delta \geq 08 the probability-weighting, and Δ0\Delta \geq 09 a temperature scale. For Δ<0\Delta < 00 and Δ<0\Delta < 01, typical parameterizations are:

  • Δ<0\Delta < 02 for Δ<0\Delta < 03, Δ<0\Delta < 04 for Δ<0\Delta < 05, with Δ<0\Delta < 06,
  • Δ<0\Delta < 07 for Δ<0\Delta < 08.

If hyperparameters Δ<0\Delta < 09, KTO reduces to DPO.

Unary/Binary-Label (Prospect-RLHF/Single-Response) Formulation

In the broader single-label setting (see (Ethayarajh et al., 2024, Spadea et al., 20 Feb 2025, Zhai, 2024, Ye et al., 24 Jan 2025, Fang et al., 2 Dec 2025)), KTO operates on λ>1\lambda > 10 where λ>1\lambda > 11, defining per-example log-ratio λ>1\lambda > 12 and a reference baseline λ>1\lambda > 13 (mean KL divergence over batch or dataset):

λ>1\lambda > 14

λ>1\lambda > 15

Weights λ>1\lambda > 16 encode loss aversion (generally λ>1\lambda > 17).

Algorithmic Pseudocode

A typical KTO training loop (Ye et al., 24 Jan 2025, Viswanadha et al., 23 Jun 2025, Garg et al., 2024):

0<α10 < \alpha \leq 18

If the task demands risk adaptive tuning (e.g., category- or difficulty-specific margin scaling), λ>1\lambda > 18 is set per-example, as in DynamicKTO (Wang et al., 25 Jul 2025).

3. Comparison with DPO, SFT, and Other Preference-Based Methods

KTO generalizes DPO by explicitly modeling nonlinear risk sensitivity and reference dependence, and accommodating single-label data:

  • DPO (Shuieh et al., 9 May 2025, Ethayarajh et al., 2024, Viswanadha et al., 23 Jun 2025): operates on paired preferences, optimizes a logistic surrogate λ>1\lambda > 19. Represents special case of KTO with linear v(z,zref;α,λ)={(zzref)α,zzref λ(zrefz)α,z<zrefv(z, z_{\mathrm{ref}}; \alpha, \lambda) = \begin{cases} (z - z_{\mathrm{ref}})^{\alpha}, & z \geq z_{\mathrm{ref}} \ -\lambda\, (z_{\mathrm{ref}} - z)^{\alpha}, & z < z_{\mathrm{ref}} \end{cases}0, v(z,zref;α,λ)={(zzref)α,zzref λ(zrefz)α,z<zrefv(z, z_{\mathrm{ref}}; \alpha, \lambda) = \begin{cases} (z - z_{\mathrm{ref}})^{\alpha}, & z \geq z_{\mathrm{ref}} \ -\lambda\, (z_{\mathrm{ref}} - z)^{\alpha}, & z < z_{\mathrm{ref}} \end{cases}1.
  • Supervised Fine-Tuning (SFT): lacks direct use of negative preferences and cannot encode risk asymmetry.
  • Other variants: IPO, SMO–Aug, ORPO, Step-DPO; all require strong preference pairing and may be less robust under data sparsity, non-IID distributions, or feedback streams (Garg et al., 2024, Ye et al., 24 Jan 2025, Spadea et al., 20 Feb 2025).

KTO provides strong sample efficiency, notably for federated learning (Spadea et al., 20 Feb 2025, Spadea et al., 14 Oct 2025), guardrail enforcement (Garg et al., 2024), and safety-critical domains (Lim et al., 18 Feb 2025, Nghiem et al., 3 Dec 2025), and outperforms DPO in low-resource, unpaired, or highly imbalanced settings.

4. Practical Applications and Empirical Results

Domain Summaries

  • Tool Learning & Error Correction: HiTEC-KTO incorporates KTO into error-aware tool call optimization; KTO delivers v(z,zref;α,λ)={(zzref)α,zzref λ(zrefz)α,z<zrefv(z, z_{\mathrm{ref}}; \alpha, \lambda) = \begin{cases} (z - z_{\mathrm{ref}})^{\alpha}, & z \geq z_{\mathrm{ref}} \ -\lambda\, (z_{\mathrm{ref}} - z)^{\alpha}, & z < z_{\mathrm{ref}} \end{cases}2 point improvements in F1-Name and F1-Param on diverse benchmarks (Cui et al., 28 May 2025).
  • Logical Form Translation: KTO reduces syntax errors and increases logical accuracy in translating NL to FOL, outperforming DPO and SFT by v(z,zref;α,λ)={(zzref)α,zzref λ(zrefz)α,z<zrefv(z, z_{\mathrm{ref}}; \alpha, \lambda) = \begin{cases} (z - z_{\mathrm{ref}})^{\alpha}, & z \geq z_{\mathrm{ref}} \ -\lambda\, (z_{\mathrm{ref}} - z)^{\alpha}, & z < z_{\mathrm{ref}} \end{cases}3 F1 points (Viswanadha et al., 23 Jun 2025).
  • E-Commerce and User Behavior: In ADORE, KTO alignment reduces false negatives for relevance, boosting online CTR and ad revenue by v(z,zref;α,λ)={(zzref)α,zzref λ(zrefz)α,z<zrefv(z, z_{\mathrm{ref}}; \alpha, \lambda) = \begin{cases} (z - z_{\mathrm{ref}})^{\alpha}, & z \geq z_{\mathrm{ref}} \ -\lambda\, (z_{\mathrm{ref}} - z)^{\alpha}, & z < z_{\mathrm{ref}} \end{cases}4 (Fang et al., 2 Dec 2025).
  • Federated Personalization: KTO enables communication-efficient, robust, privacy-preserving preference learning, maintaining gains even in non-IID or redistributed settings (Spadea et al., 20 Feb 2025, Spadea et al., 14 Oct 2025).
  • Safety Alignment: SFT+KTO achieves v(z,zref;α,λ)={(zzref)α,zzref λ(zrefz)α,z<zrefv(z, z_{\mathrm{ref}}; \alpha, \lambda) = \begin{cases} (z - z_{\mathrm{ref}})^{\alpha}, & z \geq z_{\mathrm{ref}} \ -\lambda\, (z_{\mathrm{ref}} - z)^{\alpha}, & z < z_{\mathrm{ref}} \end{cases}5 toxicity reduction in low-resource safety alignment, with far lower false positive rates than SFT+DPO (Lim et al., 18 Feb 2025).
  • Video Multi-Task Reasoning: KTO bridges SFT and RL, sharply improving accuracy and resource efficiency in video agents (Zhang et al., 24 Mar 2026).
  • Multi-Agent Language Games: MaKTO’s KTO delivers v(z,zref;α,λ)={(zzref)α,zzref λ(zrefz)α,z<zrefv(z, z_{\mathrm{ref}}; \alpha, \lambda) = \begin{cases} (z - z_{\mathrm{ref}})^{\alpha}, & z \geq z_{\mathrm{ref}} \ -\lambda\, (z_{\mathrm{ref}} - z)^{\alpha}, & z < z_{\mathrm{ref}} \end{cases}6–v(z,zref;α,λ)={(zzref)α,zzref λ(zrefz)α,z<zrefv(z, z_{\mathrm{ref}}; \alpha, \lambda) = \begin{cases} (z - z_{\mathrm{ref}})^{\alpha}, & z \geq z_{\mathrm{ref}} \ -\lambda\, (z_{\mathrm{ref}} - z)^{\alpha}, & z < z_{\mathrm{ref}} \end{cases}7\% win rate improvement versus baseline RL/LLM policies (Ye et al., 24 Jan 2025).
  • Geospatial Hallucination Mitigation: DynamicKTO surpasses static KTO variants with +29.6% macro-average score in factuality (Wang et al., 25 Jul 2025).
  • Continuous Post-Training: Two-stage SFT→KTO pipelines yield additive gains for small LMs and code LMs, especially when KTO is applied with strong negative sampling (Zhai, 2024, Liu et al., 2024).

Selected quantitative outcomes are summarized below:

Scenario KTO Gain over Baseline Reference
CTR in E-commerce +0.98% vs +0.48% (w/ KTO) (Fang et al., 2 Dec 2025)
Safety: Singlish Toxicity 99% reduction, FPR 1% (Lim et al., 18 Feb 2025)
Logic translation (FOL) +2–5 pp “correct,” –5–15 syntax err (Viswanadha et al., 23 Jun 2025)
Tool-calling F1-Param 60.66 → 69.31 (Qwen2.5-1.5B) (Cui et al., 28 May 2025)
Geospatial accuracy 0.3748 → 0.4858 (DynamicKTO) (Wang et al., 25 Jul 2025)

5. Implementation Considerations and Limitations

  • Hyperparameters: Loss aversion (v(z,zref;α,λ)={(zzref)α,zzref λ(zrefz)α,z<zrefv(z, z_{\mathrm{ref}}; \alpha, \lambda) = \begin{cases} (z - z_{\mathrm{ref}})^{\alpha}, & z \geq z_{\mathrm{ref}} \ -\lambda\, (z_{\mathrm{ref}} - z)^{\alpha}, & z < z_{\mathrm{ref}} \end{cases}8), curvature (v(z,zref;α,λ)={(zzref)α,zzref λ(zrefz)α,z<zrefv(z, z_{\mathrm{ref}}; \alpha, \lambda) = \begin{cases} (z - z_{\mathrm{ref}})^{\alpha}, & z \geq z_{\mathrm{ref}} \ -\lambda\, (z_{\mathrm{ref}} - z)^{\alpha}, & z < z_{\mathrm{ref}} \end{cases}9), and probability weighting (0<α10 < \alpha \leq 10) are seldom fully documented in downstream KTO applications; defaults match Prospect Theory (e.g., 0<α10 < \alpha \leq 11, 0<α10 < \alpha \leq 12, 0<α10 < \alpha \leq 13 per (Ethayarajh et al., 2024)).
  • Reference Policy: Chosen as SFT checkpoint, pretrained LLM, or mixed policy, with KL-divergence 0<α10 < \alpha \leq 14 typically estimated on-batch.
  • Batch Sizes and Stability: Small batches can introduce high baseline noise; larger batches or running averages are advised (Garg et al., 2024).
  • Learning Rates: KTO requires significantly lower learning rates (0<α10 < \alpha \leq 15) for stability, due to the increased sensitivity of logistic/prospect-based losses (Garg et al., 2024, Zhai, 2024).
  • Negative Sampling: Strong preference and large performance gaps between positive/negative examples are necessary for maximized KTO effectiveness in code and agentic settings (Liu et al., 2024, Ye et al., 24 Jan 2025).
  • Labeling Flexibility: KTO excels when unary (single-output) judgments are easier, or when preference data are highly imbalanced or non-IID (Spadea et al., 20 Feb 2025, Ye et al., 24 Jan 2025).

Key limitations as reported include instability on code tasks without curated negative mining (Liu et al., 2024), dependence on band-limited KL baselines, and moderate sensitivity to hyperparameter mis-tuning or class imbalance. In federated and guardrail alignment, KTO is robust to data redistribution and supports incremental, privacy-aware adaptation (Spadea et al., 20 Feb 2025, Garg et al., 2024).

6. Extensions, Variants, and Recent Innovations

  • DynamicKTO: Category-conditional or sample-adaptive risk scale 0<α10 < \alpha \leq 16 for domain complexity (e.g., entity/relation/attribute in geospatial hallucination tasks), yielding superior performance to hand-tuned static 0<α10 < \alpha \leq 17 (Wang et al., 25 Jul 2025).
  • KTO-S: Augments the loss with signed KL regularization, directly enforcing contraction between trained and reference policies, improving training stability and convergence (Lim et al., 18 Feb 2025).
  • Federated KTO: Implements KTO in federated settings (FedFLARKO, KTOO/KTOR), supporting heterogeneous client data and communication efficiency (Spadea et al., 14 Oct 2025, Spadea et al., 20 Feb 2025).
  • Multi-Agent KTO (MaKTO): Iterates KTO with in-context exploration and fine-grained, stepwise preference extraction over multi-agent dialogues (Ye et al., 24 Jan 2025).

A recurrent theme is the ease of composing KTO with SFT and DPO in multi-stage pipelines (e.g., SFT→KTO→DPO or SFT→KTO→RL), leveraging the strengths of distributional pre-alignment and prospect-aware adaptation.

7. Empirical Robustness, Sample Efficiency, and Generalization

KTO consolidates its value as a general, sample-efficient alignment method. It maintains or exceeds DPO performance even under:

In aggregate, KTO matches or outperforms conventional RLHF surrogates in open-domain, safety-critical, multi-agent, and low-resource tasks, especially when feedback is naturally unary or preference annotation is costly.


References: For foundational formalism and comparative experiments across model scales, see Ethayarajh et al., "Model Alignment as Prospect Theoretic Optimization" (Ethayarajh et al., 2024). For major downstream variants and benchmark applications, see (Cui et al., 28 May 2025, Fang et al., 2 Dec 2025, Viswanadha et al., 23 Jun 2025, Zhang et al., 24 Mar 2026, Ye et al., 24 Jan 2025, Wang et al., 25 Jul 2025, Spadea et al., 14 Oct 2025, Lim et al., 18 Feb 2025), among others.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (15)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Kahneman–Tversky Optimization (KTO).