What SimPO is
DPO scores an answer by how much more likely the policy makes it than a frozen reference model, summed over its tokens (see the DPO tab). SimPO (simple preference optimisation) changes that reward in two ways. It drops the reference model, and it averages over the answer's tokens instead of summing. It also asks the chosen answer to win by a fixed target margin . For a prompt , a chosen answer and a rejected answer :
This page runs SimPO on the DPO tab's eight UltraFeedback pairs from the same SmolLM2-135M-Instruct, with the same learning rate () and the same ten steps, using TRL's CPOTrainer with loss_type simpo, and . The DPO run sits beside it on the same pairs.
Why an average
Every token adds a negative log-probability, so a longer answer's sum is lower whatever its quality. The Average, not sum table shows each answer's length, its summed log-probability, the average and the reward. A summed reward is tilted by length. Park et al. showed that DPO can exploit this, making answers longer without making them better. The average log-probability per token is also what decoding favours: Meng et al. point out that a policy generates text by its likelihood, so the reward it is trained on should rank answers the same way. Dividing by makes the training reward that ranking.
Without the reward is the policy's own likelihood, so it is negative, and it is not 0 at the start. On these pairs the starting model's average log-probability is already higher for 5 of the 8 chosen answers, so SimPO ranks 5 of 8 the right way round before any update, where all of DPO's margins start at 0. Dropping the reference also saves a second copy of the model and its forward passes.
The target margin
In DPO a pair's loss is when its margin is 0 and falls as soon as the margin turns positive. SimPO subtracts first, so the chosen answer has to win by before the loss eases off. The step-0 batch loss is 1.111, not . The All 8 pairs at step … bars show each pair's against its value at step 0. In SimPO margin r_w − r_l · every pair, the dashed line marks , the margin the loss pushes past.
The gradient weights each pair by how far it still falls short, and divides each answer's share by its length:
Ten updates beside DPO
Over the ten steps the batch loss falls from 1.111 to 0.229 and the mean margin rises from 0.466 to 2.467, with all eight pairs ranked right. Recomputed one sequence at a time, the loss matches TRL's log to . The SimPO beside DPO table puts the two methods' rewards, margins, losses and pair counts side by side for the selected pair and step. The two reward scales differ: DPO's multiplies a summed log-ratio, SimPO's an average log-probability. Its chart follows the selected pair's average log-probabilities under both runs, SimPO solid and DPO dashed.
The token strips in The DPO tab's pair shade each token by its change since step 0. SimPO has no reference, but step 0 is where DPO's reference sits, so the two tabs' strips read the same way. TRL's CPOTrainer appends its own end token after the template's <|im_end|>, so each answer has one token more than in the DPO tab. The greedy answer of every pair changed.
Where SimPO came from
Contrastive preference optimisation (CPO, Xu et al., 2024) had already dropped the reference model for machine translation, pairing a reference-free preference term with an SFT loss on the chosen answer. TRL implements both in one CPOTrainer, and with cpo_alpha 0, as here, the SFT term is off. SimPO (Meng, Xia and Chen, 2024) added length normalisation and the target margin. On their benchmarks they report SimPO beating DPO by up to 6.4 points on AlpacaEval 2 and 7.5 on Arena-Hard, without much longer answers. ORPO (the ORPO tab) is another reference-free method; it builds the preference term into SFT itself.
Papers
- SimPO: Simple Preference Optimization with a Reference-Free Reward Introduces SimPO: the length-normalised log-likelihood as the reward, no reference model, and a target margin γ.
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model DPO, the method SimPO modifies and the run this page compares with (see the DPO tab).
- Contrastive Preference Optimization: Pushing the Boundaries of LLM Performance in Machine Translation CPO: a reference-free preference loss plus SFT, implemented in the TRL CPOTrainer that runs SimPO here.
- Disentangling Length from Quality in Direct Preference Optimization Shows that DPO can exploit answer length, the bias a per-token average removes.
- UltraFeedback: Boosting Language Models with Scaled AI Feedback The source of the eight preference pairs, shared with the DPO and ORPO tabs.
- SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Model SmolLM2-135M-Instruct, the starting model of both runs on this page.