Direct Alignment of Language Models via Quality-Aware Self-Refinement
Runsheng Yu, Yong Wang, Xiaoqi Jiao, Youzhi Zhang, James T. Kwok
TL;DR
This work addresses the misalignment risk in Direct Policy Optimization (DPO) by incorporating a self-refinement mechanism that leverages intrinsic LLM knowledge. It introduces a refinement function $\Delta_\pi$ implemented via prompting to gauge the relative quality of positive and negative responses, and integrates it into DPO (Sr-DPO) and IPO (Sr-IPO) to self-adjust the loss. The authors formalize the refinement properties, show how $\Delta_\pi$ can be computed through prompt augmentation with $p\oplus x$, and demonstrate that Sr-DPO and Sr-IPO improve evaluation metrics across MT-Bench, Vicuna-Bench, and Open-LLM leader-board, with higher correlation to GPT-4 scores and acceptable training time. This approach advances practical, data-efficient alignment by exploiting the policy’s own knowledge, offering robust improvements in preference-based fine-tuning with potential broad applicability in safe AI deployment.
Abstract
Reinforcement Learning from Human Feedback (RLHF) has been commonly used to align the behaviors of Large Language Models (LLMs) with human preferences. Recently, a popular alternative is Direct Policy Optimization (DPO), which replaces an LLM-based reward model with the policy itself, thus obviating the need for extra memory and training time to learn the reward model. However, DPO does not consider the relative qualities of the positive and negative responses, and can lead to sub-optimal training outcomes. To alleviate this problem, we investigate the use of intrinsic knowledge within the on-the-fly fine-tuning LLM to obtain relative qualities and help to refine the loss function. Specifically, we leverage the knowledge of the LLM to design a refinement function to estimate the quality of both the positive and negative responses. We show that the constructed refinement function can help self-refine the loss function under mild assumptions. The refinement function is integrated into DPO and its variant Identity Policy Optimization (IPO). Experiments across various evaluators indicate that they can improve the performance of the fine-tuned models over DPO and IPO.
