Abstract
Homographs—words with identical spellings but different meanings—pose a significant challenge for Neural Machine Translation (NMT) systems. This paper presents the HDR-encoder (Homographic Disambiguation Representation), a novel approach that leverages Natural Language Inference (NLI) and WordNet to teach encoders to distinguish between word senses in the latent space. Experimental results on WMT benchmarks show substantial improvements, including a +2.3 BLEU score gain in English-to-Russian translation.
Introduction
In machine translation, ambiguity is a persistent hurdle. A word like "bank" can refer to a financial institution or a riverbank, and "interest" can mean curiosity or a financial rate. While modern Transformer-based NMT models are powerful, they often fail to capture these nuances due to data sparsity and insufficient context. Previous research often focused on word embeddings; however, this work argues that the most effective disambiguation occurs within the encoder's hidden states—the semantics-bearing latent space.
Methodology: The HDR-Encoder
The HDR-encoder is pre-trained in two stages to develop a robust understanding of both sentence-level semantics and word-level disambiguation.
Sentence Representation (SR) Learning
Initially, the encoder is trained on NLI tasks (using SNLI and MultiNLI datasets). This phase enables the model to learn "universal" sentence meanings by identifying relationships like entailment and contradiction between sentence pairs.
Word Disambiguation Representation (WDR) Learning
The second stage uses WordNet to refine the model's understanding of homographs. By identifying "synsets" and their corresponding example sentences, the model is fine-tuned to cluster representations of the same word sense together while separating different senses in the latent space.
Integration with NMT
The pre-trained HDR-encoder is integrated into a standard Transformer NMT model using three proposed architectures:
- HDR-NMT_add: Sums the outputs of the HDR-encoder and the standard NMT encoder.
- HDR-NMT_gate: Employs a gating mechanism to dynamically balance disambiguation knowledge with standard translation features.
- HDR-NMT_cascade: Passes the HDR-encoder output sequentially into the NMT encoder.
Results and Discussion
The proposed methods were evaluated on WMT14, WMT17, and WMT19 benchmarks across English to Russian, Chinese, German, and French.
Translation Quality
The HDR-NMT_gate model consistently outperformed the baseline, achieving significant BLEU score improvements: +2.3 points for EN→RU and +1.1 points for EN→ZH. These gains indicate that the model effectively utilizes disambiguation knowledge to produce more accurate translations.
Qualitative Analysis
A notable example involves the word "bug." In a technical context regarding flight paths, a baseline model incorrectly translated "pinpoint bugs" as "eavesdropping." The HDR-NMT model correctly identified the sense as "insects," demonstrating superior contextual awareness. Furthermore, visualizations in the paper confirm that while a standard encoder sees a messy cloud for homographs like "right," the HDR-encoder clearly separates the different senses (e.g., "correct" vs. "direction") in the latent space.
Conclusion
The HDR-encoder framework successfully addresses homographic ambiguity by shifting the focus to the latent space. By leveraging external knowledge from WordNet and NLI data, the model achieves state-of-the-art performance in disambiguation tasks. Future research will explore more dynamic gating mechanisms and the potential of combining this approach with specialized word sense embeddings.
Summary updated