Contrastive Preference Optimization: Pushing the Boundaries of LLM Performance in Machine Translation

Haoran Xu, Amr Sharaf, Yunmo Chen, Weiting Tan, Lingfeng Shen, Benjamin Van Durme, Kenton Murray, Young Jin Kim · DOI

Introduction

Machine translation (MT) has traditionally relied on Supervised Fine-Tuning (SFT) against human-written "gold" references. However, this approach faces a "quality ceiling": models are generally limited by the quality of their training data, which often contains omissions or awkward phrasing. Furthermore, SFT lacks a mechanism for rejection, meaning models do not learn to distinguish between "adequate" and "superior" translations.

To overcome these hurdles, researchers developed ALMA-R, a 13B parameter model that leverages a novel training method called Contrastive Preference Optimization (CPO). By training on high-quality preference pairs, ALMA-R bypasses the limitations of traditional supervised learning.

ALMA-13B-R performance compared to other models and the gold reference line. ALMA-R significantly outperforms the traditional gold reference and matches or exceeds GPT-4.

The CPO Methodology

CPO is a memory-efficient evolution of Direct Preference Optimization (DPO). While standard DPO requires keeping two versions of a model in memory, CPO simplifies this by using a uniform reference model, significantly reducing computational costs.

The training process utilizes "triplets" consisting of a source sentence, a preferred translation, and a dis-preferred translation. By showing the model "near-perfect but flawed" examples, CPO teaches it to pay attention to subtle nuances that standard SFT would ignore. To ensure the model remains grounded in natural language, a Behavior Cloning (BC) regularizer is added to the objective function.

Breaking the "Gold" Ceiling

A core insight of the ALMA-R project is that human-written "gold" references are frequently inferior to outputs from top-tier models like GPT-4. Training exclusively to mimic these references can actually hold a model back.

Comparison of translation quality metrics (KIWI-XXL and XCOMET) for the human Reference, ALMA-13B-LoRA, and GPT-4. Note that the models often exceed the reference scores in translation to English.

Using state-of-the-art reference-free evaluators like XCOMET and KIWI-XXL, the researchers curated a preference dataset of 22,000 triplets. This allowed ALMA-R to learn from the best available translations, regardless of whether they were human-authored or model-generated.

Key Results

ALMA-R (13B) consistently matched or outperformed GPT-4 and WMT competition winners across multiple benchmarks. On the WMT’22 test set, ALMA-R achieved an average XCOMET score of 94.05, surpassing GPT-4 (93.23) and WMT winners (93.78).

Remarkably, this state-of-the-art performance was achieved by tuning only 12 million parameters (0.1% of the model) using Low-Rank Adaptation (LoRA). This demonstrates that high-quality preference data and smart training objectives can be more impactful than massive scale.

Limitations and Future Work

While ALMA-R shows great promise, it relies heavily on reference-free metrics like XCOMET, which may have their own systematic biases. Additionally, the current study focused on 10 translation directions; expanding this to low-resource languages remains a key challenge for future research, as high-quality preference data is harder to generate for those pairs.

Conclusion

Contrastive Preference Optimization represents a significant advancement in machine translation. By moving beyond simple imitation and embracing preference-based learning, ALMA-R proves that moderate-sized LLMs can compete with the largest models in the world when trained with the right objectives.

Summary updated

BibTeX
@inproceedings{xu2024contrastive,
  author = {Haoran Xu and Amr Sharaf and Yunmo Chen and Weiting Tan and Lingfeng Shen and Benjamin Van Durme and Kenton Murray and Young Jin Kim},
  title = {{Contrastive Preference Optimization: Pushing the Boundaries of LLM Performance in Machine Translation}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=51iwkioZpn},
}
Figure