Generative Imagination Elevates Machine Translation

Quanyu Long, Mingxuan Wang, Lei Li

Abstract

Multimodal Neural Machine Translation (MNMT) typically requires paired images at inference time, limiting its real-world applicability. We present ImagiT, a framework that leverages "generative imagination" to synthesize internal visual representations from source text. By incorporating an adversarial generative network and a semantic reconstruction "mirror," ImagiT achieves the benefits of multimodal context without requiring external images during inference. Experimental results on Multi30K and Ambiguous COCO demonstrate that ImagiT outperforms text-only baselines and achieves performance competitive with models using ground-truth images.

Introduction

Traditional Multimodal Neural Machine Translation (MNMT) operates on the premise that visual context can resolve linguistic ambiguities, such as determining if the word "bank" refers to a financial institution or a riverbank. However, standard MNMT faces significant hurdles: the scarcity of high-quality (text, image, target) triplets and the strict requirement for images during inference. In most real-world translation scenarios, perfectly paired visual data is unavailable.

Comparison between standard Multimodal NMT and the proposed ImagiT framework.

To address these constraints, we introduce ImagiT. Instead of relying on external images at test time, ImagiT "imagines" the scene, generating internal visual features to guide the translation process.

Methodology

ImagiT is an end-to-end architecture designed to mimic the human ability to visualize scenes while reading. The model consists of four primary components:

  1. Source Text Encoder: A Transformer-based encoder that extracts features from the input sentence.
  2. Generative Imagination Network: This module uses an attentive generator to produce a visual representation ($f_1$) from text features. It captures both global scene semantics and local word-level details.
  3. Image Captioning (I2T) Mirror: To ensure the imagined features remain semantically grounded, a pre-trained captioning module attempts to reconstruct the source sentence from the generated visual features.
  4. Multimodal Aggregation: An image-aware attention mechanism fuses text and imagined visual features before they are passed to the translation decoder.
Detailed architecture of the ImagiT model, highlighting the Generative Imagination Network and Multimodal Aggregation.

The system is trained using a composite loss function including translation loss, semantic reconstruction loss, and adversarial losses to ensure the generated features are indistinguishable from real visual features.

Experimental Evaluation

The model was evaluated on several benchmarks:

  • Multi30K: The standard dataset for MNMT (English to German/French/Czech).
  • Ambiguous COCO: A specialized set of 461 images and descriptions with ambiguous verbs to test visual context utility.
  • MS COCO: Used for pre-training the imagination module on non-parallel image-text data.

Key Results

ImagiT consistently outperformed text-only Transformer baselines. On the En-De Test2016 set, it achieved 38.5 BLEU, surpassing the baseline's 37.6. Notably, ImagiT performed nearly as well as models provided with actual "ground truth" images, matching the 45.3 BLEU score on the Ambiguous COCO task.

In "color deprivation" tests where color words were masked, ImagiT's performance dropped by only 0.5 BLEU, compared to a 1.3 BLEU drop for the text-only baseline. This suggests the model successfully "fills in" missing information through its internal imagination.

Discussion and Conclusion

ImagiT demonstrates that internal visual representations can serve as a powerful latent bridge for translation, even in the absence of external images. While highly effective for visually depictable entities, the model's current limitation lies in abstract concepts that are difficult to visualize. Future work will explore more diverse training schemes to expand the model's imaginative range across broader domains.

Summary updated

BibTeX
@inproceedings{long2021generative,
  author = {Quanyu Long and Mingxuan Wang and Lei Li},
  title = {{Generative Imagination Elevates Machine Translation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.457},
}
Figure