         S IMPLE M IX: Frustratingly Simple Off- and On-policy Data Mixing in Language Model Preference Learning

     Method Name                         Sampler of yw , yl                     Loss Function
                                                       Non-Hybrid Methods
     Off-policy DPO                      yw , yl ∼ D                            DPO(yw , yl )
     On-policy DPO                       yw , yl ∼ πSFT                         DPO(yw , yl )
                                                          Hybrid Methods
                                                     3/2 −1/2  1/2 1/2
     DPO-Mix-P (Shi et al., 2024)        yw , yl ∼ {πθ πSFT , πθ πSFT }         DPO(yw , yl )                                        
                                                                                                                          πθ (y|x)
     HyPO (Song et al., 2024b)           yw , yl ∼ D, y ∼ πθ                    DPO(yw , yl ) - λ log(y | x) · sg∗       πSFT (y|x)
     S IMPLE M IX (Ours)                 yw , yl ∼ {D, πSFT }                   DPO(yw , yl )

Table 1. A comparison between S IMPLE M IX and other baselines we compare in this work. ∗ sg() denotes the stop gradient operation.


yl are sampled from πSFT and the off-policy dataset D with            Evaluation To evaluate the aligned policy, we follow ex-
equal probability. An in-depth study on the effect of differ-         isting literature on LM alignment and use the same 7 bench-
ent sampling probabilities is at §5.1.                                marks in the FineWeb (Penedo et al., 2024) evaluation suite,
                                                                      containing Commonsense QA (CQA; Talmor et al. (2019)),
Baselines We compare the following baselines with S IM -              Hellaswag (HS; Zellers et al. (2019)), Openbook QA (OQA;
PLE M IX. A more detailed comparison of our baselines with            Mihaylov et al. (2018a)), PIQA (Bisk et al., 2020), Wino-
S IMPLE M IXis in Table 1.                                            grade (Sakaguchi et al., 2020), ARC-Challenge (ARC-C;
                                                                      Clark et al. (2018)), and MMLU (Hendrycks et al., 2020),
                                                                      which covers 7 knowledge and common sense based bench-
• On-policy DPO: Winning and losing response sampled
                                                                      marks. We also use Ifeval (Zhou et al., 2023) and Alpaca
  from the SFT model: yw , yl ∼ πSFT (· | x).
                                                                      Eval 2.0 (Dubois et al., 2023; 2024) for evaluating general
• Off-policy DPO: Winning and losing response sampled                 instruction following ability. We report the average scores
  from an off-policy dataset: yw , yl ∼ Doff .                        of the seven tasks + Ifeval prompt level loose accuracy as
                                                                      Avg. Score and Alpaca Eval 2.0 length controlled win rate
• HyPO (Song et al., 2024b): Off-policy DPO with KL                   (LC). Detailed descriptions of benchmarks can be found in
  Regularization using on-policy data: yw , yl ∼ Doff , y ∼           Appendix D.
  πθ (· | x). Compared to HyPO (Song et al., 2024b), S IM -
  PLE M IX changes the online KL regularization objective             4.2. Main Results
  to a DPO loss.
                                                                      Table 2 shows the experiment results on Alpaca Eval 2.0
• DPO-Mix-P (Shi et al., 2024): On-policy data generated              and averaged scores over 8 benchmarks (Avg. Score) for
  with a interpolation between the current model πθ and               all of our baselines. We report the detailed breakdown of
                      3/2 −1/2   1/2 1/2                              individual benchmarks in Appendix E.
  πSFT . yw , yl ∼ {πθ πSFT , πθ πSFT }. Compared to
  DPO-Mix-P (Shi et al., 2024), S IMPLE M IX can be seen              We find that S IMPLE M IX consistently yields the best per-
  as a “hard” version of sampling from an interpolation               formance across both models and evaluation metrics.
  between an off-policy LM and the SFT policy πSFT with               This indicates that the widely available source of off-policy
  equal weights.                                                      preference data can still provide valuable signals to pref-
                                                                      erence optimization. We plot the per-task performance in
Models and Datasets We experiment with two πSFT mod-                  Alpaca Eval 2.0 of models trained with S IMPLE M IX in
els meta-llama/Llama-3.1-8B-Instruct and                              Figure 8 in Appendix G. S IMPLE M IX offers a balance be-
allenai/Llama-3.1-Tulu-3-8B-SFT with DPO                              tween the performance on reasoning (math and coding) and
(Rafailov et al., 2024) and experiment on two pairwise pref-          open-ended tasks (creative writing and recommendation).
erence datasets: Ultrafeedback (Cui et al., 2024) and Help-
Steer2 (Wang et al., 2024). A detailed description of the             5. Ablations in Preference Data Curation
collection of prompts and responses in both datasets can be
found in Appendix C. We train our models for one epoch                In this section, we investigate curation strategies in prefer-
on the same amount of (yw , yl ) pairs for every baseline.            ence data curation. Specifically, we look into the impact of
This controls that every method has seen the same amount              response diversity (5.1), the mixture ratio between on- and
of data, although on-policy DPO requires more computing               off-policy data (5.2), and the effect of filtering off-policy
since it requires sampling from either πSFT or πθ .                   data (5.3).

                                                                  5
