Filtered Direct Preference Optimization

Tetsuro Morimura,Mitsuki Sakamoto,Yuu Jinnai,Kenshi Abe,Kaito Ariu
2024-07-04
Abstract:Reinforcement learning from human feedback (RLHF) plays a crucial role in aligning language models with human preferences. While the significance of dataset quality is generally recognized, explicit investigations into its impact within the RLHF framework, to our knowledge, have been limited. This paper addresses the issue of text quality within the preference dataset by focusing on direct preference optimization (DPO), an increasingly adopted reward-model-free RLHF method. We confirm that text quality significantly influences the performance of models optimized with DPO more than those optimized with reward-model-based RLHF. Building on this new insight, we propose an extension of DPO, termed filtered direct preference optimization (fDPO). fDPO uses a trained reward model to monitor the quality of texts within the preference dataset during DPO training. Samples of lower quality are discarded based on comparisons with texts generated by the model being optimized, resulting in a more accurate dataset. Experimental results demonstrate that fDPO enhances the final model performance. Our code is available at <a class="link-external link-https" href="https://github.com/CyberAgentAILab/filtered-dpo" rel="external noopener nofollow">this https URL</a>.
Machine Learning,Artificial Intelligence,Computation and Language
What problem does this paper attempt to address?
The paper mainly discusses the impact of data quality on the performance of large-scale language models (LLMs) when optimizing them from human feedback using Reinforcement Learning from Human Feedback (RLHF). It is found that text quality has a greater influence on the optimization effect of the model in the Direct Preference Optimization (DPO) method. To address this issue, the paper proposes an extended DPO method called filtered Direct Preference Optimization (fDPO). fDPO utilizes a well-trained reward model to monitor and filter out low-quality samples in the preference data set during the DPO training process, in order to improve the accuracy of the data set and enhance the performance of the final model. Experimental results show that fDPO can effectively enhance the effect of DPO, and the code has been open-sourced. The paper also analyzes the sensitivity of different methods to data quality, as well as the advantages of fDPO in handling inconsistent data quality.