Abstract
Neural Machine Translation (NMT) systems often struggle with homographs—words with multiple meanings but a single spelling. While NMT models theoretically leverage context through recurrent architectures, standard word embeddings remain static, placing an excessive burden on the encoder to disambiguate meanings. This paper proposes a "Context Network" that generates context-aware word embeddings before the encoding stage. By integrating these representations via concatenation or gating, the proposed models achieve significant improvements in translation quality across English-German, English-French, and English-Chinese tasks, particularly for highly ambiguous words.
Introduction: The Homograph Headache
In linguistics, a homograph is a word that shares the same written form but has different meanings (e.g., "lead" as a metal vs. "lead" as a verb). For years, researchers assumed that the transition from phrase-based translation to modern Neural Machine Translation (NMT) would solve this. Since NMT uses Recurrent Neural Networks (RNNs) to look at entire sentences, it should theoretically distinguish between a "river bank" and a "savings bank."
However, empirical evidence suggests that NMT still struggles with ambiguity. The authors found a direct correlation: the more meanings a word has, the more likely a standard NMT system is to translate it incorrectly. As shown in the figure below, the translation F1-score drops significantly as the number of dictionary senses for a word increases across multiple language pairs.
The core issue is that standard models map every word to a single, static vector (embedding) regardless of context, forcing the encoder to perform the heavy lifting of disambiguation on the fly.
Proposed Methodology: Context-Aware Embeddings
To address this, the researchers introduced a "Context Network" that operates ahead of the standard NMT encoder. The goal is to create a context-aware word embedding—a representation that reflects a word's specific meaning within a given sentence before it enters the main translation engine.
The researchers evaluated three types of Context Networks:
- NBOW (Neural Bag-of-Words): A simple average of all word embeddings in the sentence.
- BiLSTM (Bi-directional LSTM): A sequence model that processes words from both directions to capture local syntactic structure.
- HoLSTM (Held-out LSTM): A model trained to predict a "hidden" word based on its neighbors, a classic technique in Word Sense Disambiguation (WSD).
Once a context vector is generated, it is integrated with the original word embedding using one of two methods:
- Concatenation: Sticking the context vector onto the word embedding and projecting it back to the original size. This method proved most effective in testing.
- Gating: Using a sigmoid-based mathematical "gate" to filter the word embedding based on the context.
Experimental Results
The models were evaluated on major benchmarks from the Workshop on Machine Translation (WMT), including English-German (WMT’14/’15), English-French (WMT’14), and English-Chinese (WMT’17).
Performance Gains
The proposed context-aware models consistently outperformed strong baselines. The BiLSTM + Concatenation configuration emerged as the best model, improving BLEU scores by approximately 0.7 to 0.8 points on English-German and English-French tasks.
In targeted analyses focusing specifically on homographs, the system showed even more pronounced improvements in F1-score, precision, and recall compared to its performance on general vocabulary. This confirms that the model is effectively addressing the specific challenge of lexical ambiguity.
Qualitative Analysis
Qualitative results highlight the model's ability to resolve subtle sense differences. For instance, in translating the word "meets," baseline systems often defaulted to "satisfy" (as in "meets requirements"). In contrast, the context-aware model correctly identified the sense "come together intentionally" by leveraging surrounding contextual cues.
Conclusion and Future Work
While this method significantly improves homograph translation, a performance gap remains between unambiguous words and homographs. The authors suggest that future work could leverage massive, pre-trained language models to provide even richer context. Additionally, specialized architectures designed for rare word senses could further enhance the robustness of NMT systems against lexical ambiguity.
Summary updated