Training on Synthetic Noise Improves Robustness to Natural Noise in Machine Translation

Vladimir Karpukhin, Omer Levy, Jacob Eisenstein, Marjan Ghazvininejad

Abstract

We consider the problem of making machine translation more robust to character-level variation at the source side, such as typos. Existing methods achieve greater coverage by applying subword models such as byte-pair encoding (BPE) and character-level encoders, but these methods are highly sensitive to spelling mistakes. We show how training on a mild amount of random synthetic noise can dramatically improve robustness to these variations, without diminishing performance on clean text. We focus on translation performance on natural noise, as captured by frequent corrections in Wikipedia edit logs, and show that robustness to such noise can be achieved using a balanced diet of simple synthetic noises at training time, without access to the natural noise data or distribution.

Introduction

State-of-the-art machine translation (MT) systems typically excel on clean, curated datasets but falter when encountering real-world "noisy" input, such as typos common in mobile messaging or social media. Even models utilizing subword units (BPE) or character-level encoders—designed to handle rare words—remain surprisingly brittle. A single character deletion can drastically alter internal representations, leading to translation failures or hallucinations. This paper explores a simple yet powerful solution: augmenting training data with synthetic noise to build inherent robustness.

Methods: A Balanced Diet of Noise

The proposed approach involves training a Transformer-based model with a CNN character encoder on a "balanced diet" of synthetic noise. Instead of training exclusively on clean text, the model is exposed to various character-level perturbations. For every token during training:

  • 60% remains clean.
  • 10% undergoes Deletion (e.g., whale → whle).
  • 10% undergoes Insertion (e.g., whale → wxhale).
  • 10% undergoes Substitution (e.g., whale → whalz).
  • 10% undergoes Swap (e.g., whale → wahle).
Examples of synthetic noise types applied to the word 'whale'.

The CNN encoder is crucial as it learns to recognize character n-grams. By introducing these distortions, the encoder is forced to learn features that are invariant to small positional shifts and character changes.

Datasets and Evaluation

The researchers evaluated the method on three language pairs from the IWSLT 2016 benchmark: German-English (de-en), French-English (fr-en), and Czech-English (cs-en). To assess robustness to "natural" noise, they utilized:

  1. Wikipedia Edit Logs: Capturing real-world human spelling corrections.
  2. MTNT: A dataset of Reddit posts containing slang, non-standard grammar, and stylistic variations.

Key Results

The inclusion of synthetic noise during training led to massive performance gains on noisy test data with negligible impact on clean text performance.

Comparison of BLEU scores between baseline models and those trained with synthetic noise across various noise levels.

As shown in the results, for the German-English task at 100% noise probability, the robust model achieved a BLEU score of 23.34, nearly doubling the baseline's 12.49. Crucially, the "clean" penalty was minimal, often less than 1 BLEU point, and in some instances, synthetic noise training even slightly improved performance on clean text.

Insights: The Importance of Deletion

A key finding from the ablation studies is the disproportionate impact of deletion noise. Removing deletions from the training mix resulted in the most significant drop in robustness. Deletions and insertions are particularly challenging because they change word length and shift the positions of all subsequent characters, forcing the model to develop more robust, position-invariant representations.

Furthermore, the results demonstrate that training on simple, random synthetic noise generalizes remarkably well to the complex, non-random patterns of human errors found in natural datasets like Wikipedia logs.

Limitations and Conclusion

While highly effective against orthographical noise (typos), this method does not address broader linguistic variations. Performance on the MTNT (Reddit) dataset did not see significant improvements, suggesting that social media "noise"—comprising slang, emoticons, and grammatical shifts—requires different strategies beyond character-level perturbations.

In conclusion, a "balanced diet" of synthetic noise is a simple and effective way to make MT models typo-proof. Future work should explore higher-level synthetic noise to address the challenges of stylistic and dialectal variation.

Summary updated

BibTeX
@inproceedings{karpukhin2019training,
  author = {Vladimir Karpukhin and Omer Levy and Jacob Eisenstein and Marjan Ghazvininejad},
  title = {{Training on Synthetic Noise Improves Robustness to Natural Noise in Machine Translation}},
  booktitle = {W-NUT @ EMNLP},
  year = {2019},
  doi = {10.18653/v1/d19-5506},
}
Figure