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

  Research question: Given a                         (§3) On- and off-policy                                                             (§4) SIMPLEMIX: Mixing on- and
  collection of on- and off-policy                   data are complementary                                                            off-policy data to improves alignment
  data, what approach will lead to                                                                                  Examples:
  the best aligned model?




                                                                               Resoning Tasks Open-ended Tasks
                                                                                                                  "Joy can read 8
                                                                                                                 pages of a book in
  The target policy model:                                                                                        20 minutes. How
                                                                                                                 many hours would
                                                                                                                 it take her to read
   On-policy                                                                                                         120 pages?"
     Data

                                                                                                                    "Describe an
                                                                                                                   imaginary city
 Other frontier models                                                                                           where nature and
 as off-policy oracles:                                                                                          technology thrive
                                                                                                                     together."
  Off-policy
    Data




Figure 1. Left panel: Our work studies data origin in preference optimization of LMs. Middle panel: We show that on-policy data and
off-policy data are complementary: on-policy data mostly improves the model’s performance on reasoning tasks that are objectively
correct or incorrect (e.g., Math and Coding) while off-policy data improves on sub-tasks where humans might disagree with each other
(e.g., creative writing and personal recommendation) (§3). Right panel: Our proposed method S IMPLE M IX mixes on and off-policy data,
outperforming solely using either on or off-policy data. (§4)


of our method despite its simplicity (§4).                              Preference Optimization (PO) While SFT is a step for-
                                                                        ward in aligning LMs to follow human instructions, the
Figure 1 illustrates our work: The complementary nature of
                                                                        resulting model is not aligned to human preferences. For
on- and off-policy data in LM preference learning: on-policy
                                                                        example, humans often prefer structured, concise yet com-
DPO (Rafailov et al., 2024) outperforms off-policy DPO in
                                                                        plete responses. To align πSFT to human preferences, we
reasoning tasks, e.g., solving a math problem, while under-
                                                                        perform Preference Optimization (PO) on top of πSFT with
performs in open-ended tasks, e.g., describing an imaginary
                                                                        a pairwise preference distribution: D = {(x, yw , yl )...},
city(§3); S IMPLE M IX: Mixing on- and off-policy data in
                                                                        where there are two responses (yw , yl ) for a single prompt.
DPO can outperform DPO with a single data source (§4).
                                                                        yw is preferred by human annotators (usually referred to
S IMPLE M IX achieves an average improvement of 6.03 over
                                                                        as the “winning” or “chosen” response), and yl is dispre-
on-policy and off-policy methods on Alpaca Eval 2.0 and
                                                                        ferred (usually referred to as the “losing” or “rejected” re-
outperforms existing hybrid approaches by 3.05 while main-
                                                                        sponse). In essence, PO aims to steer πSFT towards the
taining simplicity.
                                                                        winning responses that are preferred by humans. Formally,
To sum up, our contribution is two-fold:                                the objective is defined as (Rafailov et al., 2024):
(1) We show that on- and off-policy data in preference learn-                                                                    "
ing are complementary: on-policy data excels at tasks re-                                                                                       πθ (yw | x)
                                                                           E(x,yw ,yl )∼D log σ β log
quiring reasoning and objective verification, such as math                                                                                     πSFT (yw | x)
and coding, whereas off-policy data is more effective for                                                                                                             !#
open-ended tasks, such as creative writing and personal                                                                                            πθ (yl | x)
                                                                                                                                          − β log                          ,   (1)
recommendations.                                                                                                                                  πSFT (yl | x)
(2) We demonstrate that a good balance between on- and
off-policy data consistently outperforms approaches relying             where σ is a non-decreasing function. Maximizing (1)
solely on either data source.                                           should maximize the increase in log-likelihood of yw and
                                                                        the decrease of yl . Ideally, the model learns to generalize
                                                                        characteristics that make yw preferred. For example, if yw
2. Preliminaries and Notations                                          are constructed that are factually correct and yl contains hal-
We consider post-training of LMs. Given a user prompt                   lucinations, the hope is that by steering the policy towards
x in natural language, the language model π(·|x) takes                  a few factually correct responses, the policy generalizes so
the prompt as input and outputs a probability distribu-                 that it assigns high probability to all responses that are fac-
tion over natural language responses y. The Supervised                  tually correct. We differentiate between on- and off-policy
Fine-Tuning (SFT) stage of LM updates a pre-trained LM                  PO depending on D: from which yw and yl are sampled.
πbase on a dataset with (prompt, response) pairs: DSFT =
{(x1 , y1 ), . . . , (xN , yN )} with the following maximum like-       On-policy PO Assuming that the LM π is parameterized
                                           QN
lihood objective: πSFT ∈ arg maxπ i=1 π(yi | xi ).                      by θ. If the responses y are sampled from a policy that
                                                                        is derived from either πSFT or πθ , we describe y as on-

                                                                    2
