Plug-and-Play Training Framework for Preference Optimization
Jingyuan Ma, Rui Li, Zheng Li, Lei Sha, Zhifang Sui
TL;DR
The paper addresses the limitation of uniform sample weighting in Preference Optimization (PO) methods when training LLMs for high-precision tasks like mathematical reasoning. It introduces a plug-and-play weighted training framework that uses multiple sampling to estimate output distributions, derives dynamic sample weights based on observed correctness and errors, and integrates these weights into pairwise PO objectives (e.g., DPO, DPOP, IPO, SimPO). The approach centers on data collection via $N$-fold sampling, weight computation using statistics $P_c$, $P_e$, $N$, and $\epsilon$, and a Bradley–Terry–style training objective that emphasizes informative pairs. Experimental results on GSM8K and MATH show consistent improvements across multiple PO baselines and model series, with analyses linking stability and reward dynamics to the weighting strategy. The framework offers a practical, modular enhancement to RLHF-style alignment, particularly improving mathematical reasoning, while noting limitations related to defining equivalence classes for responses and suggesting future work on semantic clustering to generalize beyond clearly correct answers.
Abstract
Recently, preference optimization methods such as DPO have significantly enhanced large language models (LLMs) in wide tasks including dialogue and question-answering. However, current methods fail to account for the varying difficulty levels of training samples during preference optimization, leading to mediocre performance in tasks with high accuracy requirements, particularly in mathematical reasoning. To address this limitation, we propose a novel training framework, which employs multiple sampling to analyze output distributions, assign different weights to samples, and incorporate these weights into the preference optimization process. This plug-and-play approach enables LLMs to prioritize challenging examples during training, improving learning efficiency. Experimental results demonstrate that our framework integrates seamlessly with various preference optimization methods and achieves consistent improvements in mathematical reasoning tasks.
