Use of Machine Translation to Obtain Labeled Datasets for Resource-Constrained Languages

Emrah Budur, Riza Özçelik, Tunga Güngör, Christopher PottsarXiv 2020

Introduction

The current landscape of Natural Language Processing (NLP) is heavily skewed toward English, primarily due to the availability of massive annotated datasets. Resources like the Stanford Natural Language Inference (SNLI) dataset, containing over 500,000 sentence pairs, are foundational for training state-of-the-art models. However, replicating such datasets for languages like Turkish through manual annotation is prohibitively expensive and time-consuming.

This study explores the viability of using commercial machine translation (MT) to "bootstrap" high-quality NLI datasets for Turkish. By creating NLI-TR, the first large-scale Turkish NLI resource, the researchers demonstrate that MT can provide a cost-effective alternative to manual labeling while offering insights into the necessity of language-specific morphological processing.

Methodology and Dataset Creation

The researchers employed a three-step pipeline to develop and validate the Turkish NLI resource:

  1. Automated Translation: Using Amazon Translate, the English SNLI and MultiNLI datasets were converted into Turkish. This process cost approximately $2,000, representing a 98% reduction in cost compared to the estimated $50,000 required for manual annotation.
  2. Expert Validation: A team of 10 Turkish-English bilingual experts audited a sample of 2,000 sentences to ensure semantic logic was preserved. The translations received an average quality score of 4.51/5.0, with over 95% label consistency.
  3. Model Benchmarking: Three variants of the BERT architecture were evaluated: the original English BERT, Multilingual BERT (mBERT), and BERTurk, a model pre-trained specifically on Turkish corpora.
Examples of SNLI premises and hypotheses translated from English to Turkish.

Linguistic Challenges: Agglutination and Gender

Turkish is an agglutinative language where complex meanings are constructed through suffixation. This morphological complexity has historically led researchers to believe that specialized morphological parsers are essential for Turkish NLP.

Additionally, translation introduces unique semantic shifts. For instance, Turkish uses gender-neutral pronouns and nouns (e.g., çocuk for child). An English pair where a "boy" (premise) is contrasted with a "girl" (contradiction) might both translate to çocuk in Turkish, potentially altering the gold label from "Contradiction" to "Entailment." However, validation showed these instances were rare and did not significantly degrade dataset quality.

Results and Analysis

The experimental results highlighted two critical findings regarding model architecture and morphological processing.

The Superiority of In-Language Pre-training

BERTurk emerged as the top-performing model, achieving 87.04% accuracy on the SNLI-TR test set. This significantly outperformed mBERT (85.12%) and English BERT (82.09%), confirming that pre-training on raw text in the target language is more impactful than using a broad multilingual model.

Morphological Parsing vs. Scale

The study investigated whether adding dedicated morphological parsers (such as Zemberek or the BOUN parser) improved performance. The results revealed a "tipping point": while specialized parsers provide a performance boost when training data is limited, their advantage diminishes as the dataset size increases.

Development accuracy across fine-tuning steps for SNLI-TR and MultiNLI-TR datasets.

As shown in the performance curves, the gap between models with and without morphological parsers narrows significantly as fine-tuning progresses. This suggests that modern transformer-based models are capable of implicitly learning complex morphological rules given sufficient data.

Conclusion

This research proves that machine translation is a viable and highly efficient method for generating labeled datasets for resource-constrained languages. The success of BERTurk on NLI-TR—and its comparable performance on human-translated evaluation sets like XNLI—indicates that "synthetic" data can effectively train models for real-world applications. Furthermore, the findings suggest that for large-scale datasets, the focus should remain on high-quality in-language pre-training rather than complex, language-specific preprocessing tools.

Summary updated

BibTeX
@misc{budur2020use,
  author = {Emrah Budur and Riza Özçelik and Tunga Güngör and Christopher Potts},
  title = {{Use of Machine Translation to Obtain Labeled Datasets for Resource-Constrained Languages}},
  year = {2020},
  eprint = {2004.14963},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.14963},
}
Figure