Abstract
This report, originally presented at WMT 2016, introduces a "doubly-attentive" neural machine translation (NMT) architecture designed for translating image descriptions. By integrating spatial visual features directly into the decoding process, the model learns to align specific words with relevant regions of an image. Experimental results on the Multi30K dataset show that this approach significantly outperforms text-only NMT and global-image initialization strategies, though it remains behind traditional statistical methods on small-scale data.
Introduction: Beyond "Blind" Translation
Translating a caption or description of an image is a unique challenge. Text can be ambiguous; for example, the word "bank" could refer to a financial institution or the side of a river. However, if the translation system has access to the associated image, that ambiguity often disappears.
Traditional NMT models are "blind"—they only see the source text. Early attempts at "Multimodal MT" (MMT) usually compressed an entire image into a single, global vector to initialize the translation engine. The authors argue this is inefficient because it discards spatial information. They set out to build a model that can dynamically decide which parts of an image are relevant for each word it translates.
The Doubly-Attentive Architecture
The core innovation is the doubly-attentive decoder, which integrates two distinct streams of information during the generation of the target sentence.
- The Encoder: The system uses a standard bi-directional Gated Recurrent Unit (GRU) to encode the source sentence into a sequence of annotation vectors.
- Visual Features: Instead of a single image "summary," the model utilizes features from the
CONV5,4layer of a pre-trained VGG-19 network. This provides a $14 \times 14$ grid of "patches" (196 total), each representing a specific area of the image. - Double Attention: At every step of generating a translation, the decoder calculates two separate attention weights: one for the source words and one for the image patches.
- Integration: These two context vectors (textual and visual) are combined with the decoder’s previous state to predict the next word in the target language.
Experimental Results
The models were evaluated on Task 1 of the Multi30K corpus, which consists of 30,000 images paired with English descriptions and German translations. The performance was measured using the Meteor score.
The results demonstrate that spatial awareness is key. The doubly-attentive model (CONV5,4) outperformed the text-only NMT by 2.9 points and the global-image (FC7) initialization by 2.3 points. This proves that active attention over image patches is superior to static image initialization.
Interestingly, while the multimodal neural model beat text-only neural models, it still lagged behind Moses, a traditional Statistical Machine Translation system. This highlights the "Neural Gap": on smaller datasets like Multi30K, the data-hungry nature of neural networks remains a significant hurdle.
Key Insights and Future Directions
- Spatial Awareness: By using convolutional features instead of fully connected ones, the model can align specific objects in the image (like a "ball") with specific words in the translation.
- Contextual Disambiguation: The image acts as a grounding mechanism, providing the context needed to resolve linguistic ambiguities.
- Limitations: The authors noted that "soft" attention can sometimes become too diffuse across many image patches. Future work may explore "hard" attention mechanisms or improved modality weighting to better balance the influence of text and images.
Summary updated