Eliminates the requirement for paired (y_w, y_l) preferences on the same prompt x.
Mechanism
Eliminates the requirement for paired (yw,yl) preferences on the same prompt x. Inspired by Kahneman & Tversky's Prospect Theory (human utility is concave in gains, convex and steeper in losses relative to a reference point z0), KTO trains directly on unpaired binary feedback (x,y,label∈{desirable,undesirable}):
LKTO(θ)=Ex,y[λy−v(x,y)],v(x,y)=⎩⎨⎧λDσ(βlogπref(y∣x)πθ(y∣x)−z0)λUσ(z0−βlogπref(y∣x)πθ(y∣x))y∼Ddesirabley∼Dundesirable
where z0=Ex′,y′∼πθ[βlogπref(y′∣x′)πθ(y′∣x′)] estimates the KL reference point across mismatched batch items.