SP^2DPO: An LLM-assisted Semantic Per-Pair DPO Generalization
Chaoyue He, Xin Zhou, Di Wang, Hong Xu, Wei Liu, Chunyan Miao
TL;DR
This work introduces SP2DPO, a semantic per-pair generalization of Direct Preference Optimization that replaces the global temperature beta with instance-specific temperatures beta_i derived offline from structured semantic-gap annotations. The approach formalizes Alignment Process Optimization by separating offline semantic enforcement from the inner-training loop, enabling auditable data artifacts and zero online training overhead. The per-pair temperatures modulate loss curvature and saturation, not merely gradient magnitude, and are obtained via robust teacher ensembling across prompts and annotators. Empirically, SP2DPO on UltraFeedback and AlpacaEval 2.0 across four open-weight backbones achieves competitive length-controlled performance relative to tuned DPO, with JMAMP providing a robust default that reduces prompt/teacher sensitivity while avoiding per-model beta sweeps. The work highlights the benefits of data-centric control for alignment, while acknowledging limitations in judge artifacts, annotation costs, and the need for broader safety evaluations, and outlines future directions toward expert-domain alignment and online semantic curricula.
Abstract
Direct Preference Optimization (DPO) controls the trade-off between fitting preference labels and staying close to a reference model using a single global temperature beta, implicitly treating all preference pairs as equally informative. Real-world preference corpora are heterogeneous: they mix high-signal, objective failures (for example, safety, factuality, instruction violations) with low-signal or subjective distinctions (for example, style), and also include label noise. We introduce our method, SP2DPO (Semantic Per-Pair DPO), a generalization that replaces the global temperature with an instance-specific schedule beta_i pre-decided offline from structured semantic-gap annotations (category, magnitude, confidence) produced by teacher language models. We instantiate this procedure on the UltraFeedback preference corpus (59,960 pairs), enabling large-scale construction of an auditable beta_i artifact, and incur zero training-time overhead: the inner-loop optimizer remains standard DPO with beta set per pair. We focus our empirical study on AlpacaEval 2.0, reporting both raw win rate and length-controlled win rate. Across four open-weight, instruction-tuned student backbones (4B-8B), SP2DPO is competitive with a tuned global-beta DPO baseline and improves AlpacaEval 2.0 length-controlled win rate on two of four backbones, while avoiding per-model beta sweeps. All code, annotations, and artifacts will be released.
