An error analysis for image-based multi-modal neural machine translation

Iacer Calixto, Qun Liu

Introduction

Standard Neural Machine Translation (NMT) often struggles with lexical ambiguity. For instance, the word "jaguar" can refer to either a vehicle or an animal; without explicit textual context, a model may fail to select the correct target term. Multi-modal Machine Translation (MNMT) attempts to resolve such ambiguities by providing an image as a grounding signal. While previous research has demonstrated that visual inputs improve automated metrics like BLEU, there has been a lack of granular understanding regarding which specific errors these models address. This paper provides a human-led error analysis to determine how different MNMT architectures handle translation tasks compared to text-only baselines.

Methodology

The study evaluates two text-only baselines—a Phrase-Based Statistical MT (PBSMT) and a standard attention-based NMT—against six MNMT variants. These variants integrate visual features through three primary architectural strategies:

  1. Images as Source Words ($IMG_{2W}$): Global image features are projected into the word embedding space and treated as the first and last tokens of the source sequence.
  2. Encoder/Decoder Initialization ($IMG_E, IMG_D$): The image features are used to set the initial hidden states of the RNNs.
  3. Doubly-Attentive ($NMT_{SRC+IMG}$): A complex architecture utilizing two independent attention mechanisms—one for source text and one for spatial image patches.
Architectures for integrating visual features into MNMT: (a) images as source words, (b) encoder initialization, and (c) decoder initialization.

Experimental Setup

The authors utilized the Multi30k (M30k) dataset, which extends Flickr30k with professional German translations of English image descriptions. The manual error analysis was conducted on a random subset of 50 sentences from the test set, involving a total of 400 generated translations across the various models. The analysis distinguished between global features (a single vector for the whole image) and local spatial features (multiple vectors for specific regions).

Error Analysis and Key Insights

The "Collateral Impact"

The most significant finding is that images provide a "collateral" benefit. Rather than just improving the translation of concrete objects (e.g., "dog" or "ball"), MNMT models showed a reduction in nearly all error categories. This includes better handling of non-visual linguistic structures and structural "filler" words, suggesting that the visual signal helps the model maintain a more coherent internal representation of the sentence.

Under-translation and Over-translation

While NMT models generally struggle with "missing words" (under-translation) compared to older PBSMT models, MNMT models were found to be particularly prone to this when the mapping between visual features and text was weak. Conversely, MNMT models occasionally exhibited "novel term generation," where they produced visual terms visible in the image but not present in the source text (e.g., adding the word "paddling" when the source text only mentioned a "kayak").

Architectural Simplicity

Despite the theoretical sophistication of doubly-attentive models that focus on specific image patches, simpler models using global features for encoder/decoder initialization ($IMG_{E+D}$) often performed equally well or better. This is likely due to the limited size of multi-modal training data, which favors models with fewer parameters.

Results

The manual analysis revealed a sharp decrease in mistranslations. In the "incorrect words" category, errors dropped from 41 in the NMT baseline and 52 in the PBSMT to between 23 and 29 in the MNMT variants. For terms with strong visual connotations, the $IMG_{E+D}$ model correctly translated 138 units, outperforming both PBSMT (120) and text-only NMT (127). Overall, the best-performing MNMT model ($IMG_{2W+D}$) produced only 65 total errors across the sample set, compared to 97 for the text-only NMT and 166 for the PBSMT.

Conclusion and Future Work

While MNMT significantly reduces mistranslations, the problem of under-translation remains a challenge. The authors suggest that incorporating "attention memory" could help the model track which parts of the source have already been translated. Furthermore, the lack of significant gains from doubly-attentive models suggests a need for hierarchical attention mechanisms that better coordinate the focus between text and imagery, potentially allowing models to learn more effectively from smaller datasets.

Summary updated

BibTeX
@article{calixto2019error,
  author = {Iacer Calixto and Qun Liu},
  title = {{An error analysis for image-based multi-modal neural machine translation}},
  journal = {Mach. Transl.},
  year = {2019},
  doi = {10.1007/s10590-019-09226-9},
}
Figure