Post-edits Are Preferences Too

Nathaniel Berger, Miriam Exel, Matthias Huck, Stefan RiezlerarXiv 2024

TL;DR

Instead of collecting expensive and noisy pairwise human preferences to fine-tune machine translation models, why not use data we already have? This paper demonstrates that human post-edits (corrections of machine-translated text) can be treated as implicit preference data by construction. By combining supervised fine-tuning (SFT) with preference optimization (PO), the authors successfully train large language models to favor high-quality, post-edit-like translations while actively suppressing common machine translation errors.

What Problem Does This Paper Address?

Fine-tuning Large Language Models (LLMs) using Preference Optimization (PO) techniques like Direct Preference Optimization (DPO) typically requires a large volume of pairwise human feedback ($s_1 \succ s_2$). However, in machine translation (MT), gathering reliable pairwise preferences is notoriously difficult. Translation quality is multi-dimensional—encompassing fluency, adequacy, terminology, and style—making human rankings highly subjective and less reliable than absolute ratings.

At the same time, the translation industry generates massive amounts of post-editing (PE) data, where human editors correct raw machine translation outputs. Traditionally, this data is used purely for Supervised Fine-Tuning (SFT), treating the post-edit as a new reference and discarding the original erroneous machine translation. This ignores a crucial signal: the post-edit is not just a good translation; it is an explicit quality judgment of what was wrong with the initial machine translation.

Methods

The authors propose leveraging the implicit preferences embedded within post-editing data. Instead of the standard PO setup where an annotator judges two independent sequences, the post-editing process naturally implies that the corrected sequence ($s_1$) is preferred over the raw machine translation ($s_2$).

Figure 1: The generative process for preference opti- mization is that two sequences s1 and s2 are given, and a preference judgment s1 > s2 is generated (upper graph). The data generating process of post-editing yields reli- able preferences by construction: Given s2 and the im- plicit preference that s1 > s2, create s1 (lower graph). We propose using the implicit preferences from post- editing for preference optimization.

Because these post-editing preferences are deterministic (the same pairs are seen during training), the authors build upon Identity Preference Optimization (IPO), which handles deterministic preferences better than standard DPO. They introduce a modified training objective called dCPO (deterministic Contrastive Preference Optimization), which additively combines the SFT loss on the preferred sequence with the IPO loss to maintain a probability margin between the good and bad sequences.

They evaluate several training pipelines using the Tower-Base LLM:

  1. SFT Only: Training only on the post-edits.
  2. PO Only (IPO / dCPO): Training directly on the pairs.
  3. SFT $\rightarrow$ PO: Pre-training the model with SFT on post-edits first, followed by PO fine-tuning.

Datasets

The experiments utilize datasets from the WMT Automatic Post-Editing (APE) shared tasks:

  • En$\rightarrow$DE (2020): 7,000 training triples (source, raw MT, post-edit) from the Wikipedia domain, originally translated by a black-box neural MT system.
  • En$\rightarrow$Ru (2019): 9,290 filtered training triples from the IT domain (Microsoft Office localization), originally translated by Microsoft's production NMT system.

Key Insights and Ideas

  • The SFT Correlation Trap: When you perform standard SFT on post-edits, the model learns to increase the probability of the correct translation. However, because the raw MT and the post-edit are highly correlated and close in the model's hidden representation space, increasing the probability of the post-edit inadvertently increases the probability of the bad machine translation as well.
  • PO as a Negative Pressure Valve: Preference optimization solves this correlation trap. While SFT pulls the preferred sequence up, the PO loss applies downward pressure on the dispreferred raw MT sequence, widening the margin between them.
  • The Two-Stage Winner: The best results come from initializing the model with SFT before running PO (SFT $\rightarrow$ PO). SFT acts as a necessary pre-training step to push good hypotheses into the top output ranks, while the subsequent PO phase fine-tunes the model to reject MT-like errors.
Figure 2: The difference of the models’ averaged sequence log-probabilities from the baseline model’s on the WMT 2020 En→De test data. Zero for PE is an average log-probability of −0.516 while for MT it is −0.565. This violin plot then shows displacement from these baseline values. Dashed horizontal lines indicate quartiles.

Key Results

The models were evaluated using state-of-the-art neural translation metrics (XCOMET-XL, XCOMET-XXL, and MetricX), which correlate better with human judgment than traditional string-based metrics like BLEU.

  • En$\rightarrow$DE: The baseline Tower-Base scored 94.75 on reference-free XCOMET-XXL. Pure SFT brought this to 97.01. The two-stage SFT $\rightarrow$ dCPO achieved the highest score of 97.57, significantly outperforming both the baseline and pure SFT.
  • En$\rightarrow$Ru: The baseline model struggled heavily with zero-shot translation on this domain (scoring 65.07). SFT dramatically improved it to 93.55. Once again, SFT $\rightarrow$ dCPO yielded the best overall performance, reaching 94.76.

Limitations and Future Work

The primary limitation identified is that current PO objectives (like IPO) enforce a fixed distance/margin between all sequence pairs in log-probability space. This may be sub-optimal for translation data. For instance, if a post-edit only changes a single word in a long sentence, the two sequences share a massive prefix and should be treated differently than a pair where the entire sentence was rewritten.

The authors suggest that future work should explore dynamic distance margins that account for the token-level overlap or edit distance between the raw machine translation and the human post-edit.

Summary updated

BibTeX
@misc{berger2024post,
  author = {Nathaniel Berger and Miriam Exel and Matthias Huck and Stefan Riezler},
  title = {{Post-edits Are Preferences Too}},
  year = {2024},
  eprint = {2410.02320},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.02320},
}
Figure