NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Handling Homographs in Neural Machine Translation

Frederick Liu, Han Lu, Graham Neubig · OpenReview

TL;DR

This paper investigates the persistent challenge of translating homographs (words with the same spelling but different meanings) in Neural Machine Translation (NMT) systems. The authors demonstrate that even advanced NMT models struggle with these ambiguous words and propose a novel approach by integrating context-aware word embeddings, inspired by Word Sense Disambiguation (WSD) techniques, to improve translation accuracy.

What Problem Does This Paper Address?

Homographs, like "bank" (river vs. financial institution) or "bat" (animal vs. sports equipment), have historically been a thorn in the side of machine translation systems. While Neural Machine Translation (NMT) promised to overcome this by considering global sentence context, this paper provides empirical evidence that current NMT systems still falter when translating these ambiguous words. The core problem is that standard NMT models, despite their ability to process entire sentences, often fail to correctly disambiguate the intended meaning of a homograph, leading to inaccurate translations. This is particularly problematic because the performance of NMT systems degrades as the number of senses a word has increases.

Methods

The authors tackle this problem by drawing inspiration from the field of Word Sense Disambiguation (WSD). They propose to enhance NMT by creating "context-aware" word embeddings. Instead of using standard word embeddings, they first generate a context vector for each word using various WSD-inspired "context networks." These context networks include:

  • Neural Bag-of-Words (NBOW): A simple approach that averages the embeddings of all words in a sentence to create a context vector.
  • Bi-directional LSTM (BiLSTM): A recurrent neural network that processes the input sequence in both forward and backward directions to capture context.
  • Held-out LSTM (HoLSTM): An LSTM language model trained to predict a word given its surrounding context.

These context vectors are then integrated with the original word embeddings in two ways:

  • Gating: A gating function is used to modulate the original word embedding based on the context vector.
  • Concatenation: The context vector is concatenated with the original word embedding, and this combined vector is then projected back to the original embedding dimension.

These context-aware embeddings are then fed into the NMT encoder, aiming to provide the model with a richer, disambiguated representation of the input words.

Datasets

The experiments were conducted on the following WMT (Workshop on Machine Translation) datasets:

  • English-German (WMT'14 and WMT'15)
  • English-French (WMT'13)
  • English-Chinese (WMT'17)

For training, a combination of Europarl v7, Common Crawl, and News Commentary datasets were used. Development sets included newstest2013 (German), newstest2012 (French), and 2357 sentences from News Commentary v12 and CWMT Corpus (Chinese).

Key Insights and Ideas

  • NMT still struggles with homographs: Despite the theoretical advantage of NMT in capturing global context, empirical evidence shows a significant performance drop for words with multiple senses.
  • Context matters more than just sentence length: The degradation in translation accuracy for homographs is directly correlated with the number of senses a word has, highlighting the importance of semantic disambiguation.
  • WSD techniques can boost NMT: Integrating context vectors derived from WSD methods into word embeddings effectively helps NMT systems disambiguate homographs.
  • BiLSTM as a context network is powerful: Among the tested context network approaches, BiLSTM consistently yielded the best results, suggesting its effectiveness in capturing nuanced contextual information.
  • Concatenation outperforms gating: Directly concatenating the context vector with the word embedding proved to be a more effective integration method than gating.

Key Results

The proposed context-aware NMT models demonstrated significant improvements over a strong baseline:

  • Overall BLEU Score: The best proposed models achieved improvements of around 0.7 BLEU points on WMT'14 and WMT'15 English-German datasets compared to the baseline. Similar improvements (0.5-0.8 BLEU) were observed for English-French and English-Chinese.
  • Homograph Translation Accuracy: A targeted analysis showed that the proposed models significantly outperformed the baseline in terms of F1 score, precision, and recall specifically for homographs. The improvements on homographs were larger than on general vocabulary words, indicating the targeted benefit of the approach.
  • Qualitative Examples: Sample translations showcased instances where the baseline model produced incorrect translations for homographs (e.g., translating "meets" as "satisfy" instead of "会见"), while the proposed model correctly disambiguated the sense.

Limitations and Future Work

  • Not a complete solution: The authors acknowledge that their proposed architectures do not "solve the problem of homographs" entirely but do yield significant improvements.
  • Layer depth impact: Using more than two layers in the encoder (specifically a 3-layer BiLSTM) did not further improve performance and, in some cases, degraded it, possibly due to vanishing gradient issues.
  • Future work: The paper suggests that future work could explore more focused architectures to further enhance the handling of homographs and other word sense ambiguity challenges in NMT. The authors hope their work will spark further discussion and research in this area.

Summary updated

BibTeX
@inproceedings{liu2018handling,
  author = {Frederick Liu and Han Lu and Graham Neubig},
  title = {{Handling Homographs in Neural Machine Translation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-1121},
}
Figure