arXiv(opens in a new tab)cs.LGNov 2014Cited by 10 papers on PaperVantage

Manuscript Offprint

arXiv:1411.2539

Unifying Visual-Semantic Embeddings with Multimodal Neural Language Models

Ryan Kiros, Ruslan Salakhutdinov, Richard S. Zemel

Abstract

Inspired by recent advances in multimodal learning and machine translation, we introduce an encoder-decoder pipeline that learns (a): a multimodal joint embedding space with images and text and (b): a novel language model for decoding distributed representations from our space. Our pipeline effectively unifies joint image-text embedding models with multimodal neural language models. We introduce the structure-content neural language model that disentangles the structure of a sentence to its content, conditioned on representations produced by the encoder. The encoder allows one to rank images and sentences while the decoder can generate novel descriptions from scratch. Using LSTM to encode sentences, we match the state-of-the-art performance on Flickr8K and Flickr30K without using object detections. We also set new best results when using the 19-layer Oxford convolutional network. Furthermore we show that with linear encoders, the learned embedding space captures multimodal regularities in terms of vector space arithmetic e.g. image of a blue car - "blue" + "red" is near images of red cars. Sample captions generated for 800 images are made available for comparison.

1 Introduction

Generating descriptions for images has long been regarded as a challenging perception task integrating vision, learning and language understanding. One not only needs to correctly recognize what appears in images but also incorporate knowledge of spatial relationships and interactions between objects. Even with this information, one then needs to generate a description that is relevant and grammatically correct. With the recent advances made in deep neural networks, tasks such as object recognition and detection have made significant breakthroughs in only a short time. The task of describing images is one that now appears tractable and ripe for advancement. Being able to append large image databases with accurate descriptions for each image would significantly improve the capabilities of content-based image retrieval systems. Moreover, systems that can describe images well, could in principle, be fine-tuned to answer questions about images also.

This paper describes a new approach to the problem of image caption generation, casted into the framework of encoder-decoder models. For the encoder, we learn a joint image-sentence embedding where sentences are encoded using long short-term memory (LSTM) recurrent neural networks [1]. Image features from a deep convolutional network are projected into the embedding space of the LSTM hidden states. A pairwise ranking loss is minimized in order to learn to rank images and their descriptions. For decoding, we introduce a new neural language model called the structure-content neural language model (SC-NLM). The SC-NLM differs from existing models in that it disentangles the structure of a sentence to its content, conditioned on distributed representations produced by the encoder. We show that sampling from an SC-NLM allows us to generate realistic image captions, significantly improving over the generated captions produced by [2]. Furthermore, we argue that this combination of approaches naturally fits into the experimentation framework of [3], that is, a good encoder can be used to rank images and captions while a good decoder can be used to generate new captions from scratch. Our approach effectively unifies image-text embedding models (encoder phase) [4, 5, 6] with multimodal neural language models (decoder phase) [2] [7]. Furthermore, our method builds on analogous approaches being used in machine translation [8, 9, 10, 11].

While the application focus of our work is on image description generation and ranking, we also qualitatively analyse properties of multimodal vector spaces learned using images and sentences. We show that using a linear sentence encoder, linguistic regularities [12] also carry over to multimodal vector spaces. For example, image of a blue car - "blue" + "red" results in a vector that is near images of red cars. We qualitatively examine several types of analogies and structures with PCA projections. Consequently, even with a global image-sentence training objective the encoder can still be used to retrieve locally (e.g. individual words). This is analogous to pairwise ranking methods used in machine translation [13, 14].

Figure

Figure 1: Sample generated captions. The bottom row shows different error cases. Additional results can be found at http://www.cs.toronto.edu/\textasciitilderkiros/lstm_scnlm.html

References (44)

  • Long short-term memory
  • Multimodal neural language models
  • Framing image description as a ranking task: Data, models and evaluation metrics
  • Large scale image annotation: learning to rank with joint word-image embeddings
  • Devise: A deep visual-semantic embedding model
  • Grounded compositional semantics for finding and describing images with sentences
  • Explain images with multimodal recurrent neural networks (opens arXiv in a new tab)
  • Recurrent continuous translation models
  • Learning phrase representations using rnn encoder-decoder for statistical machine translation
  • Neural Machine Translation by Jointly Learning to Align and Translate
  • Sequence to sequence learning with neural networks
  • Linguistic regularities in continuous space word representations
  • Multilingual distributed representations without word alignment
  • Multilingual models for compositional distributional semantics
  • Deep fragment embeddings for bidirectional image sentence mapping
  • Multimodal learning with deep boltzmann machines
  • Multimodal deep learning
  • Learning cross-modality similarity for multinomial data
  • Improving image-sentence embeddings using large weakly annotated photo collections
  • Baby talk: Understanding and generating simple image descriptions
  • Every picture tells a story: Generating sentences from images
  • Composing simple image descriptions using web-scale n-grams
  • Corpus-guided sentence generation of natural images
  • Generating image descriptions from computer vision detections
  • Collective generation of natural image descriptions
  • Treetalk : Composition and compression of trees for image descriptions
  • Translating video content to natural language descriptions
  • Three new graphical models for statistical language modelling
  • A multiplicative model for learning distributed text-based attribute representations
  • A novel connectionist system for unconstrained handwriting recognition
  • Generating Sequences With Recurrent Neural Networks
  • Hybrid speech recognition with deep bidirectional lstm
  • Dropout: A simple way to prevent neural networks from overfitting
  • Recurrent neural network regularization (opens arXiv in a new tab)
  • Imagenet classification with deep convolutional neural networks
  • Efficient Estimation of Word Representations in Vector Space
  • Unsupervised learning of image transformations
  • Im2text: Describing images using 1 million captioned photographs
  • Fast and robust neural network joint models for statistical machine translation
  • From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions
  • Very Deep Convolutional Networks for Large-Scale Image Recognition
  • Rich feature hierarchies for accurate object detection and semantic segmentation
  • A neural probabilistic language model
  • Microsoft COCO: Common Objects in Context