The Effect of Domain and Diacritics in Yoruba-English Neural Machine Translation

David Ifeoluwa Adelani, Dana Ruiter, Jesujoba O. Alabi, Damilola Adebonojo, Adesina Ayeni, Mofe Adeyemi, Ayodele Awokoya, Cristina España-Bonet

Abstract

Machine Translation (MT) for low-resource languages like Yorùbá faces significant hurdles due to domain mismatch and the critical role of diacritics. We introduce MENYO-20k, a high-quality, multi-domain parallel corpus designed to address these gaps. Our research demonstrates that fine-tuning models on small, diverse, and orthographically correct datasets allows them to significantly outperform massive commercial multilingual models like Google Translate and Facebook’s M2M-100.

Introduction: The Challenges of Yorùbá NMT

Yorùbá is spoken by over 40 million people, yet it remains underserved by modern NMT systems. Two primary issues hinder progress:

  1. Domain Mismatch: Existing large-scale datasets are predominantly religious (e.g., the Bible, JW300). Models trained on these struggle with everyday domains like news, TED talks, or technical manuals.
  2. The Diacritic Dilemma: Yorùbá is a tonal language where diacritics (accents and underdots) are phonemic. Omitting them (e.g., "ede" vs "èdè") leads to massive ambiguity. Most web-scraped data and commercial systems ignore these marks, rendering translations unintelligible to native speakers.

The MENYO-20k Dataset

To combat these issues, we curated MENYO-20k, a dataset of 20,100 parallel sentences across domains including News, TED talks, Movie transcripts, and Proverbs. Unlike previous corpora, MENYO-20k emphasizes clean orthography and standardized splits for benchmarking.

Figure 1: Perplexity and vocabulary coverage improvements across domains when incorporating the MENYO-20k dataset.

As shown in Figure 1, the inclusion of MENYO-20k dramatically reduces perplexity and increases vocabulary coverage across diverse test domains compared to models trained solely on religious texts (JW300 and Bible). This proves that 20,000 high-quality sentences are more valuable for domain adaptation than millions of noisy, un-diacritized sentences.

Methodology

We evaluated several NMT strategies to maximize the utility of our data:

  • Supervised Learning & Transfer Learning: We used a standard Transformer-base architecture and fine-tuned models pre-trained on religious data using MENYO-20k.
  • Iterative Back-Translation: We generated synthetic data from monolingual Yorùbá news to boost Yorùbá-to-English performance.
  • Automatic Diacritization: We developed a tool to restore diacritics to the "naked" outputs of commercial models to ensure a fair comparison.

Key Results

Our experiments confirm that quality and domain relevance outweigh raw data volume. By fine-tuning on MENYO-20k, our models achieved state-of-the-art results for English-Yorùbá translation.

Figure 6: Comparison of translation performance (BLEU and chrF) between our internal models and external commercial systems.

As detailed in Figure 6, our best English-to-Yorùbá (en-yo) model outperformed Google GMNMT by +8.7 BLEU and Facebook M2M-100 by +9.1 BLEU. While commercial models remain competitive in Yorùbá-to-English (yo-en) adequacy, our models provide superior fluency and orthographic accuracy.

Discussion and Conclusion

A major takeaway is that diacritics are non-negotiable for intelligibility. Restoring diacritics to Google's output alone improved its BLEU score by nearly 7 points (from 3.7 to 10.6), highlighting that the underlying translation was often correct but orthographically broken.

However, challenges remain. Proverbs proved to be the most difficult domain, with BLEU scores remaining low (around 9-10) due to their non-literal nature. Future work will focus on expanding domain diversity and improving the handling of figurative language in low-resource settings.

Summary updated

BibTeX
@inproceedings{adelani2021effect,
  author = {David Ifeoluwa Adelani and Dana Ruiter and Jesujoba O. Alabi and Damilola Adebonojo and Adesina Ayeni and Mofe Adeyemi and Ayodele Awokoya and Cristina España-Bonet},
  title = {{The Effect of Domain and Diacritics in Yoruba-English Neural Machine Translation}},
  booktitle = {MTSummit},
  year = {2021},
}
Figure