[Paper Review] Towards Understanding Neural Machine Translation with Word Importance
This paper proposes a gradient-based method using integrated gradients to measure word importance in neural machine translation (NMT), demonstrating superior performance in identifying influential input words compared to black-box methods. Key findings show that word importance varies by syntactic category across language pairs—e.g., nouns in Chinese→English, prepositions in English→French—and can detect under-translated words, informing better NMT architecture design with language-specific inductive biases.
Although neural machine translation (NMT) has advanced the state-of-the-art on various language pairs, the interpretability of NMT remains unsatisfactory. In this work, we propose to address this gap by focusing on understanding the input-output behavior of NMT models. Specifically, we measure the word importance by attributing the NMT output to every input word through a gradient-based method. We validate the approach on a couple of perturbation operations, language pairs, and model architectures, demonstrating its superiority on identifying input words with higher influence on translation performance. Encouragingly, the calculated importance can serve as indicators of input words that are under-translated by NMT models. Furthermore, our analysis reveals that words of certain syntactic categories have higher importance while the categories vary across language pairs, which can inspire better design principles of NMT architectures for multi-lingual translation.
Motivation & Objective
- To improve interpretability of neural machine translation (NMT) models by measuring the influence of individual input words on the output.
- To address the limitations of attention-based explanations, which lack strong correlation with actual word importance.
- To validate a gradient-based method for word importance estimation across diverse language pairs and model architectures.
- To identify under-translated words using word importance scores for potential model refinement.
- To inform future NMT architecture design by revealing language-specific syntactic categories with higher importance.
Proposed method
- The study employs integrated gradients (IG) to attribute the NMT output to each input word by integrating gradients along the path from a baseline input to the actual input.
- Word importance is computed using the integrated gradients method, which provides a more accurate and stable estimation of feature contribution than attention scores.
- The approach is evaluated on multiple language pairs (e.g., Chinese→English, English→French, English→Japanese) and two model architectures to ensure generalization.
- Perturbation-based ablation studies are conducted to quantitatively validate the effectiveness of the gradient-based importance scores.
- Linguistic analysis is performed on high-importance words, categorizing them by part-of-speech (POS) and fertility (number of target words generated).
- The method is compared against black-box perturbation methods and attention-based explanations to demonstrate superiority in identifying influential words.
Experimental results
Research questions
- RQ1How effective is the gradient-based word importance estimation method in identifying input words that significantly affect translation output?
- RQ2How does word importance vary across different language pairs in terms of syntactic categories?
- RQ3Can word importance scores detect under-translated words in NMT outputs?
- RQ4To what extent do fertility patterns (e.g., one-to-many mappings) correlate with word importance?
- RQ5How does the importance of punctuation and function words compare across language pairs, especially in morphologically rich or word-order-sensitive languages?
Key findings
- The gradient-based method, specifically integrated gradients, outperforms black-box perturbation methods and attention scores in identifying input words with high influence on translation output.
- Words of certain syntactic categories are consistently more important: nouns in Chinese→English, prepositions in English→French, and prepositions and punctuation in English→Japanese translation.
- Punctuation is found to be highly important in English→Japanese translation, likely due to its role in defining syntactic sense groups, a counter-intuitive but empirically supported finding.
- One-to-many fertility (source words mapped to multiple target words) is consistently associated with higher word importance across all evaluated language pairs.
- Null-aligned words (those not translated) receive significantly lower importance scores, confirming their minimal contribution to translation output.
- The distribution of word importance across POS categories varies significantly by language pair, suggesting that language-specific inductive biases should be incorporated into NMT model design.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.