Resolving Out-of-Vocabulary Words with Bilingual Embeddings in Machine Translation

Pranava Swaroop Madhyastha, Cristina España-BonetarXiv 2016

Abstract

Statistical Machine Translation (SMT) systems often struggle with out-of-vocabulary (OOV) words—terms encountered during inference that were absent from the parallel training corpus. This paper proposes a method to resolve OOV words by leveraging bilingual word embeddings (BWE) trained on large-scale monolingual corpora and a small seed dictionary. By employing a log-bilinear softmax model with trace norm regularization, the authors demonstrate a significant improvement in translation quality, particularly in out-of-domain scenarios, achieving a 3.9 BLEU point increase on English-Spanish Wikipedia translation tasks.

Introduction

In the field of Statistical Machine Translation (SMT), the performance of a model is inherently constrained by the diversity and volume of its parallel training data. When a system encounters a word it has never seen before—an Out-of-Vocabulary (OOV) word—it typically defaults to either omitting the word or copying it verbatim into the output. While copying works for many named entities (e.g., "Messi"), it fails for content words like nouns and verbs, leading to fragmented and inaccurate translations.

This problem is most acute when a system is applied to a new domain (e.g., a model trained on legal text attempting to translate a scientific article). This paper addresses the OOV challenge by bridging the gap between languages using Bilingual Word Embeddings (BWE), allowing the system to predict translations for unseen words without requiring exhaustive parallel corpora for every domain.

Methodology

The researchers developed a framework to map source language embeddings to target language embeddings using a combination of monolingual data and a limited bilingual lexicon.

1. Embedding Generation

The process begins by training 300-dimensional word embeddings using Word2Vec’s Continuous Bag-of-Words (CBOW) architecture. These embeddings were trained on massive monolingual corpora for both English and Spanish, capturing the semantic and syntactic structures of each language independently.

2. The Log-Bilinear Softmax Model

To translate between these two vector spaces, the authors proposed a log-bilinear softmax model. The model defines the probability of a target word $f$ given a source word $e$ as:

$$Pr(f|e; W) = \frac{\exp\{\phi_s(e)^\top W \phi_t(f)\}}{\sum_{f' \in \mathcal{F}} \exp\{\phi_s(e)^\top W \phi_t(f')\}}$$

Here, $\phi_s(e)$ and $\phi_t(f)$ represent the source and target embeddings, respectively, while $W$ is a learned transformation matrix. This matrix is trained using a "seed" dictionary—the Apertium bilingual dictionary—which contains approximately 37,000 words. This approach allows the model to learn the relationship between the two languages without needing full parallel sentences.

3. Trace Norm Regularization

To ensure the model remains efficient and generalizes well, the authors applied trace norm regularization. This technique encourages the transformation matrix $W$ to be low-rank, effectively compressing the embeddings and focusing the model on the most salient cross-lingual relationships.

4. SMT Integration

The BWE model was integrated into the standard Moses SMT pipeline. When the system identifies an OOV word, it queries the BWE model for a probabilistic list of the top-$n$ translation candidates. these candidates are then injected into the translation process via XML markup, allowing the decoder to choose the most contextually appropriate translation.

Experimental Setup and Datasets

The embeddings were trained on a 2015 Wikipedia dump and the "Quest" dataset (comprising UN and Europarl data), totaling over 3 billion tokens. Evaluation was conducted on two distinct sets:

  • NewsTest: In-domain data from NewsCommentaries 2013.
  • WikiTest: Out-of-domain data extracted from Wikipedia, characterized by a higher frequency of technical and domain-specific OOV words.

Results and Key Insights

The experimental results highlight the efficacy of using monolingual data to supplement translation models:

  • Significant BLEU Gains: On the out-of-domain WikiTest set, the integration of the BWE model alongside a large language model resulted in a 3.9 BLEU point improvement over the baseline.
  • High Translation Accuracy: Manual evaluation of OOV words in the WikiTest set revealed that the model provided a correct translation within its top-10 suggestions 68% of the time.
  • Qualitative Success: The system successfully translated complex content words that the baseline would have left untranslated, such as converting galaxy to galaxia and nymphs to ninfas.

Key Takeaways

  1. Monolingual Data Utility: Large-scale monolingual data contains sufficient structural information to align languages effectively, even in the absence of parallel sentences.
  2. Domain Sensitivity: The model is particularly valuable for out-of-domain translation where the OOV rate for content words is high.
  3. Preserving Named Entities: The authors noted that the "verbatim" baseline is actually quite strong for named entities. A successful system must distinguish between names that should be copied and content words that must be translated.

Limitations and Future Work

Despite its success, the model faces several challenges:

  • Multi-word Expressions: The system currently struggles with compound terms. For instance, it might translate "folksong" as "canción" (song) rather than the multi-word Spanish equivalent "canción folk."
  • Named Entity Confusion: The model occasionally attempts to translate proper names that should remain unchanged (e.g., suggesting "William" for the surname "Stuart").
  • Language Distance: This study focused on the relatively similar pair of English and Spanish. Future research is required to determine if these results hold for more distant language pairs, such as English and Chinese.

Conclusion

By leveraging bilingual word embeddings and trace norm regularization, this research provides a robust method for handling OOV words in SMT. The ability to achieve significant performance gains using only a small seed dictionary and monolingual data offers a scalable path forward for translating low-resource domains and languages.

Summary updated

BibTeX
@misc{madhyastha2016resolving,
  author = {Pranava Swaroop Madhyastha and Cristina España-Bonet},
  title = {{Resolving Out-of-Vocabulary Words with Bilingual Embeddings in Machine Translation}},
  year = {2016},
  eprint = {1608.01910},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.01910},
}
Figure