Sequence-level Large Language Model Training with Contrastive Preference Optimization
Zhili Feng, Dhananjay Ram, Cole Hawkins, Aditya Rawal, Jinman Zhao, Sheng Zha
TL;DR
This work tackles exposure bias in large language models by introducing Contrastive Preference Optimization (CPO), a sequence-level training objective that injects longer-horizon information without requiring human-labeled preferences. CPO contrasts a ground-truth prefix-continuation against multiple synthetic negatives drawn from various sampling schemes, optionally using ranking signals, and can be applied during supervision fine-tuning or late pretraining. Across Dolly instruction-following and Wikidump open-ended generation tasks, CPO improves win-rate against ground-truth continuations and outperforms baselines like MLE, DPO, and PSS, with further gains from weight-space ensembles. The approach offers a practical, computation-efficient path to align generation quality with sequence-level objectives, though synthetic negatives remain noisy unless generated autoregressively, pointing to future refinements in negative data generation.
Abstract
The next token prediction loss is the dominant self-supervised training objective for large language models and has achieved promising results in a variety of downstream tasks. However, upon closer investigation of this objective, we find that it lacks an understanding of sequence-level signals, leading to a mismatch between training and inference processes. To bridge this gap, we introduce a contrastive preference optimization (CPO) procedure that can inject sequence-level information into the language model at any training stage without expensive human labeled data. Our experiments show that the proposed objective surpasses the next token prediction in terms of win rate in the instruction-following and text generation tasks.
