[Paper Review] Paying Attention to Multi-Word Expressions in Neural Machine Translation
This paper proposes enhancing neural machine translation (NMT) for multi-word expressions (MWEs) by augmenting training data with synthetic parallel MWE pairs. It evaluates two strategies—adding isolated MWE pairs and full sentences containing MWEs—finding that adding MWE pairs alone improved BLEU by 0.99 on an MWE-specific test set, with alignment analysis confirming improved attention focus on MWEs in the enhanced model.
Processing of multi-word expressions (MWEs) is a known problem for any natural language processing task. Even neural machine translation (NMT) struggles to overcome it. This paper presents results of experiments on investigating NMT attention allocation to the MWEs and improving automated translation of sentences that contain MWEs in English->Latvian and English->Czech NMT systems. Two improvement strategies were explored -(1) bilingual pairs of automatically extracted MWE candidates were added to the parallel corpus used to train the NMT system, and (2) full sentences containing the automatically extracted MWE candidates were added to the parallel corpus. Both approaches allowed to increase automated evaluation results. The best result - 0.99 BLEU point increase - has been reached with the first approach, while with the second approach minimal improvements achieved. We also provide open-source software and tools used for MWE extraction and alignment inspection.
Motivation & Objective
- Address the challenge of poor MWE translation in neural machine translation (NMT), which often fails to preserve idiomatic or fixed multi-word phrases.
- Investigate how NMT models allocate attention to MWEs during inference, especially in low-resource settings like English–Latvian and English–Czech.
- Improve NMT performance on MWEs by augmenting training data with automatically extracted and aligned parallel MWE corpora.
- Evaluate the impact of synthetic MWE data on both automatic metrics (BLEU) and human inspection of attention alignments.
- Release open-source tools for MWE extraction, alignment visualization, and integration into NMT pipelines.
Proposed method
- Extract candidate MWEs from parallel monolingual and parallel corpora using a rule-based MWE toolkit, focusing on lexical and syntactic idiom-like patterns.
- Create two types of synthetic training data: (1) isolated bilingual MWE pairs and (2) full sentences containing the extracted MWEs, both aligned at the subword level using BPE.
- Fine-tune baseline NMT models (Neural Monkey) on the augmented training data, using the WMT 2017 parallel corpora for English–Czech and English–Latvian.
- Visualize attention alignments using a custom web-based tool that renders soft attention matrices between source and target BPE tokens.
- Compare attention patterns between baseline and enhanced models using example sentences with known MWEs, focusing on alignment strength and coherence.
- Use BLEU scores on a dedicated MWE-focused test set to quantify improvements, complemented by manual inspection of translation quality and attention behavior.
Experimental results
Research questions
- RQ1How do NMT models currently allocate attention to multi-word expressions (MWEs), and what patterns emerge in their attention matrices?
- RQ2Can the inclusion of synthetic MWE pairs in the training data improve NMT performance on MWEs, as measured by automatic and manual evaluation?
- RQ3Does adding full sentences containing MWEs to the training data yield better improvements than adding only isolated MWE pairs?
- RQ4To what extent do enhanced models show more focused and coherent attention on MWE components compared to baseline models?
- RQ5Can alignment visualization tools effectively reveal improvements in MWE translation after data augmentation?
Key findings
- Adding isolated bilingual MWE pairs to the training data yielded the highest improvement, increasing BLEU by 0.99 points on an MWE-specific test set.
- The full-sentence MWE augmentation strategy resulted in minimal performance gains, suggesting that isolated MWEs are more effective for data augmentation in this context.
- Manual inspection confirmed that the enhanced model produced more accurate translations of specific MWEs, such as 'network users' in English–Latvian translation.
- Attention alignment visualizations showed stronger and more focused attention lines from source MWE words to their correct target translations in the improved model, especially for multi-word units.
- The baseline model exhibited weak and scattered attention for MWE components, indicating uncertainty in alignment, while the enhanced model demonstrated clearer, more coherent attention patterns.
- The open-source MWE extraction and alignment visualization tools were successfully used to inspect and validate the improvements in attention behavior and translation quality.
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.