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


                                               Tianjian Li 1 Daniel Khashabi 1


                          Abstract                                   2022), and produce responses aligned with human values
                                                                     (Ouyang et al., 2022).
       Aligning language models with human pref-
       erences relies on pairwise preference datasets.               The ongoing debate (Ivison et al., 2024; Tajwar et al., 2024;
       While some studies suggest that on-policy data                Tang et al., 2024; Xu et al., 2024c) in the literature that
       consistently outperforms off -policy data for pref-           compares alignment with on-policy data (data is sampled
       erence learning, others indicate that the advan-              from the LM to be aligned) with off-policy data (data is
       tages of on-policy data may be task-dependent,                sampled not from the LM to be aligned). The debate arrives
       highlighting the need for a systematic exploration            at mismatched conclusions, with some works reporting on-
       of their interplay.                                           policy outperforms off-policy (Tajwar et al., 2024; Xu et al.,
                                                                     2024c) while others reporting that the gains from on-policy
       In this work, we show that on-policy and off-                 training are minimal, and sometimes even underperform off-
       policy data offer complementary strengths in pref-            policy training (Ivison et al., 2024; Ahmadian et al., 2024;
       erence optimization: on-policy data is particu-               Lambert et al., 2024a). Existing work (Ivison et al., 2024;
       larly effective for reasoning tasks like math and             Xu et al., 2024c) that compares on- and off-policy data does
       coding, while off-policy data performs better on              not control using the same algorithm under different data
       open-ended tasks such as creative writing and                 sources, and does not investigate the impact of task types
       making personal recommendations. Guided by                    (Tang et al., 2024).
       these findings, we introduce S IMPLE M IX, an ap-
       proach to combine the complementary strengths                 To address these weaknesses, we vary only the data source
       of on-policy and off-policy preference learning               and break down the performances by different task types to
       by simply mixing these two data sources. Our                  answer the following research questions:
       empirical results across diverse tasks and bench-
       marks demonstrate that S IMPLE M IX substantially             (Q1 ) Under what circumstances on- vs off-policy data offer
       improves language model alignment. Specifically,                    different strengths?
       S IMPLE M IX improves upon on-policy DPO and                  (Q2 ) Can we leverage their complementarity for more effi-
       off-policy DPO by an average of 6.03% on Al-                        cient alignment?
       paca Eval 2.0. Moreover, it outperforms prior
       approaches that are much more complex in com-                 With regards to (Q1 ), we observe that on-policy data and
       bining on- and off-policy data, such as HyPO and              off-policy data offer complementary strengths in preference
       DPO-Mix-P, by an average of 3.05%.                            learning of LMs: On-policy data is most effective in tasks
                                                                     that tend to have objective answers and require reasoning
                                                                     skills, e.g., math and coding. Off-policy data is effective in
1. Introduction                                                      more open-ended tasks, e.g., creative writing and making
                                                                     personal recommendations, where it is common to have
Alignment of Language Models (LMs) has bestowed them                 multiple differing preferred responses (§3).
with the ability to learn better from demonstrations (Brown
et al., 2020), extrapolate from reasoning chains (Wei et al.,        To address (Q2 ), we propose S IMPLE M IX: to mix on- and
                                                                     off-policy data for preference learning. Our approach con-
   1
     Center for Language and Speech Processing, Johns Hop-           sistently improves upon only using on- or off-policy data
kins University, Baltimore, US. Correspondence to: Tianjian Li       solely in data-constrained setups where the same amount of
<tli104@jhu.edu>.                                                    responses is used for each method. Furthermore, we show
Proceedings of the 42 nd International Conference on Machine         that S IMPLE M IX is able to outperform prior approaches that
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025          mix on- and off-policy data in more complex ways (Song
by the author(s).                                                    et al., 2024b; Shi et al., 2024), showcasing the effectiveness

                                                                 1
