Skip to main content
QUICK REVIEW

[Paper Review] Neural Machine Translation with Latent Semantic of Image and Text

Joji Toyama, Masanori Misono|arXiv (Cornell University)|Nov 25, 2016
Multimodal Machine Learning ApplicationsComputer Science15 references15 citations
TL;DR

This paper proposes a neural machine translation model that integrates a continuous latent variable inferred from both text and image inputs using a Variational Autoencoder (VAE), enabling better capture of underlying semantics. The model improves translation accuracy—especially for short sentences—by leveraging image information during training, outperforming baseline NMT and VNMT models on English-German translation with higher BLEU and METEOR scores, while maintaining inference without images.

ABSTRACT

Although attention-based Neural Machine Translation have achieved great success, attention-mechanism cannot capture the entire meaning of the source sentence because the attention mechanism generates a target word depending heavily on the relevant parts of the source sentence. The report of earlier studies has introduced a latent variable to capture the entire meaning of sentence and achieved improvement on attention-based Neural Machine Translation. We follow this approach and we believe that the capturing meaning of sentence benefits from image information because human beings understand the meaning of language not only from textual information but also from perceptual information such as that gained from vision. As described herein, we propose a neural machine translation model that introduces a continuous latent variable containing an underlying semantic extracted from texts and images. Our model, which can be trained end-to-end, requires image information only when training. Experiments conducted with an English--German translation task show that our model outperforms over the baseline.

Motivation & Objective

  • To improve neural machine translation by capturing the full semantic meaning of source sentences, which standard attention mechanisms fail to do due to their local focus.
  • To explore whether integrating visual information (images) enhances semantic representation in neural machine translation beyond text alone.
  • To develop a training paradigm where image data is used only during training, enabling deployment without images during inference.
  • To investigate how multimodal information (text and image) can stabilize and improve translation quality through a disentangled latent variable.
  • To provide a new framework for multimodal neural machine translation that combines VAE-based latent variables with image and text encodings.

Proposed method

  • A Variational Autoencoder (VAE) is used to infer a continuous latent variable z from both the source sentence and corresponding image, enabling joint modeling of text and visual semantics.
  • The encoder processes the source sentence using a bidirectional RNN, while image features are extracted via a pre-trained CNN (e.g., ResNet or R-CNN), and both are fused to condition the posterior distribution qφ(z|x,y,π).
  • The latent variable z is then integrated into the GRU-based decoder via a context vector, allowing the model to generate target translations conditioned on both the source and the latent semantic representation.
  • The model is trained end-to-end using a variational lower bound objective, with image features used only during training and discarded during inference.
  • Different image feature extraction strategies are evaluated, including using the original image (G), R-CNN features (R), and averaging multiple R-CNN features (O-AVG), with G showing the best performance.
  • The architecture extends Variational NMT (VNMT) by adding image input to the inferrer module, enabling richer semantic abstraction.

Experimental results

Research questions

  • RQ1Can joint modeling of text and image features improve the semantic representation of source sentences in neural machine translation?
  • RQ2Does incorporating visual information during training lead to more accurate and robust translation, especially for short or ambiguous sentences?
  • RQ3How does the use of a VAE-based latent variable, conditioned on both text and image, affect translation quality compared to standard attention-based NMT or VNMT?
  • RQ4To what extent does image information stabilize training and improve generalization, particularly when the test set lacks images?
  • RQ5What are the qualitative trade-offs between improved semantic accuracy and increased grammatical errors when using image-augmented latent variables?

Key findings

  • The proposed model outperforms the baseline NMT and VNMT models on both BLEU and METEOR metrics, with the G variant (using original image features) achieving the highest scores.
  • The model shows significant improvements on short sentences, where the latent variable can better approximate the underlying semantics due to simpler sentence structures.
  • Image-augmented models (especially G and G+O-AVG) exhibit more stable training dynamics, with less fluctuation in validation scores compared to other variants.
  • The model reduces translation errors related to noun phrases (e.g., 'white and black dog' vs. 'white dog and black dog'), indicating better semantic grounding from visual input.
  • Qualitative analysis reveals that the model translates noun phrases more accurately than VNMT, but introduces more grammatical errors—particularly in prepositions and verb forms—due to image features emphasizing visual entities over actions.
  • The model generalizes well to unseen test data, with test scores improving over time, suggesting that image-informed latent variables enhance generalization and reduce overfitting.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.