TL;DR
This paper explores how different subword segmentation strategies impact neural machine translation (NMT) quality for closely related languages. The University of Helsinki team found that while a novel "cognate-aware" method didn't significantly outperform simpler approaches, character-level models showed surprising competitiveness for Romance languages, despite being slower.
What Problem Does This Paper Address?
Machine translation (MT) systems typically struggle with morphologically rich languages or languages with significant differences in vocabulary and grammar. However, translating between closely related languages, which share much of their linguistic structure, should theoretically be easier. The challenge lies in effectively leveraging this similarity. A key aspect of this is how to break down words into meaningful sub-units (subword segmentation) so that the NMT model can generalize well, especially for rare words or variations. The authors investigate whether a specialized method that explicitly considers cognates (words with shared origins) can offer an advantage over more general segmentation techniques for language pairs like Czech-Polish and Spanish-Portuguese.
Methods
The researchers experimented with four main subword segmentation approaches:
- Character Segmentation: Treating each character as a token. This is simple and requires no preprocessing but can lead to very long sequences, impacting efficiency.
- Morfessor Baseline: An unsupervised method that learns morphological segments by modeling them as a unigram language model. It's tunable via a hyperparameter balancing prior knowledge and data likelihood.
- Cognate Morfessor: An extension of Morfessor that explicitly incorporates information about cognate word pairs between related languages. It aims to create consistent segmentations for similar-looking words across languages, potentially learning longer, transliteratable subword units.
- SentencePiece Unigram Model: A popular method that learns subword units directly from raw text, aiming for a fixed vocabulary size.
- Byte Pair Encoding (BPE): A widely used data compression algorithm adapted for word segmentation, iteratively merging frequent character pairs.
They also explored the impact of back-translation, where monolingual data is translated into the target language to create synthetic parallel data, augmenting the original parallel corpora.
Datasets
The experiments utilized parallel datasets provided by the WMT19 organizers for the following language pairs:
- Czech ↔ Polish
- Spanish ↔ Portuguese
Monolingual datasets were also used for back-translation. The parallel datasets were filtered to remove empty lines, excessively long sentences, and sentences with extreme length ratios.
Key Insights and Ideas
- Cognates Don't Always Win: Despite the intuitive appeal of a "cognate-aware" segmentation method, the authors did not observe significant benefits over simpler approaches like Morfessor Baseline or even SentencePiece for the tested language pairs. This suggests that either the cognate extraction heuristics weren't optimal, or the parameter space for Cognate Morfessor needs further exploration.
- Character-Level Competitiveness: Surprisingly, character-level models performed competitively, especially on the Spanish-Portuguese pair, even outperforming some subword methods on certain metrics. This highlights that for very similar languages, the overhead of complex subword segmentation might not always be necessary.
- Back-Translation Boost: As expected, incorporating back-translated data generally improved translation quality, with gains of 2-6 BLEU points observed. However, there wasn't a clear correlation between the amount of back-translated data and the performance improvement.
- Slavic vs. Romance Language Pairs: A consistent finding was that translation quality was significantly lower for the Slavic pair (Czech-Polish) compared to the Romance pair (Spanish-Portuguese). The authors hypothesize this is due to the development/test sets for Czech-Polish being translated from English independently, leading to less direct translations, whereas Spanish-Portuguese might have been translated more directly.
Key Results
- Character models were competitive: For Spanish-Portuguese, character-level models achieved strong BLEU scores (e.g., 60.69 for PT->ES, 54.62 for ES->PT), sometimes rivaling or exceeding subword methods on the raw reference.
- Subword methods generally performed better on processed references: Morfessor Baseline and Cognate Morfessor models often outperformed character-level models when the reference translations were preprocessed (normalized, tokenized, etc.).
- Cognate Morfessor's performance was similar to Morfessor Baseline: The cognate-aware approach did not consistently yield superior results. For example, on PL->CS, Cognate Morfessor with α=0.001 achieved a BLEU score of 16.02, while Morfessor Baseline with α=0.05 reached 15.80.
- Efficiency Trade-offs: Character-level models were noted to be significantly slower in training and decoding compared to subword models, despite their competitive accuracy.
Limitations and Future Work
- Limited Parameter Exploration: The authors acknowledge that they only explored a small portion of the parameter space for Cognate Morfessor, particularly the vocabulary size and the balance between monolingual corpus cost and edit operation weight. Further research is needed to fully assess its potential.
- Impact of Preprocessing: The study noted that preprocessing choices (normalization, tokenization) could significantly impact evaluation scores, sometimes by up to 2 BLEU points. This highlights the sensitivity of evaluation metrics.
- Statistical Significance: The authors were unable to perform statistical significance testing due to time constraints preventing multiple training runs. This would be crucial for definitively ranking the systems.
- Other Factors: The paper points out that other factors like parallel corpus filtering, the amount of back-translation, and fine-tuning to the target domain can heavily influence translation quality, and these were not the primary focus of their submission.
- Vocabulary Size: The impact of vocabulary size, independently of the segmentation method, warrants further investigation.
Summary updated