Mechanism

Reference-free monolithic post-training method that combines SFT cross-entropy on ywy_w with a log-odds ratio penalty between ywy_w and yly_l in a single stage (no πref\pi_{\text{ref}} copy needed): LORPO(θ)=LSFT(x,yw)−λlog⁡σ(log⁡oddsθ(yw∣x)oddsθ(yl∣x)),oddsθ(y∣x)=Pθ(y∣x)1−Pθ(y∣x)\mathcal{L}_{\text{ORPO}}(\theta) = \mathcal{L}_{\text{SFT}}(x, y_w) - \lambda \log \sigma\left(\log \frac{\text{odds}_\theta(y_w\mid x)}{\text{odds}_\theta(y_l\mid x)}\right), \quad \text{odds}_\theta(y\mid x) = \frac{P_\theta(y\mid x)}{1 - P_\theta(y\mid x)} where Pθ(y∣x)=exp⁡(1∣y∣∑t=1∣y∣log⁡πθ(yt∣x,y<t))P_\theta(y\mid x) = \exp\left(\frac{1}{|y|}\sum_{t=1}^{|y|} \log \pi_\theta(y_t\mid x, y_{<t})\right) is the geometric mean token probability.

References

  1. ORPO: Monolithic Preference Optimization without Reference Model ↗

    Jiwoo Hong, Noah Lee, James Thorne · 2024