NICT's Corpus Filtering Systems for the WMT18 Parallel Corpus Filtering Task

Rui Wang, Benjamin Marie, Masao Utiyama, Eiichiro Sumita

TL;DR

This paper tackles the challenge of building high-quality Neural Machine Translation (NMT) systems from massive, noisy web-crawled parallel corpora. The authors developed a robust classifier using features derived from clean data and NMT models to score and filter sentence pairs, significantly improving NMT performance even when using a fraction of the original data.

What Problem Does This Paper Address?

Modern machine translation systems, particularly Neural Machine Translation (NMT), have achieved remarkable quality. However, training these systems effectively requires vast amounts of parallel data (sentences and their translations). While web crawling can yield enormous datasets, this data is often "noisy" – containing misalignments, incorrect translations, or non-linguistic content. This noise can severely degrade NMT performance because NMT models, unlike older Statistical Machine Translation (SMT) systems, are highly sensitive to individual training instances. The WMT18 shared parallel corpus filtering task specifically addressed this by providing a 1-billion-word German-English corpus from the Paracrawl project, which was known to be very noisy. The challenge was to effectively filter this noisy data to create smaller, cleaner subsets that would yield better NMT models.

Methods

The core of NICT's approach was to build a classifier to score sentence pairs in the noisy corpus. This involved a multi-stage process:

  1. Aggressive Filtering: Before applying a sophisticated classifier, the authors performed an initial, aggressive filtering step. This removed sentence pairs that were clearly unusable, such as those with a high percentage of numbers/punctuation or sentences that were too short (less than four tokens) or too long (over 80 tokens). This step alone removed 69% of the data.
  2. Feature Engineering: For the remaining sentence pairs, they engineered a rich set of features. These included:
  3. NMT Model Scores: Scores from four Marian NMT transformer models (trained on clean data) for both left-to-right and right-to-left directions (German-to-English and English-to-German).
  4. Lexical Translation Probabilities: Sentence-level translation probabilities computed using the Moses toolkit.
  5. Bilingual Word Embedding Similarity: Features based on aligned monolingual word embeddings (FastText) to measure semantic similarity between source and target sentences.
  6. Length-Based Features: Simple features like the number of tokens in each sentence and the difference between them.
  7. Classifier Training: A logistic regression classifier was trained using these features. To create training data for the classifier, they used clean data from the WMT18 News Translation Task (Newstest2014) as positive examples and generated synthetic noisy examples (misaligned, wrong translation, misordered words) as negative examples.
  8. Sampling and NMT Training: The trained classifier was used to assign a quality score to each sentence pair in the noisy corpus. The top-ranked sentence pairs were then sampled to create smaller datasets (100 million and 10 million words) for training NMT systems using the Marian NMT framework.

Datasets

  • Noisy Corpus: 1 billion words German-English corpus from the Paracrawl project (provided by WMT18).
  • Clean Data for Classifier Training: WMT18 News Translation Task clean data (Newstest2014 for training, Newstest2015 for tuning).
  • Evaluation Data: Newstest2016 (development), and Newstest2018, iwslt2017, Acquis, EMEA, Global Voices, and KDE (test sets).

Key Insights and Ideas

  • NMT's Sensitivity to Noise: The paper strongly reinforces that NMT systems are significantly more susceptible to noise than SMT systems, making effective data filtering crucial.
  • Leveraging Clean Data for Filtering: Using clean, in-domain data (like the WMT News task data) to train a classifier is a powerful strategy for filtering massive, noisy web-crawled corpora.
  • Feature Richness Matters: Combining diverse features, including NMT model scores, lexical probabilities, and semantic similarity, leads to a more accurate filtering classifier.
  • Aggressive Initial Filtering is Beneficial: A simple, aggressive filtering step can remove a large portion of clearly unusable data, making subsequent classification more efficient and effective.
  • Diminishing Returns with Extreme Filtering: While filtering is beneficial, selecting too small a subset (e.g., 10M words) can lead to a significant drop in NMT performance, suggesting that even noisy data contains some useful information.

Key Results

  • The proposed "Classifier" method significantly improved NMT performance, achieving over 20 BLEU points higher than using the original noisy corpus.
  • The "Classifier + LangID" variant, which also used a language identification tool, further improved performance by approximately 2-5 BLEU points, highlighting the effectiveness of removing non-target language sentences.
  • NMT systems trained on 100M filtered sentences performed much better than those trained on 10M sentences, but the 10M subset was significantly faster to train and contained most of the useful information, suggesting it could accelerate NMT training significantly.
  • The aggressive filtering step alone improved BLEU by 1.5 points and reduced the corpus size by 69%.
  • The baseline "Hunalign" method performed poorly, with a significant performance drop when using only 10M sentences.

Limitations and Future Work

  • Language Identification: While "Classifier + LangID" showed improvement, the paper notes that there are still sentences that are not proper languages, suggesting further improvements could be made with more sophisticated language identification.
  • Unsupervised Methods: The authors acknowledge that their approach relies on supervised classification using clean data as a gold standard. They propose investigating unsupervised methods in the future, where NMT systems themselves would detect noisy sentence pairs without explicit clean data.
  • Impact of Noise Types: Future work could delve deeper into the impact of each specific type of noise and the individual contribution of each feature used in their classifier.

Summary updated

Abstract

This paper presents the NICT’s participation in the WMT18 shared parallel corpus filtering task. The organizers provided 1 billion words German-English corpus crawled from the web as part of the Paracrawl project. This corpus is too noisy to build an acceptable neural machine translation (NMT) system. Using the clean data of the WMT18 shared news translation task, we designed several features and trained a classifier to score each sentence pairs in the noisy data. Finally, we sampled 100 million and 10 million words and built corresponding NMT systems. Empirical results show that our NMT systems trained on sampled data achieve promising performance.
BibTeX
@inproceedings{wang2018nict,
  author = {Rui Wang and Benjamin Marie and Masao Utiyama and Eiichiro Sumita},
  title = {{NICT's Corpus Filtering Systems for the WMT18 Parallel Corpus Filtering Task}},
  booktitle = {WMT (shared Task)},
  year = {2018},
  url = {https://openreview.net/forum?id=bQ8KPI9qeQ2},
}
Figure