Teaching an Error Generator to Make Real Machine Translation Mistakes

Automatic post-editing (APE) systems fix the mistakes of a machine translation (MT) engine that cannot be modified. They learn from triplets: a source sentence, the machine's translation, and a human's corrected version. Those triplets are expensive, because a professional has to edit each machine output by hand. The field's standard workaround is to fabricate triplets by taking abundant source–reference pairs and corrupting the reference into something that looks like machine output. The persistent failure is that fabricated errors do not look like real ones. They contain too many edits or too few, and the wrong kinds. We propose to borrow the central move of unpaired image-to-image translation, where a generator learns to turn images from one collection into images that look like they came from another collection by training against a learned judge rather than against paired examples. Here the generator is an error injector. It is trained so that the edits it introduces cannot be told apart from the edits separating real MT output from real human corrections, while it stays anchored to the reference.

In two sentences: today's error generators are tuned by hand, through noise rules, round-trip translation, or a manually chosen early-stopping point, to roughly resemble real MT errors. We instead train the error generator against a discriminator that compares edit patterns, meaning which spans changed and how, between real (MT, post-edit) pairs and synthetic (corrupted, reference) pairs. That gives the generator an automatic, learned criterion for "realistic mistakes" and a corpus of word-level error tags for free.

Why this gap is real

Two findings motivate the work. The first is that synthetic triplets are mismatched to real ones. Adaptation of Back-translation to Automatic Post-Editing for Synthetic Data Generation trains a reverse model that maps (source, reference) to an erroneous MT output. The authors note that such models either collapse to copying the reference or distort it implausibly, and they control this only by stopping training early at a step chosen by hand so that edit rates roughly match. Refer to the Reference builds synthetic MT through paraphrasing and round-trip translation, then filters by edit distance. Its gains are solid for Indic pairs but tiny for high-resource ones (0.37 TER on English–German, 0.19 on English–Russian, WMT22 development set). Advancing Semi-Supervised Learning for Automatic Post-Editing infills masked reference spans with plausible wrong tokens, and concedes that independent token predictions produce repetitive or out-of-context errors. All three shape the error distribution offline with heuristics. None of them measures, or optimizes, how closely the synthetic errors match real ones.

The second finding is that error detection, not correction, is the bottleneck. Detector-Corrector splits APE into a tagger that flags bad words and a corrector that rewrites only flagged spans. On WMT20 English–German it reaches 27.7 TER, against 28.4 for a sequence-to-sequence model and 31.3 for raw MT. Replacing predicted tags with oracle tags improves TER by over 20 points. Its tagger is trained on random insertions, deletions, and replacements. If the injected errors matched real ones, the generator's own edit log would serve as realistic tag supervision.

The method comes from unpaired image translation. As summarized in Generative Adversarial Networks: Recent Developments, cycle-consistent models learn a mapping between two unaligned collections. An adversarial judge makes outputs look like the target collection, and a reconstruction constraint keeps input content intact. The image literature also supplies a constraint we take seriously. When one direction loses information, strict two-way cycles push generators to hide invisible signals in their outputs instead of learning real transformations. Corrupting a sentence is one-to-many, since there are many ways to get it wrong. We therefore do not require a corrector-then-corruptor round trip to reproduce a specific MT output exactly.

The closest existing work is UIP2P. It frames instruction-based image editing as a triplet bottleneck and replaces triplets with a forward-edit/reverse-edit reversibility constraint, reaching 0.0619 L1 error on MagicBrush against 0.1122 for supervised InstructPix2Pix. UIP2P works on continuous images, relies on an external LLM to write inverse instructions, and its reversibility loss would be ill-posed for one-to-many text corruption. We take from it the idea that edit realism and locality can be learned without paired edits. We drop its symmetric cycle, and we replace its CLIP direction loss with a discriminator over discrete edit operations.

Core Claim

The missing training signal for synthetic APE data is a learned judgment of whether an edit pattern looks like real MT error. That signal can be supplied by a discriminator that sees aligned (corrupted text, clean text, source) triples and is trained on the few thousand real triplets that every shared task provides. Optimizing an error injector against this discriminator should do three things. It should replace hand-tuned early stopping. It should produce synthetic triplets whose edit-rate and edit-type distributions match real data more closely. And because the injector's edit log becomes realistic word-level tag supervision, it should close part of the predicted-versus-oracle gap in detector-corrector APE.

Research Program

The error injector $C_\phi(m \mid s, r)$ produces a corrupted target $m$ given source $s$ and reference $r$. It is initialized exactly as the backward-generation model of Adaptation of Back-translation: a reverse APE model supervised on the real triplets with roles swapped (post-edit in, MT out), giving an initial policy $C_0$. The discriminator $D_\psi$ is a cross-lingual encoder of the XLM-RoBERTa type. Its input is the source, the clean target, and the corrupted target, with token-level alignment marks showing which spans differ. It is trained to separate real (src, mt, pe) triplets from synthetic (src, $m$, ref) triplets.

Showing the discriminator the aligned edit rather than the MT string alone is the key design choice. If it saw only MT text, it could separate real from synthetic by topic, since parallel corpora differ in domain from the shared-task data. Its signal would then say nothing about errors. Conditioning on the clean side forces it to judge what was changed and how.

Because text is discrete, the injector is updated by policy gradient. It maximizes

$$J(\phi) = \mathbb{E}_{(s,r)}\,\mathbb{E}_{m \sim C_\phi}\big[\log D_\psi(s, m, r)\big] - \beta\,\mathrm{KL}\big(C_\phi(\cdot \mid s,r)\,\|\,C_0(\cdot \mid s,r)\big),$$

where the expectation runs over source–reference pairs from parallel data and $\beta$ keeps the injector close to its supervised starting point, much as an identity loss keeps CycleGAN outputs anchored. No explicit edit-distance target is needed. Producing zero edits or excessive edits both look unreal to the discriminator, so it takes over the role that manual early stopping played.

The corrector side is the standard APE model. The one-directional cycle (reference, then corrupt, then correct, then reference) is ordinary supervised training on synthetic triplets, which is why we avoid the asymmetric round trip. For the detector-corrector variant, every synthetic triplet comes with word-level tags read directly from the injector's edit operations: substitutions and deletions, missing words, and reordering. These train the detector of Detector-Corrector in place of its random-noise tags.

Before any APE training, we measure distributional match directly. We train a fresh held-out classifier, separate from $D_\psi$, to tell real from synthetic edits; accuracy near chance indicates a match. We also compare the distribution of sentence-level TER (translation edit rate, the fraction of words that must be edited), the mix of edit operation types, and the fraction of sentences left untouched. Real MT contains many already-correct sentences, and APE systems' tendency to over-correct them ("itchy fingers") is partly a symptom of synthetic data that never contains unedited sentences.

Baselines

The naive reference point is doing nothing: leaving the MT output unchanged. On WMT20 English–German this is 31.56 TER according to Findings of the WMT 2020 Shared Task on Automatic Post-Editing, or 31.3 as measured in Detector-Corrector. On WMT24 the quality-informed APE (QEAPE) tasks use the same do-nothing reference, with results reported as HTER, an edit rate computed against human corrections.

The strongest synthetic-data competitor is reference-focused round-trip data from Refer to the Reference. It is the most recent method aimed at the same mismatch and reports the best Indic results, with TER improvements of 1.01 on English–Marathi, 2.42 on English–Hindi, and 2.60 on English–Tamil on the WMT22 development set. We will regenerate its corpus from the same parallel source sentences we feed our injector, so that synthetic corpus size and source text are identical.

The second synthetic competitor is backward generation with hand-tuned early stopping, from Adaptation of Back-translation. This is exactly our initialization, so the difference between it and our method isolates the adversarial training. The file reports no TER/BLEU values for it (no reported result found on Lacuna for eSCAPE-BG), so we reproduce it ourselves.

The strongest architecture baseline is Detector-Corrector at 27.7 TER on WMT20 English–German, trained with its original random-noise tags. The strongest system-level reference is the Llama3-8B pipeline of HW-TSC's Participation in the WMT 2024 QEAPE Task, which reports a 15.99-point HTER reduction on English–Hindi and 0.47 on English–Tamil. We will not try to beat that pipeline's scale. Instead we fine-tune the same open model with and without our synthetic data, under the same continued-pretraining budget. Every APE model, whether seq2seq, detector-corrector, or LLM, gets the same number of synthetic triplets, the same real triplets, the same training steps, and the same hyperparameter search size on the development set.

Two ablations isolate the key ingredient. In the first, the discriminator sees MT text only, without the clean side, to test whether edit-conditioning matters. In the second, the injector is updated only by the corrector's reconstruction loss and no discriminator is used, which tests whether distribution matching, rather than joint training, is what helps. Beating the baselines means a lower test TER than both round-trip and backward-generation data at equal corpus size on at least the low-resource pairs, and a smaller predicted-versus-oracle gap for the detector when trained on our tags.

Why not just…?

Why not just train a classifier on real versus synthetic edits and use it to filter existing synthetic corpora? This is the most serious threat, because it uses the same signal at a fraction of the cost and avoids the instability of policy gradients. Filtering can only keep samples the generator already produces. If backward generation rarely produces unedited sentences or realistic omissions, filtering cannot create them. We will run this as a direct baseline: the held-out discriminator rescores backward-generation and round-trip corpora and keeps the top samples to the same corpus size. If filtering matches the trained injector, we will report that the contribution is the edit-conditioned discriminator as a selection criterion, not generator training. The note's core claim survives that outcome, but the method should be simplified to match it.

Why not just do iterative back-translation, letting the corruptor and corrector train each other? Dual learning optimizes only whether the corrector can undo the corruption. That rewards errors that are easy to fix, or that carry hidden hints, which is the textual analogue of the hidden signals seen in image cycles. Nothing in it pulls toward real MT behavior. Our second ablation is exactly this setup. We expect its synthetic TER distribution to drift from the real one, and the held-out classifier will measure that.

Why not just fine-tune an LLM post-editor with a quality-estimation filter? HW-TSC's Participation in the WMT 2024 QEAPE Task shows this works on English–Hindi. The same paper found that its quality-estimation filter unexpectedly raised HTER on the Hindi development set, and the English–Tamil gain was only 0.47. Guiding Large Language Models to Post-Edit Machine Translation with Error Annotations found that prompting without triplet fine-tuning gives marginal gains. LLMs still need triplets, so better synthetic triplets complement them rather than compete with them. Our LLM-fine-tuning comparison tests this.

Why not just run a real MT system over parallel data and filter by edit distance, as eSCAPE does? That yields real MT errors, but the references were not written as edits of those outputs. The supposed post-edits therefore differ from the MT far more than human corrections do, which is the mismatch documented in Adaptation of Back-translation. Edit-distance filtering is already part of the round-trip baseline. We will also include filtered eSCAPE at equal size on English–German.

Proposed Experiments

We run on WMT20 English–German (7,000 real triplets, Wikipedia domain), WMT22 English–Marathi, English–Hindi, and English–Tamil, and WMT24 QEAPE English–Hindi and English–Tamil (7,000 train, 1,000 development, 1,000 test triplets per pair). Synthetic data comes from eSCAPE sources for German and the same Indic parallel sources used by the round-trip baseline. We report TER and BLEU, plus HTER for WMT24.

We also report two diagnostics. The first is the over-correction rate: the fraction of MT outputs needing zero gold edits that the system modifies. The second is the detector's word-level tag F1 on real development triplets, where gold tags come from aligning MT to the human post-edit.

The decisive checks come in order. First, the held-out classifier's accuracy at separating synthetic from real edits must fall well below that of backward generation and round-trip data. If it does not, the adversarial training has failed and downstream comparisons are uninterpretable. Second, at matched corpus size, the corrector trained on our data must beat round-trip and backward-generation data in TER, with the clearest expected gains on the Indic pairs where triplets are scarcest. Third, a detector trained on our edit-log tags must raise real tag F1 and narrow the gap to oracle tags reported by Detector-Corrector. A result in which distributional match improves but downstream TER does not would tell us that realism of errors is not the binding constraint. That would be a useful negative result about where the field's synthetic-data effort should go.