[Paper Review] Doubly Attentive Transformer Machine Translation
This paper proposes a Doubly-Attentive Transformer NMT (DATNMT) model that enhances neural machine translation by jointly attending to source-language words and spatial visual features via a dual-attention mechanism in a modified multi-head attention layer. The model achieves state-of-the-art performance on English-German multimodal translation, improving BLEU4 by 4.5 points over prior methods and demonstrating strong gains when pre-trained on large text-only or image captioning corpora.
In this paper a doubly attentive transformer machine translation model (DATNMT) is presented in which a doubly-attentive transformer decoder normally joins spatial visual features obtained via pretrained convolutional neural networks, conquering any gap between image captioning and translation. In this framework, the transformer decoder figures out how to take care of source-language words and parts of an image freely by methods for two separate attention components in an Enhanced Multi-Head Attention Layer of doubly attentive transformer, as it generates words in the target language. We find that the proposed model can effectively exploit not just the scarce multimodal machine translation data, but also large general-domain text-only machine translation corpora, or image-text image captioning corpora. The experimental results show that the proposed doubly-attentive transformer-decoder performs better than a single-decoder transformer model, and gives the state-of-the-art results in the English-German multimodal machine translation task.
Motivation & Objective
- To address the limitation of single-attention mechanisms in multimodal NMT by enabling independent, parallel attention over both source text and visual features.
- To improve translation quality in low-resource multimodal settings by leveraging both image-text and text-only pretraining data.
- To demonstrate that a unified transformer decoder can effectively integrate visual and linguistic cues without architectural overhauls.
- To investigate whether pretraining on large-scale text-only or image captioning datasets improves performance in multimodal translation.
Proposed method
- Proposes an Enhanced Multi-Head Attention Layer with two distinct attention vectors: one over source-language tokens and another over spatial regions of an image.
- Uses features from a pretrained convolutional neural network (CNN) to extract spatial visual representations from input images.
- Integrates visual and textual representations into a single transformer decoder that generates target language sequences autoregressively.
- Employs a two-stage training strategy: pretraining on large-scale text-only (OPUS) and image captioning (Flickr30k) datasets, followed by fine-tuning on the target multimodal translation task.
- Applies standard scaled-dot-product attention for both modalities, with separate query, key, and value matrices for text and visual features.
- Utilizes the SoftAlignments tool to visualize and analyze attention distributions between source words, target words, and image regions.
Experimental results
Research questions
- RQ1Can a transformer decoder with dual attention heads for text and image features outperform standard single-attention NMT models in multimodal translation?
- RQ2To what extent can pretraining on large-scale text-only or image captioning corpora improve performance in low-resource multimodal translation?
- RQ3How do the attention weights in the dual-attention mechanism align with semantically relevant parts of the source sentence and corresponding image regions?
- RQ4Does the integration of visual features lead to measurable improvements in translation quality, especially for referring to visual objects?
Key findings
- The DATNMT model achieves a BLEU4 score of 42.2 on the English-German Multi30k test set after pretraining on OPUS corpora, outperforming the baseline TNMT by 4.2 BLEU points.
- When trained without pretraining, DATNMT achieves 41.0 BLEU4, a 2.4-point improvement over the standard TNMT (38.6 BLEU4), demonstrating the effectiveness of the dual-attention mechanism.
- Pretraining on Flickr30k improves TNMT by 2.7 BLEU points (from 38.6 to 39.6), but the gain is smaller for DATNMT (from 41.0 to 41.1), suggesting that DATNMT already benefits from in-domain data.
- DATNMT shows superior performance on precision-oriented metrics (BLEU4), while NMT(SRC+IMG) performs better on recall-oriented metrics (METEOR, TER), indicating complementary strengths.
- Visualization of attention maps confirms that the model learns to align target words like "Teenager" and "Trompete" with corresponding image regions around the head, demonstrating semantic attention grounding.
- The model effectively exploits both in-domain image captioning data (Flickr30k) and out-of-domain text-only corpora (OPUS), showing robust generalization across data types.
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.