Triple Preference Optimization:
Achieving Better Alignment with Less Data in a Single Step Optimization
Abstract
Large Language Models (LLMs) perform well across diverse tasks, but aligning them with human demonstrations is challenging. Recently, Reinforcement Learning (RL)-free methods like Direct Preference Optimization (DPO) have emerged, offering improved stability and scalability while retaining competitive performance relative to RL-based methods. However, while RL-free methods deliver satisfactory performance, they require significant data to develop a robust Supervised Fine-Tuned (SFT) model and an additional step to fine-tune this model on a preference dataset, which constrains their utility and scalability. In this paper, we introduce Triple Preference Optimization (TPO), a new preference learning method designed to align an LLM with three preferences without requiring a separate SFT step and using considerably less data. Through a combination of practical experiments and theoretical analysis, we show the efficacy of TPO as a single-step alignment strategy. Specifically, we fine-tuned the Phi-2 (2.7B) and Mistral (7B) models using TPO directly on the UltraFeedback dataset, achieving superior results compared to models aligned through other methods such as SFT, DPO, KTO, IPO, CPO, and ORPO. Moreover, the performance of TPO without the SFT component led to notable improvements in the MT-Bench score, with increases of +1.27 and +0.63 over SFT and DPO, respectively. Additionally, TPO showed higher average accuracy, surpassing DPO and SFT by 4.2% and 4.97% on the Open LLM Leaderboard benchmarks. Our code is publicly available at https://github.com/sahsaeedi/triple-preference-optimization.
1 Introduction
LLMs are trained across a wide array of tasks, demonstrating their remarkable versatility in solving diverse tasks Brown et al. (2020); Narayanan et al. (2021); Bubeck et al. (2023). However, their training on data of varying quality can lead to many issues, such as the generation of toxic or harmful text under certain contexts Perez et al. (2022); Ganguli et al. (2022), and in general, the generation of outputs that are not desired by humans. Hence, it is crucial to align LLMs with human expectations and preferences that prioritize their helpfulness, honesty, and harmlessness Bai et al. (2022).
Supervised Fine-Tuning (SFT) is a direct alignment method that involves fitting a model to human-written data Sanh et al. (2022). However, this approach fails to fully impart the human perspective to the model. During training, the model only receives a reference response for each input, thus lacking exposure to incorrect answers and preferences, which ultimately constrains its performance on downstream tasks Touvron et al. (2023).
A prominent method in AI alignment for LLMs is Reinforcement Learning with Human Feedback (RLHF) Ouyang et al. (2022). Despite its impressive performance relative to SFT, RLHF faces limitations such as instability and susceptibility to reward hacking Liu et al. (2024). Consequently, a recent approach called Direct Preference Optimization (DPO) Rafailov et al. (2023) has emerged. DPO is an RL-free method that directly optimizes human preferences by shifting from RL to simple binary cross-entropy. However, DPO encounters several limitations: 1) high dependency on the SFT part Tunstall et al. (2023), 2) tendency to overfit beyond a single epoch Azar et al. (2023), and 3) inefficient learning and memory utilization Xu et al. (2024).
To address these limitations, Various alignment methods have been proposed for dialogue systems Tunstall et al. (2023), harmful and helpfulness question answering Wu et al. (2023), summarization Zhao et al. (2023), and translation Xu et al. (2024) and all these studies include a separate SFT component. During SFT, models are fine-tuned to generate appropriate responses to the corresponding input prompts. Meanwhile, in DPO, models are fine-tuned to enhance the likelihood of generating preferred responses over less desirable ones and not to stray far away from the SFT model Rafailov et al. (2023).
In this paper, we introduce the Triple Preference Optimization (TPO), a new preference learning approach. In TPO, we combine the two separate optimization steps (supervised fine-tuning and preference learning) into a single step based on Pareto Front concept Lotov and Miettinen (2008), with the training data having both the gold standard response (as in SFT) and the preferences (as in PPO/DPO) in a consolidated format. Thus, our training data will be of the form (input prompt, gold standard response , preferred response , less-preferred response ). Specifically, we jointly optimize a policy model with and in one step (See Figure 1).
Our results show that TPO exhibits impressive performance compared to SFT across various benchmarks and outperforms other alignment methods such as DPO. Specifically, Mistral (7B), fine-tuned by TPO and trained with six times less data than other alignment techniques, outperforms SFT, DPO, KTO, IPO, CPO, and ORPO across nine benchmarks on the Open LLM Leaderboard. Notably, Mistral aligned with TPO achieved a +0.72 increase in the MT-Bench score over SFT.
Overall, TPO addresses two key shortcomings in alignment tasks. Firstly, by removing justified in Section 3, TPO mitigates the inefficient learning and memory utilization issues observed in DPO, IPO, and KTO, allowing for more computational efficiency with less memory usage. Secondly, TPO enhances performance over SFT and other alignment methods by maximizing the likelihood of gold response, regularized by parameter . and simultaneously optimizing between two preferences (preferred and less-preferred responses). Despite TPO’s need for three preferences and its higher cost relative to other methods, our findings reveal that it’s possible to considerably lessen the training data required and still achieve superior outcomes (See Table 1).
Our findings suggest that a separate SFT step is not necessary for TPO and, in certain scenarios, having one may even hinder TPO’s performance (See Tables 1 and 2).
We summarize our primary contributions as follows:
-
1.
We propose a new preference learning method called Triple Preferences Optimization (TPO) that simplifies the alignment process and reduces two stages to one stage.
-
2.
Theoretically, we derive the TPO objective and show that combining the human expectation data and preference dataset achieves better performance.
- 3.
-
4.
Integrating the SFT step with the preference alignment step and moderating it with a regularization parameter () enhances the model’s performance while reducing the data required for training (See Figure 3).
2 Related Works
The performance of Large Language Models (LLMs) on a variety of tasks is remarkable Anil et al. (2023). Nonetheless, effectively aligning LLMs remains a significant challenge. Current studies have fine-tuned LLMs using datasets of human preferences, leading to improvements in translation Kreutzer et al. (2018), summarization Stiennon et al. (2022), story-telling Ziegler et al. (2019), instruction-following Ramamurthy et al. (2023), and dialogue systems.
RLHF Christiano et al. (2023), introduced in the literature, aims to optimize for maximum reward by interacting with a reward model trained using the Bradley-Terry (BT) model Bong and Rinaldo (2022), typically through reinforcement algorithms like Proximal Policy Optimization (PPO) Schulman et al. (2017). While RLHF enhances model performance, it faces challenges such as instability, reward hacking, and scalability inherent in reinforcement learning. Recent works have presented techniques to overcome these challenges by optimizing relative preferences without relying on reinforcement learning. Utilizing the Bradley-Terry (BT) model to optimize a model on preference datasets is instrumental in ensuring alignment with human preferences.
SLiC Zhao et al. (2023) introduced a novel method for ranking preferences generated by a supervised fine-tuned (SFT) model, incorporating calibration loss and regularization fine-tuning loss during training. Meanwhile, RRHF Yuan et al. (2023) trains the SFT model using a zero-margin likelihood contrastive loss, assuming multiple ranked responses for each input. While both SLiC and RRHF are effective, they lack theoretical foundations. In contrast, DPO offers a method to directly fit an SFT model to human preferences using the Bradley-Terry (BT) model, providing theoretical insights into the alignment process.
RSO Liu et al. (2024) merges the techniques of SLiC and DPO while introducing an improved approach for collecting preference pairs through statistical rejection sampling. IPO Azar et al. (2023) has mathematically revealed the limitations of the DPO approach concerning overfitting and generalization. It proposes a comprehensive objective for learning from human preferences. Zephyr Tunstall et al. (2023) has improved DPO by utilizing the distillation method.
KTO Ethayarajh et al. (2023), drawing inspiration from Kahneman and Tversky’s influential work on prospect theory Tversky and Kahneman (1992), seeks to maximize the utility of LLM outputs directly rather than optimizing the log-likelihood of preferences. By prioritizing the determination of whether a preference is desirable or undesirable, this method eliminates the requirement for two preferences for the same input.
Recently, CPO Xu et al. (2024) introduced an efficient method for learning preferences by combining maximum-likelihood loss with the DPO loss function, aiming to improve memory usage and learning efficiency. Additionally, ORPO Hong et al. (2024) proposed a novel approach by incorporating a penalty term to prevent the learning of unpreferred responses while enhancing the likelihood of learning preferred responses.
We observe two primary challenges in the alignment process addressed by the aforementioned studies. Firstly, alignment methods such as DPO require an SFT part or have better performance with an SFT part. Secondly, there are concerns regarding inefficient learning and memory usage. While the CPO has proven to be an effective learning approach, a conflict between its objectives may restrict the policy model’s performance. In this research, we investigate these limitations and seek to introduce a new algorithm to address them.
3 Triple Preference Optimization
In this section, we introduce Triple Preference Optimization (TPO), a new approach to preference learning. This method optimizes a policy model () by maximizing the likelihood of the gold response and optimizing for the preferences simultaneously.
Typically, in NLP tasks, we utilize a dataset , where is the input and is the gold standard response, crafted by humans or large models like GPT-4 and validated by humans. Additionally, for applying preference optimization methods, a dataset is needed, where and are the preferred and unpreferred responses respectively, generated by smaller models such as LLaMA-3. The aim of TPO is to optimize three preferences concurrently. To achieve this, we merge the and datasets into one dataset , establishing a response hierarchy of . Further details on the TPO objective will be discussed in the following subsection.
3.1 Deriving the TPO objective
Motivated by the goal of simplifying the alignment process to a single step and enhancing the learning mechanisms of the DPO, we derive the TPO objective. We start with a simple RL objective for aligning an LLM parameterized with , represented as with preferences. The RL objective is just maximizing the expected reward Ziegler et al. (2019) as shown in Equation 1:
(1) |
where represents the expected reward that the model receives for a given input and output . However, maximizing the reward without constraints can lead to distribution collapse in an LLM. Drawing inspiration from the Maximum Entropy Reinforcement Learning (MERL) framework Hejna et al. (2023), we have modified the RLHF objective, as detailed in Equation 4. The MERL framework aims to maximize causal entropy alongside the expected reward. This objective is formally defined in Equation 2.
(2) |
By definition of Entropy,
(3) |
The objective becomes,
(4) |
Based on this, the optimal policy model induced by a reward function could be derived as shown in Equation 5 (See Appendix A.1). It takes the following form:
(5) |
where is the new partition function. Inspired by Rafailov et al. (2023), we show that the reward function, in terms of the optimal policy that it induces, is calculated as per Equation 6 given below:
(6) |
Subsequently, we can represent the ground-truth reward in the form of its corresponding optimal policy that it induces.
Since the Bradley-Terry model is dependent only on the difference between the two reward functions, i.e., , where, we can reparameterize it as follows in Equation 7:
(7) | ||||
Similar to the reward modeling approach, we model the human preferences, which is now in terms of a parameterized policy . Thus, we formulate maximum-likelihood objective (preference objective) for a dataset as outlined in Equation 8:
(8) | ||||
Looking at the Equation 8, the objective is fitting an reward which is reparameterized as . In section 3.2, we theoretically explain that fitting this reward would ultimately recover the optimal policy.
The comparison between the loss function in Equation 8 and the DPO loss function indicates that the new function is more efficient because it requires only one model during training. However, even though maximizing the objective under the MERL setting prevents distribution collapse, it trains a pessimistic model, which also limits the model from learning the preferred responses effectively. To counteract this limitation, we maximize the likelihood of the gold response. The adjustment is specified in Equation 9.
(9) |
Based on Equations 8, and 9, the TPO is defined as a multi-objective (bi-objective) optimization problem as supported by Pareto Front concept Lotov and Miettinen (2008). The TPO loss function is framed as follows:
(10) |
where hyper-parameter () plays a crucial role in moderating the model’s learning of the gold response. The impact of the on the model’s performance is detailed in Section 4.3.
Insights into the TPO update.
A deeper mechanistic understanding of TPO can be achieved by analyzing the gradient of the loss function. The expression of this gradient in relation to the parameters is as follows:
(11) |
where is the reward inherently determined by the policy model . Intuitively, the gradient of the TPO loss function works to increase the likelihood of the gold completions , simultaneously enhancing the preference aspect by amplifying the likelihood of preferred completions and reducing the likelihood of the less-preferred completions , which are weighed by how incorrectly the implicit reward model orders the preferences. (more details on Appendix A.2). Notably, the hyper-parameters and significantly influence the performance of the policy model, as discussed further in Section 4.3.
Model | Align | ARC | TruthfulQA | Winogrande | HellaSwag | MMLU | Average |
Mistral | SFT | 60.41 | 43.73 | 74.19 | 81.69 | 60.92 | 64.18 |
Mistral+SFT | DPO | 59.04 | 46.70 | 76.63 | 82.10 | 60 | 64.91 |
Mistral+SFT | IPO | 59.30 | 42.22 | 76.4 | 81.02 | 59.93 | 63.77 |
Mistral+SFT | KTO | 57.84 | 49.88 | 76.47 | 81.61 | 59.73 | 65.1 |
Mistral+SFT | CPO | 57.50 | 53.22 | 75.92 | 80.37 | 58.41 | 65.08 |
Mistral | ORPO | 58.61 | 52.77 | 77.5 | 82.04 | 63.26 | 66.83 |
Mistral+SFT | TPO (our) | 58.02 | 59.05 | 76.47 | 80.6 | 59.48 | 66.72 |
Mistral | TPO (our | ) | 61.34 | 60 | 78.21 | 83.18 | 63.18 | 69.18 |
Mistral | TPO (our | ) | 60.23 | 57.34 | 78.29 | 83.01 | 63.75 | 68.52 |
3.2 Theory behind TPO
In this section, we provide a theoretical foundation for the TPO algorithm, drawing inspiration from Rafailov et al. (2023). We observe that the preference optimization objective aligns with the principles of a Bradley-Terry model, where the reward parameterization is defined as . Consequently, we optimize our parametric model in a manner similar to reward model optimization, as shown by Ouyang et al. (2022). We expand on the theory underlying this reparameterization of the reward function, illustrating that it does not constrain the range of reward models that can be modeled and ensures accurate retrieval of the optimal policy. We initiate this discussion by following the insights presented in DPO about the equivalent class of reward models.
Definition 3.1
Two reward functions and are equivalent iff for some function .
We can state the following two lemmas as it is apparent that there exists an equivalence relation, dividing the set of reward functions into distinct classes.
Lemma 3.1
Under the Plackett-Luce, and in particular the Bradley-Terry preference framework, two reward functions from the same class induce the same preference distribution. Rafailov et al. (2023)
Lemma 3.2
Two reward functions from the same equivalence class induce the same optimal policy under the constrained RL problem. Rafailov et al. (2023)
The proofs are shown in Appendix A.3.
Theorem 3.1
Under mild assumptions, all reward classes consistent with Plackett-Luce models can be represented with the reparameterization for some model . Rafailov et al. (2023)
As proposed in DPO, upon imposing certain constraints on the under-constrained Plackett-Luce family of preference models, such that we preserve the class of representable reward model, it possible to explicitly make the optimal policy in Equation 5 analytically tractable for all prompts . The theorem is elaborated in Appendix A.4. We further elaborate our theoretical basis for defining and optimally addressing the TPO objective within a multi-objective optimization framework.
Definition 3.2
Let denote objective, denote the feasible policy space, then in a multi-objective optimization setting, a policy is said to be Pareto optimal if there does not exist another policy such that for all and for at least one index j.
Looking at the objectives in Equation 8 and Equation 9, it is obvious that optimizing them together is non-trivial; that is, there does exist a policy that is optimal with respect to both objectives. It can be seen that the objectives are conflicting with each other, especially when , as one objective is maximizing the log probability and the other is minimizing the log probability. This means that the objectives are at least partly conflicting. For a multi-objective problem, Miettinen (1999) show that optimizing one objective and converting the other objective/s as a constraint with an upper bound, the solution to this problem is Pareto optimal. This shows that optimizing the TPO objective, which is a bi-objective problem, gives an optimal policy that is Pareto optimal as defined in 3.2.
Model | Align | MT-Bench | BB-causal | BB-sports | BB-formal | OpenBookQA |
---|---|---|---|---|---|---|
Mistral | SFT | 5.94 | 51.57 | 61.76 | 51.4 | 43.8 |
Mistral+SFT | CPO | 6.2 | 49.47 | 70.68 | 51.07 | 44.6 |
Mistral+SFT | DPO | 6.64 | 52.1 | 71.9 | 51 | 46.2 |
Mistral+SFT | IPO | 6.43 | 51.57 | 65.01 | 51.22 | 44.6 |
Mistral+SFT | KTO | 6.48 | 53.68 | 73.42 | 51.33 | 45.8 |
Mistral | ORPO | 5.47 | 54.21 | 73.93 | 50.4 | 44.4 |
Mistral+SFT | TPO (our) | 6.66 | 54.21 | 73.93 | 50.84 | 45.6 |
Mistral | TPO (our | ) | 6.22 | 55.26 | 73.63 | 51.06 | 48.2 |
Mistral | TPO (our | ) | 6.66 | 56.31 | 73.32 | 50.5 | 47.8 |
4 Experiments and Results
In this section, we present a comprehensive empirical analysis of TPO, yielding several key findings: 1) Phi-2+TPO and Mistral+TPO trained on 10K data outperform Phi-2+SFT and Mistral+SFT trained on 200K data by 12.7% and 7.2% on MT-Bench respectively. 2) Phi-2 fine-tuned with TPO surpasses the performance of models aligned with other methods on the MT-Bench. 3) Similarly, Mistral fine-tuned with TPO exceeds the performance of other alignment techniques across the majority of Open LLM Benchmarks. 4) Within the TPO method, the hyper-parameters and play a critical role in influencing performance outcomes. 5) An ablation study focusing on batch size adjustments reveals that enlarging the batch size leads to improved performance for models optimized with TPO.
4.1 Experimental Setup
Models.
All experiments were conducted using zephyr-sft-full and Mistral-7B-v0.1 as Mistral (7 B), and Phi-2 (2.7 B) Javaheripi et al. (2023). We utilized the Transformer Reinforcement Learning (TRL) library for fine-tuning von Werra et al. (2020). It’s noted that the notation "+" is used to indicate that a model has been fine-tuned with a specific algorithm, such as "+TPO". Further training details for each method are in Appendix B.
Datasets.
In this study, we employ two dialogue datasets: 1) UltraChat Ding et al. (2023) and 2) UltraFeedback Cui et al. (2023). UltraChat comprises 200k examples generated by GPT-3.5-TURBO across 30 topics and 20 text material types, offering a high-quality dataset utilized for training the SFT model. Meanwhile, UltraFeedback consists of a 64K set of responses generated by state-of-the-art models such as LLaMA-2 evaluated by a teacher model such as GPT-4. To train TPO, which requires three preferences, we create a custom dataset from the UltraFeedback dataset. Here, the response with the highest score serves as the reference response, the second-highest score as the chosen response, and the lowest score as the rejected response. In light of findings from Saeidi et al. (2024), which indicate that alignment methods perform better with smaller training sets on one epoch, and due to computational limitations, we restrict our analysis to 12K (10K for training and 2K for evaluation) data points, randomly selected from the custom UltraFeedback dataset (More details in Appendix B).
Model | Alignment Method | ||||||
---|---|---|---|---|---|---|---|
+SFT | +SFT+DPO | +SFT+IPO | +SFT+KTO | +SFT+CPO | +ORPO | +TPO | |
Phi-2 | 5.42 | 6.06 | 5.91 | 6.64 | 6.42 | 6.06 | 6.69 |
Evaluation.
We evaluate our models in both single-turn and multi-turn scenarios using the MT-Bench benchmark Ding et al. (2023). MT-Bench is composed of 160 questions covering eight different knowledge domains, designed to be evaluated by GPT-4. To have a comprehensive evaluation we assess all alignment methods using five Open LLM Leaderboard benchmarks including ARC Clark et al. (2018), HellaSwag Zellers et al. (2019), MMLU Hendrycks et al. (2021), Truthful QA Lin et al. (2022), and Winogrande Sakaguchi et al. (2019). We further explore the performance of the models by evaluating them on four benchmarks from Big Bench bench authors (2023), including Causal Judgment (causal reasoning), Sports Understanding (commonsense reasoning), Formal Fallacies, and OpenBookQA Mihaylov et al. (2018).
4.2 Demonstration of TPO Performance
We evaluate the TPO approach against other alignment techniques, such as KTO, IPO, CPO, DPO, and ORPO, using MT-Bench and the Open LLM Leaderboard Benchmarks. Our comparison involves two distinct model configurations: 1) the alignment of an SFT model using TPO and various other alignment methods, and 2) applying TPO directly to fine-tune a pre-trained model. Across all alignment approaches, we utilized Phi-2 (2.7 B) and Mistral (7 B) as the baseline models (More details in Appendix B).
MT-Bench.
The data presented in Table 3 reveals that the Phi-2+TPO method outperforms other alignment techniques, enhancing the MT-Bench score by 12.7% and 7.2% over Phi-2+SFT+DPO and Phi-2+SFT, respectively. Remarkably, Phi-2+TPO achieves this superior performance even when trained on just 10K data, in stark contrast to Phi-2+SFT’s training on 200K data (See Table 3). Additionally, the results in Table 2 demonstrate that Mistral+TPO surpasses competing alignment methods in MT-Bench scores. Mistral+TPO trained on 10K data shows a 7.2% improvement over Mistral+SFT, which is trained on 200K data.
The results in Tables 2 and 5 demonstrate that TPO exceeds the performance of other alignment methods, inspite of the SFT step being skipped (See Appendix C.1). Furthermore, additional experiments show that TPO achieves greater improvements over DPO, KTO, IPO, and CPO by 13.3%, 13.6%, 2.5%, and 13.3% respectively, on SFT trained on 10K data (See Appendix C.2).
Open LLM Leaderboard Benchmarks.
The primary findings, as detailed in Table 1, highlight that Mistral+SFT+TPO, on average, surpasses other alignment methods. This superior performance is largely attributed to its notable success in the TruthfulQA benchmark despite lagging behind Mistral+SFT+DPO in performance. An intriguing observation from the data is that Mistral+TPO not only excels on average but also leads in performance across all benchmarks, showcasing the effectiveness of the TPO strategy. Specifically, Mistral+TPO achieved average accuracy improvements over Mistral+SFT, Mistral+SFT+DPO, Mistral+SFT+IPO, Mistral+SFT+KTO, Mistral+SFT+CPO, and Mistral+ORPO by 4.97%, 4.27%, 5.37%, 4.07%, 4.07%, and 2.35%, respectively. For additional results, readers are directed to Appendix D.
Exploration on More Benchmarks.
For a comprehensive evaluation, we assessed the efficacy of the TPO method against various alignment strategies across different benchmarks: BB-causal, BB-sports, BB-formal, and OpenBookQA. As detailed in Table 2, Mistral+SFT+TPO exhibited superior performance on BB-causal and BB-sports benchmarks, while it showed less impressive results on BB-formal and OpenBookQA. Notably, Mistral+TPO not only enhanced the Mistral+SFT+TPO’s outcomes on BB-causal and OpenBookQA but also surpassed Mistral+SFT, Mistral+SFT+DPO, Mistral+SFT+IPO, Mistral+SFT+KTO, Mistral+SFT+CPO, and Mistral+ORPO in accuracy by 4.81%, 1.71%, 3.91%, 1.01%, 3.01%, and 1.3%, respectively. Additional results can be found in Appendix D.
4.3 Ablation Studies
In this subsection, we delve into the impact of and values, batch size, and learning rate on the performance of the TPO method. Central to our exploration is the TPO method’s ability to bypass the SFT stage, thereby assessing its efficacy without this component. Our evaluation focuses on the MT-Bench score and the Open LLM Leaderboard benchmarks to gauge the models’ performance.
Impact of and .
Alpha and Beta serve as crucial hyper-parameters that simultaneously enhance the likelihood of the correct response and refine preference learning. Figure 4 illustrates that the Mistral+TPO model, when set with =0.9 and =0.2, outperforms alternatives in terms of performance on the MT-Bench. Additionally, Figure 3 highlights that Mistral+TPO notably excels in the Open LLM Leaderboard benchmarks, boasting an average accuracy performance increase of 5.12% over the SFT method.
Other hyper-parameters.
We extend our analysis to examine the influence of various hyperparameters on the TPO’s efficacy, including different epochs, learning rates, and batch sizes, specifically with the Mistral+TPO model. We discovered that the learning rate is particularly critical when dealing with smaller datasets; a change by two orders of magnitude prevented the model from converging. Additionally, while different batch sizes do affect performance, there’s a threshold beyond which performance plateaus and no longer benefits from increases. Interestingly, we observed that Mistral+TPO, when trained on 10K data, tends to overfit after just one epoch, with additional epochs failing to enhance performance. Nonetheless, we hypothesize that performance improves with larger datasets beyond the initial epoch, as detailed further in Appendix E.
5 Conclusions
In this paper, we begin by addressing the limitations inherent in existing alignment methods. Typically, alignment techniques require an SFT component to achieve notable results. However, incorporating SFT introduces two primary challenges: firstly, fine-tuning a model using SFT demands a substantial dataset (for example, completing a chat task may require fine-tuning with 200K data points). Secondly, generating a preferences dataset by sampling from the SFT model poses additional difficulties, including determining the optimal configuration for producing preferred and less preferred responses. To mitigate these shortcomings, we introduce TPO, a new alignment approach aimed at concurrently optimizing for human preferences and gold responses. Our findings demonstrate the impressive performance of TPO compared to other alignment methods on ten benchmarks. Particularly, Mistral and Phi-2 fine-tuned by TPO achieve increases in the MT-Bench score of +0.72 and +1.27, respectively, compared to SFT, despite being trained on a dataset six times smaller. Another intriguing insight is the significant influence that the values of and have on the model’s performance.
6 Limitations and Future Works
While TPO has demonstrated impressive performance compared to other alignment methods across various benchmarks, the requirement to prepare three preferences for each input in a dataset poses challenges. In this section, we outline potential directions for future work. Our evaluation of TPO focused on chat completion tasks, but we are particularly interested in examining its effectiveness in other areas, such as safety and reasoning. Another intriguing aspect for further study is investigating how the quality of reference and preferred responses affects TPO’s performance. Notably, our current findings suggest that the reference response is generally better than the preferred response. Investigating whether increasing the preferential difference between these responses enhances performance could yield valuable insights. Additionally, we are interested in exploring TPO’s effectiveness in larger models, such as those with 30 B or 70 B, which represents a promising avenue for future work. Drawing inspiration from the new method proposed in Chatterjee et al. (2024) for fine-tuning diffusion models, we are keen to investigate how these models perform when aligned using the TPO method.
Acknowledgements
We thank the anonymous reviewers for constructive suggestions and the Research Computing (RC) at Arizona State University (ASU) for providing computing resources for experiments. We acknowledge support by a 2023 Spring Amazon Research Award (ARA).
References
- Anil et al. (2023) Rohan Anil, Andrew M. Dai, Orhan Firat, Melvin Johnson, Dmitry Lepikhin, Alexandre Passos, Siamak Shakeri, Emanuel Taropa, Paige Bailey, Zhifeng Chen, Eric Chu, Jonathan H. Clark, Laurent El Shafey, Yan** Huang, Kathy Meier-Hellstern, Gaurav Mishra, Erica Moreira, Mark Omernick, Kevin Robinson, Sebastian Ruder, Yi Tay, Kefan Xiao, Yuanzhong Xu, Yu**g Zhang, Gustavo Hernandez Abrego, Junwhan Ahn, Jacob Austin, Paul Barham, Jan Botha, James Bradbury, Siddhartha Brahma, Kevin Brooks, Michele Catasta, Yong Cheng, Colin Cherry, Christopher A. Choquette-Choo, Aakanksha Chowdhery, Clément Crepy, Shachi Dave, Mostafa Dehghani, Sunipa Dev, Jacob Devlin, Mark Díaz, Nan Du, Ethan Dyer, Vlad Feinberg, Fangxiaoyu Feng, Vlad Fienber, Markus Freitag, Xavier Garcia, Sebastian Gehrmann, Lucas Gonzalez, Guy Gur-Ari, Steven Hand, Hadi Hashemi, Le Hou, Joshua Howland, Andrea Hu, Jeffrey Hui, Jeremy Hurwitz, Michael Isard, Abe Ittycheriah, Matthew Jagielski, Wenhao Jia, Kathleen Kenealy, Maxim Krikun, Sneha Kudugunta, Chang Lan, Katherine Lee, Benjamin Lee, Eric Li, Music Li, Wei Li, YaGuang Li, Jian Li, Hyeontaek Lim, Hanzhao Lin, Zhongtao Liu, Frederick Liu, Marcello Maggioni, Aroma Mahendru, Joshua Maynez, Vedant Misra, Maysam Moussalem, Zachary Nado, John Nham, Eric Ni, Andrew Nystrom, Alicia Parrish, Marie Pellat, Martin Polacek, Alex Polozov, Reiner Pope, Siyuan Qiao, Emily Reif, Bryan Richter, Parker Riley, Alex Castro Ros, Aurko Roy, Brennan Saeta, Rajkumar Samuel, Renee Shelby, Ambrose Slone, Daniel Smilkov, David R. So, Daniel Sohn, Simon Tokumine, Dasha Valter, Vijay Vasudevan, Kiran Vodrahalli, Xuezhi Wang, Pidong Wang, Zirui Wang, Tao Wang, John Wieting, Yuhuai Wu, Kelvin Xu, Yunhan Xu, Linting Xue, Pengcheng Yin, Jiahui Yu, Qiao Zhang, Steven Zheng, Ce Zheng, Weikang Zhou, Denny Zhou, Slav Petrov, and Yonghui Wu. 2023. Palm 2 technical report.
- Azar et al. (2023) Mohammad Gheshlaghi Azar, Mark Rowland, Bilal Piot, Daniel Guo, Daniele Calandriello, Michal Valko, and Rémi Munos. 2023. A general theoretical paradigm to understand learning from human preferences.
- Bai et al. (2022) Yuntao Bai, Andy Jones, Kamal Ndousse, Amanda Askell, Anna Chen, Nova DasSarma, Dawn Drain, Stanislav Fort, Deep Ganguli, Tom Henighan, Nicholas Joseph, Saurav Kadavath, Jackson Kernion, Tom Conerly, Sheer El-Showk, Nelson Elhage, Zac Hatfield-Dodds, Danny Hernandez, Tristan Hume, Scott Johnston, Shauna Kravec, Liane Lovitt, Neel Nanda, Catherine Olsson, Dario Amodei, Tom Brown, Jack Clark, Sam McCandlish, Chris Olah, Ben Mann, and Jared Kaplan. 2022. Training a helpful and harmless assistant with reinforcement learning from human feedback.
- bench authors (2023) BIG bench authors. 2023. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. Transactions on Machine Learning Research.
- Bong and Rinaldo (2022) Heejong Bong and Alessandro Rinaldo. 2022. Generalized results for the existence and consistency of the mle in the bradley-terry-luce model.
- Brown et al. (2020) Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners.
- Bubeck et al. (2023) Sébastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, Harsha Nori, Hamid Palangi, Marco Tulio Ribeiro, and Yi Zhang. 2023. Sparks of artificial general intelligence: Early experiments with gpt-4.
- Chatterjee et al. (2024) Agneet Chatterjee, Gabriela Ben Melech Stan, Estelle Aflalo, Sayak Paul, Dhruba Ghosh, Tejas Gokhale, Ludwig Schmidt, Hannaneh Hajishirzi, Vasudev Lal, Chitta Baral, et al. 2024. Getting it right: Improving spatial consistency in text-to-image models. arXiv preprint arXiv:2404.01197.
- Christiano et al. (2023) Paul Christiano, Jan Leike, Tom B. Brown, Miljan Martic, Shane Legg, and Dario Amodei. 2023. Deep reinforcement learning from human preferences.
- Clark et al. (2018) Peter Clark, Isaac Cowhey, Oren Etzioni, Tushar Khot, Ashish Sabharwal, Carissa Schoenick, and Oyvind Tafjord. 2018. Think you have solved question answering? try arc, the ai2 reasoning challenge.
- Cui et al. (2023) Ganqu Cui, Lifan Yuan, Ning Ding, Guanming Yao, Wei Zhu, Yuan Ni, Guotong Xie, Zhiyuan Liu, and Maosong Sun. 2023. Ultrafeedback: Boosting language models with high-quality feedback.
- Ding et al. (2023) Ning Ding, Yulin Chen, Bokai Xu, Yujia Qin, Zhi Zheng, Shengding Hu, Zhiyuan Liu, Maosong Sun, and Bowen Zhou. 2023. Enhancing chat language models by scaling high-quality instructional conversations.
- Ethayarajh et al. (2023) Kawin Ethayarajh, Winnie Xu, Dan Jurafsky, and Douwe Kiela. 2023. Human-aware loss functions (halos). Technical report, Contextual AI.
- Ganguli et al. (2022) Deep Ganguli, Liane Lovitt, Jackson Kernion, Amanda Askell, Yuntao Bai, Saurav Kadavath, Ben Mann, Ethan Perez, Nicholas Schiefer, Kamal Ndousse, Andy Jones, Sam Bowman, Anna Chen, Tom Conerly, Nova DasSarma, Dawn Drain, Nelson Elhage, Sheer El-Showk, Stanislav Fort, Zac Hatfield-Dodds, Tom Henighan, Danny Hernandez, Tristan Hume, Josh Jacobson, Scott Johnston, Shauna Kravec, Catherine Olsson, Sam Ringer, Eli Tran-Johnson, Dario Amodei, Tom Brown, Nicholas Joseph, Sam McCandlish, Chris Olah, Jared Kaplan, and Jack Clark. 2022. Red teaming language models to reduce harms: Methods, scaling behaviors, and lessons learned.
- Hejna et al. (2023) Joey Hejna, Rafael Rafailov, Harshit Sikchi, Chelsea Finn, Scott Niekum, W Bradley Knox, and Dorsa Sadigh. 2023. Contrastive prefence learning: Learning from human feedback without rl. arXiv preprint arXiv:2310.13639.
- Hendrycks et al. (2021) Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring massive multitask language understanding.
- Hong et al. (2024) Jiwoo Hong, Noah Lee, and James Thorne. 2024. Reference-free monolithic preference optimization with odds ratio. arXiv preprint arXiv:2403.07691.
- Hu et al. (2021) Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2021. Lora: Low-rank adaptation of large language models.
- Javaheripi et al. (2023) Mojan Javaheripi, Sébastien Bubeck, Marah Abdin, Jyoti Aneja, Sebastien Bubeck, Caio César Teodoro Mendes, Weizhu Chen, Allie Del Giorno, Ronen Eldan, Sivakanth Gopi, et al. 2023. Phi-2: The surprising power of small language models. Microsoft Research Blog.
- Kreutzer et al. (2018) Julia Kreutzer, Joshua Uyheng, and Stefan Riezler. 2018. Reliability and learnability of human bandit feedback for sequence-to-sequence reinforcement learning.
- Lin et al. (2022) Stephanie Lin, Jacob Hilton, and Owain Evans. 2022. Truthfulqa: Measuring how models mimic human falsehoods.
- Liu et al. (2024) Tianqi Liu, Yao Zhao, Rishabh Joshi, Misha Khalman, Mohammad Saleh, Peter J. Liu, and Jialu Liu. 2024. Statistical rejection sampling improves preference optimization.
- Lotov and Miettinen (2008) Alexander V. Lotov and Kaisa Miettinen. 2008. Visualizing the Pareto Frontier, pages 213–243. Springer Berlin Heidelberg, Berlin, Heidelberg.
- Miettinen (1999) Kaisa Miettinen. 1999. Nonlinear multiobjective optimization, volume 12. Springer Science & Business Media.
- Mihaylov et al. (2018) Todor Mihaylov, Peter Clark, Tushar Khot, and Ashish Sabharwal. 2018. Can a suit of armor conduct electricity? a new dataset for open book question answering. In EMNLP.
- Narayanan et al. (2021) Deepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick LeGresley, Mostofa Patwary, Vijay Anand Korthikanti, Dmitri Vainbrand, Prethvi Kashinkunti, Julie Bernauer, Bryan Catanzaro, Amar Phanishayee, and Matei Zaharia. 2021. Efficient large-scale language model training on gpu clusters using megatron-lm.
- Ouyang et al. (2022) Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. 2022. Training language models to follow instructions with human feedback.
- Perez et al. (2022) Ethan Perez, Saffron Huang, Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia Glaese, Nat McAleese, and Geoffrey Irving. 2022. Red teaming language models with language models.
- Rafailov et al. (2023) Rafael Rafailov, Archit Sharma, Eric Mitchell, Stefano Ermon, Christopher D. Manning, and Chelsea Finn. 2023. Direct preference optimization: Your language model is secretly a reward model.
- Ramamurthy et al. (2023) Rajkumar Ramamurthy, Prithviraj Ammanabrolu, Kianté Brantley, Jack Hessel, Rafet Sifa, Christian Bauckhage, Hannaneh Hajishirzi, and Ye** Choi. 2023. Is reinforcement learning (not) for natural language processing: Benchmarks, baselines, and building blocks for natural language policy optimization.
- Saeidi et al. (2024) Amir Saeidi, Shivanshu Verma, and Chitta Baral. 2024. Insights into alignment: Evaluating dpo and its variants across multiple tasks. arXiv preprint arXiv:2404.14723.
- Sakaguchi et al. (2019) Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Ye** Choi. 2019. Winogrande: An adversarial winograd schema challenge at scale.
- Sanh et al. (2022) Victor Sanh, Albert Webson, Colin Raffel, Stephen H. Bach, Lintang Sutawika, Zaid Alyafeai, Antoine Chaffin, Arnaud Stiegler, Teven Le Scao, Arun Raja, Manan Dey, M Saiful Bari, Canwen Xu, Urmish Thakker, Shanya Sharma Sharma, Eliza Szczechla, Taewoon Kim, Gunjan Chhablani, Nihal Nayak, Debajyoti Datta, Jonathan Chang, Mike Tian-Jian Jiang, Han Wang, Matteo Manica, Sheng Shen, Zheng Xin Yong, Harshit Pandey, Rachel Bawden, Thomas Wang, Trishala Neeraj, Jos Rozen, Abheesht Sharma, Andrea Santilli, Thibault Fevry, Jason Alan Fries, Ryan Teehan, Tali Bers, Stella Biderman, Leo Gao, Thomas Wolf, and Alexander M. Rush. 2022. Multitask prompted training enables zero-shot task generalization.
- Schulman et al. (2017) John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms.
- Stiennon et al. (2022) Nisan Stiennon, Long Ouyang, Jeff Wu, Daniel M. Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul Christiano. 2022. Learning to summarize from human feedback.
- Touvron et al. (2023) Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, Aurelien Rodriguez, Armand Joulin, Edouard Grave, and Guillaume Lample. 2023. Llama: Open and efficient foundation language models.
- Tunstall et al. (2023) Lewis Tunstall, Edward Beeching, Nathan Lambert, Nazneen Rajani, Kashif Rasul, Younes Belkada, Shengyi Huang, Leandro von Werra, Clémentine Fourrier, Nathan Habib, Nathan Sarrazin, Omar Sanseviero, Alexander M. Rush, and Thomas Wolf. 2023. Zephyr: Direct distillation of lm alignment.
- Tversky and Kahneman (1992) Amos Tversky and Daniel Kahneman. 1992. Advances in prospect theory: Cumulative representation of uncertainty. Journal of Risk and uncertainty, 5:297–323.
- von Werra et al. (2020) Leandro von Werra, Younes Belkada, Lewis Tunstall, Edward Beeching, Tristan Thrush, Nathan Lambert, and Shengyi Huang. 2020. Trl: Transformer reinforcement learning. https://github.com/huggingface/trl.
- Wu et al. (2023) Tianhao Wu, Banghua Zhu, Ruoyu Zhang, Zhao** Wen, Kannan Ramchandran, and Jiantao Jiao. 2023. Pairwise proximal policy optimization: Harnessing relative feedback for llm alignment.
- Xu et al. (2024) Haoran Xu, Amr Sharaf, Yunmo Chen, Weiting Tan, Lingfeng Shen, Benjamin Van Durme, Kenton Murray, and Young ** Kim. 2024. Contrastive preference optimization: Pushing the boundaries of llm performance in machine translation. arXiv preprint arXiv:2401.08417.
- Yuan et al. (2023) Zheng Yuan, Hongyi Yuan, Chuanqi Tan, Wei Wang, Songfang Huang, and Fei Huang. 2023. Rrhf: Rank responses to align language models with human feedback without tears.
- Zellers et al. (2019) Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Ye** Choi. 2019. Hellaswag: Can a machine really finish your sentence?
- Zhao et al. (2023) Yao Zhao, Rishabh Joshi, Tianqi Liu, Misha Khalman, Mohammad Saleh, and Peter J. Liu. 2023. Slic-hf: Sequence likelihood calibration with human feedback.
- Ziegler et al. (2019) Daniel M. Ziegler, Nisan Stiennon, Jeff Wu, Tom B. Brown, Alec Radford, Dario Amodei, Paul Christiano, and Geoffrey Irving. 2019. Fine-tuning language models from human preferences. ArXiv, abs/1909.08593.
Appendix
Appendix A Derivation
A.1 Deriving the optimal policy under the Preference Objective
In this section, we derive the optimal policy achieved by optimizing the objective in Equation 4. For a given prompt , the objective can be analogously written as follows:
Next, we form a lagrangian for the above objective with being the lagrangian multiplier.
Differentiating with respect to results in,
To obtain the optimal policy, we can set the above equation to zero and solve for .
Since , the second exponent is a partition function that does normalization as shown below:
Hence, the partition function and the optimal policy induced by reward function is therefore given by,
(1) |
Now, we can express the reward function in terms of an optimal policy by performing some algebraic transformations on Equation 1 as shown below,
Taking logarithm and multiplying by on both sides,
(2) |
A.2 Deriving the Gradient of the TPO Objective
In this section, we derive the gradient of the TPO objective:
(1) |
We can rewrite the RHS of the Equation 1 as
(2) |
In equation 2, the part (b) can be rewritten with
Using the properties of sigmoid function function and ,
(3) |
A.3 Proof of Lemma
In this section, we will prove the lemmas from Section 3.2.
Lemma 1 Restated.
Under the Plackett-Luce preference framework, and in particular the Bradley-Terry framework, two reward functions from the same equivalence class induce the same preference distribution.
Let’s consider two reward functions, and . They are said to be equivalent if they can be related by for some function . We analyze this in the context of the general Plackett-Luce model, which includes the Bradley-Terry model (special case when ). Here, we denote the probability distribution over rankings generated by a given reward function as . Given any prompt , responses , and a ranking , we can establish the following:
This completes the proof.
Lemma 2 Restated.
Two reward functions from the same equivalence class induce the same optimal policy under the constrained RL problem.
Let’s consider two reward functions, and . They are said to be equivalent if they can be related by for some function . Let and be the optimal policies induced by their corresponding reward functions. By Equation 5, for all we have,
This completes the proof.
A.4 Proof of Theorem
Theorem 1 Restated.
For a parameter , all reward equivalence classes can be reparameterized as for some model .
Consider a reward function , which induces an optimal model under the MERL framework, which takes the form as shown in Eq.5 in Section 3.1. Following, Equation 2 in Section A.1 of Appendix, we have:
(1) |
where is the partition function of the optimal policy induced by the reward function . Let be a new reward function such that . It is obvious that the new reward function is within the equivalence class of , and the we have:
From the Equation 1, we get
This completes the proof.
Proposition 1.
For a parameter , every equivalence class of reward functions has a unique reward function , which can be reparameterized as for some model .
Let us assume that we have two reward functions from the same class, such that . Assume that for some model and for some model , such that . We then have,
for all prompts x and completions y. Then, we must have . Since these are probability distributions, summing over y on both sides,
Since , must be 0 for all . Therefore, we will have , which contradicts our initial condition of .
Thus, by contradiction, we have shown that every reward class has a unique reward function that can be represented by the reparameterization in Theorem 3.1.
Appendix B Training and Evaluation Details
All models were trained using the AdamW optimizer without weight decay. Furthermore, parameter-efficient techniques such as LoRA Hu et al. (2021) were not employed. The experiments were conducted on 4 A100 GPUs, utilizing bfloat16 precision, and typically required 5-8 hours to complete. All models are trained for one epoch, employing a linear learning rate scheduler with a peak learning rate of 5e-07 and 10% warmup steps. Additionally, the global batch size is set to 16, and = 0.1 is used to regulate the deviation from the reference model. For every dataset used in our evaluation, we detail the count of few-shot examples utilized along with the specific metric employed for assessment in Table 4.
Datasets | ARC | TruthfulQA | Winogrande | HellaSwag | MMLU | BB-causal | BB-sports | BB-formal | OpenBookQA |
# few-shot | 25 | 0 | 5 | 10 | 5 | 3 | 3 | 3 | 1 |
Metric | acc_norm | mc2 | acc | acc_norm | acc | mc | mc | mc | acc_norm |
The custom UltraFeedback dataset includes , , and for each input . For a fair comparison, when training alignment methods based on the SFT model, we utilized and under the assumption that the model was trained on during supervised fine-tuning. Conversely, in scenarios where we directly trained a model using alignment methods, we used and .
Appendix C More Experiments
In this section, we assess the performance of alignment methods in two distinct scenarios: 1) skip** the SFT component and 2) aligning an SFT model that has been fine-tuned on a dataset of 10K instances using various alignment techniques.
C.1 Skip** the SFT Component
The primary benefit of using TPO is the ability to skip the SFT component, which often results in better performance for TPO without SFT. In this experiment, we also investigate the effectiveness of other alignment methods without the SFT part. For this purpose, we directly trained a Mistral-7B-v0.1 model using various alignment techniques like DPO, KTO, IPO, CPO, and ORPO.
Model | Align | MT-Bench |
---|---|---|
Mistral | SFT | 5.94 |
Mistral | DPO | 5.45 |
Mistral | KTO | 6.21 |
Mistral | IPO | 2.06 |
Mistral | CPO | 6.3 |
Mistral | ORPO | 5.47 |
Mistral | TPO (our | ) | 6.22 |
Mistral | TPO (our | ) | 6.61 |
Mistral | TPO (our | ) | 6.66 |
The results in Table 5 indicate that without the SFT component, both DPO and IPO fail to match the performance levels of Mistral+SFT. Additionally, the results for KTO and CPO show negligible differences when compared with SFT. Although ORPO recommends bypassing the SFT phase in the alignment process, it seems that a policy model fine-tuned with ORPO underperforms when only one epoch is used. A comparison between the results in Tables 2 and 5 reveals that most of the alignment methods perform better when the SFT part is retained.
C.2 Aligning an SFT Model with Less Data
In this experiment, we investigate how alignment methods perform when applied to an SFT model trained on significantly less data. TPO utilizes the dataset . Initially, we fine-tune a Mistral-7B-v0.1 model on 10K data, which are designated as for TPO. Subsequently, we applied various alignment methods to this fine-tuned model.
Model (training Size) | DPO | CPO | KTO | IPO |
---|---|---|---|---|
+ Mistral+SFT (200K) | 6.64 | 6.2 | 6.48 | 6.43 |
+ Mistral+SFT (10K) | 5.33 | 5.89 | 5.3 | 6.41 |
The findings presented in Table 6 suggest that alignment methods yield superior results when applied to an SFT model trained on a larger dataset. It is evident that, when using the same data as for Mistral+TPO, other models perform significantly worse. These results confirm our hypothesis that TPO surpasses other methods with considerably less data.
Appendix D More results on Open LLM Leaderboard and Big Bench Benchmarks
Our assessment of Phi-2 through the Open LLM Leaderboard benchmarks, in comparison with various alignment methods, showed that Phi-2+TPO, trained on a dataset of 10K, achieved performance on par with other alignment strategies across the ARC, TruthfulQA, and MMLU benchmarks. Also, The results showed that this model performs better on BB-causal and OpenBookQA.
Model | Align | ARC | TruthfulQA | Winogrande | HellaSwag | MMLU | BB-causal | BB-sports | BB-formal | OpenBookQA |
Phi-2 | SFT | 61 | 46.01 | 74.58 | 74.66 | 56.48 | 55.26 | 51.72 | 49.54 | 50.2 |
Phi-2+SFT | DPO | 61.34 | 51.53 | 74.82 | 75.88 | 56.99 | 57.36 | 52.63 | 49.5 | 52.2 |
Phi-2+SFT | IPO | 61.43 | 49.05 | 75.05 | 75.36 | 56.83 | 55.26 | 51.31 | 49.69 | 51.2 |
Phi-2+SFT | KTO | 61 | 52.35 | 74.98 | 75.43 | 57.02 | 56.31 | 51.62 | 49.47 | 51.4 |
Phi-2+SFT | CPO | 60.49 | 53.3 | 75.05 | 74.78 | 56.94 | 54.21 | 50.5 | 49.48 | 49.8 |
Phi-2 | ORPO | 61.17 | 45.68 | 74.42 | 74.69 | 58.33 | 55.78 | 50.7 | 49.01 | 52.8 |
Phi-2+SFT | TPO (our) | 61.09 | 53.6 | 74.82 | 74.98 | 56.95 | 54.21 | 50.3 | 49.27 | 50.6 |
Phi-2 | TPO (our | ) | 61.51 | 45.41 | 74.34 | 75.27 | 58.38 | 55.78 | 51.44 | 49.28 | 53.2 |
Phi-2 | TPO (our | ) | 61.6 | 46.21 | 74.66 | 74.91 | 58.12 | 57.36 | 51.31 | 48.35 | 53.4 |
Appendix E More results on Ablation Studies
This section presents the performance of Mistral+TPO across various learning rate, epoch, and batch size utilizing the MT-Bench score as the benchmark for assessment.
Model | Align | Learning Rate | Epoch | Batch Size | First Turn (Score) | Second Turn (Score) | Average (Score) |
---|---|---|---|---|---|---|---|
Mistral | TPO (=1|=0.1) | 5e-07 | 1 | 16 | 6.78 | 5.66 | 6.22 |
Mistral | TPO (=1|=0.1) | 2e-05 | 1 | 16 | 1 | 1 | 1 |
Mistral | TPO (=0.9|=0.2) | 5e-07 | 1 | 16 | 7.12 | 6.2 | 6.66 |
Mistral | TPO (=0.9|=0.2) | 5e-07 | 1 | 32 | 6.98 | 6.1 | 6.54 |
Mistral | TPO (=0.9|=0.2) | 5e-07 | 2 | 16 | 7.2 | 6 | 6.61 |