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

Manuscript Offprint

arXiv:1411.4389

Long-term Recurrent Convolutional Networks for Visual Recognition and Description

Jeff Donahue, Lisa Anne Hendricks, Marcus Rohrbach, Subhashini Venugopalan, Sergio Guadarrama, Kate Saenko, Trevor Darrell

Abstract

Models based on deep convolutional networks have dominated recent image interpretation tasks; we investigate whether models which are also recurrent are effective for tasks involving sequences, visual and otherwise. We describe a class of recurrent convolutional architectures which is end-to-end trainable and suitable for large-scale visual understanding tasks, and demonstrate the value of these models for activity recognition, image captioning, and video description. In contrast to previous models which assume a fixed visual representation or perform simple temporal averaging for sequential processing, recurrent convolutional models are “doubly deep” in that they learn compositional representations in space and time. Learning long-term dependencies is possible when nonlinearities are incorporated into the network state updates. Differentiable recurrent models are appealing in that they can directly map variable-length inputs (e.g., videos) to variable-length outputs (e.g., natural language text) and can model complex temporal dynamics; yet they can be optimized with backpropagation. Our recurrent sequence models are directly connected to modern visual convolutional network models and can be jointly trained to learn temporal dynamics and convolutional perceptual representations. Our results show that such models have distinct advantages over state-of-the-art models for recognition or generation which are separately defined or optimized.

I Introduction

Recognition and description of images and videos is a fundamental challenge of computer vision. Dramatic progress has been achieved by supervised convolutional neural network (CNN) models on image recognition tasks, and a number of extensions to process video have been recently proposed. Ideally, a video model should allow processing of variable length input sequences, and also provide for variable length outputs, including generation of full-length sentence descriptions that go beyond conventional one-versus-all prediction tasks. In this paper we propose Long-term Recurrent Convolutional Networks (LRCNs), a class of architectures for visual recognition and description which combines convolutional layers and long-range temporal recursion and is end-to-end trainable (Figure 1). We instantiate our architecture for specific video activity recognition, image caption generation, and video description tasks as described below.

Fig. 1: We propose Long-term Recurrent Convolutional Networks (LRCNs), a class of architectures leveraging the strengths of rapid progress in CNNs for visual recognition problems, and the growing desire to apply such models to time-varying inputs and outputs. LRCN processes the (possibly) variable-length visual input (left) with a CNN (middle-left), whose outputs are fed into a stack of recurrent sequence models (LSTMs, middle-right), which finally produce a variable-length prediction (right). Both the CNN and LSTM weights are shared across time, resulting in a representation that scales to arbitrarily long sequences.

Research on CNN models for video processing has considered learning 3D spatio-temporal filters over raw sequence data [1, 2], and learning of frame-to-frame representations which incorporate instantaneous optic flow or trajectory-based models aggregated over fixed windows or video shot segments [3, 4]. Such models explore two extrema of perceptual time-series representation learning: either learn a fully general time-varying weighting, or apply simple temporal pooling. Following the same inspiration that motivates current deep convolutional models, we advocate for video recognition and description models which are also deep over temporal dimensions; i.e., have temporal recurrence of latent variables. Recurrent Neural Network (RNN) models are “deep in time” – explicitly so when unrolled – and form implicit compositional representations in the time domain. Such “deep” models predated deep spatial convolution models in the literature [5, 6].

The use of RNNs in perceptual applications has been explored for many decades, with varying results. A significant limitation of simple RNN models which strictly integrate state information over time is known as the “vanishing gradient” effect: the ability to backpropagate an error signal through a long-range temporal interval becomes increasingly difficult in practice. Long Short-Term Memory (LSTM) units, first proposed in [7], are recurrent modules which enable long-range learning. LSTM units have hidden state augmented with nonlinear mechanisms to allow state to propagate without modification, be updated, or be reset, using simple learned gating functions. LSTMs have recently been demonstrated to be capable of large-scale learning of speech recognition [8] and language translation models [9, 10].

We show here that convolutional networks with recurrent units are generally applicable to visual time-series modeling, and argue that in visual tasks where static or flat temporal models have previously been employed, LSTM-style RNNs can provide significant improvement when ample training data are available to learn or refine the representation. Specifically, we show that LSTM type models provide for improved recognition on conventional video activity challenges and enable a novel end-to-end optimizable mapping from image pixels to sentence-level natural language descriptions. We also show that these models improve generation of descriptions from intermediate visual representations derived from conventional visual models.

We instantiate our proposed architecture in three experimental settings (Figure 3). First, we show that directly connecting a visual convolutional model to deep LSTM networks, we are able to train video recognition models that capture temporal state dependencies (Figure 3 left; Section IV). While existing labeled video activity datasets may not have actions or activities with particularly complex temporal dynamics, we nonetheless observe significant improvements on conventional benchmarks.

Second, we explore end-to-end trainable image to sentence mappings. Strong results for machine translation tasks have recently been reported [9, 10]; such models are encoder-decoder pairs based on LSTM networks. We propose a multimodal analog of this model, and describe an architecture which uses a visual convnet to encode a deep state vector, and an LSTM to decode the vector into a natural language string (Figure 3 middle; Section V). The resulting model can be trained end-to-end on large-scale image and text datasets, and even with modest training provides competitive generation results compared to existing methods.

Finally, we show that LSTM decoders can be driven directly from conventional computer vision methods which predict higher-level discriminative labels, such as the semantic video role tuple predictors in [11] (Figure 3, right; Section VI). While not end-to-end trainable, such models offer architectural and performance advantages over previous statistical machine translation-based approaches.

We have realized a generic framework for recurrent models in the widely adopted deep learning framework Caffe [12], including ready-to-use implementations of RNN and LSTM units. (See http://jeffdonahue.com/lrcn/.)

References (72)

  • 3D convolutional neural networks for human action recognition
  • Sequential deep learning for human action recognition
  • Large-scale video classification with convolutional neural networks
  • Two-stream convolutional networks for action recognition in videos
  • Learning internal representations by error propagation
  • A learning algorithm for continually running fully recurrent neural networks
  • Long short-term memory
  • Towards end-to-end speech recognition with recurrent neural networks
  • Sequence to sequence learning with neural networks
  • On the properties of neural machine translation: Encoder-decoder approaches
  • Translating video content to natural language descriptions
  • Caffe: Convolutional architecture for fast feature embedding
  • Learning to Execute
  • Generating Sequences With Recurrent Neural Networks
  • Revisiting recurrent neural networks for robust ASR
  • Generating text with recurrent neural networks
  • ImageNet classification with deep convolutional neural networks
  • Very deep convolutional networks for large-scale image recognition
  • Going deeper with convolutions
  • Learning phrase representations using rnn encoder-decoder for statistical machine translation
  • High accuracy optical flow estimation based on a theory for warping
  • Visualizing and understanding convolutional networks
  • ImageNet Large Scale Visual Recognition Challenge
  • ImageNet: A large-scale hierarchical image database
  • UCF101: A dataset of 101 human actions classes from videos in the wild
  • Framing image description as a ranking task: Data, models and evaluation metrics
  • Deep captioning with multimodal recurrent neural networks (m-RNN)
  • Deep fragment embeddings for bidirectional image sentence mapping
  • Grounded compositional semantics for finding and describing images with sentences
  • Devise: A deep visual-semantic embedding model
  • Unifying visual-semantic embeddings with multimodal neural language models
  • From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions
  • Microsoft COCO: Common Objects in Context
  • BLEU: a method for automatic evaluation of machine translation
  • CIDEr: Consensus-based image description evaluation
  • METEOR: An automatic metric for MT evaluation with improved correlation with human judgments
  • Rouge: A package for automatic evaluation of summaries
  • Show and tell: A neural image caption generator
  • Language models for image captioning: The quirks and what works
  • Learning like a child: Fast novel visual concept learning from sentence descriptions of images
  • From captions to visual concepts and back
  • Exploring nearest neighbor approaches for image captioning (opens arXiv in a new tab)
  • Long-term recurrent convolutional networks for visual recognition and description
  • Show, attend and tell: Neural image caption generation with visual attention
  • Deep visual-semantic alignments for generating image descriptions
  • TreeTalk: Composition and compression of trees for image descriptions
  • Moses: Open source toolkit for statistical machine translation
  • Coherent multi-sentence video description with variable level of detail
  • Dense trajectories and motion boundary descriptors for action recognition
  • Action recognition with improved trajectories
  • HMDB: a large video database for human motion recognition
  • Action classification in soccer videos with long short-term memory recurrent neural networks
  • Every picture tells a story: Generating sentences from images
  • Baby talk: Understanding and generating simple image descriptions
  • Corpus-guided sentence generation of natural images
  • Midge: Generating image descriptions from computer vision detections
  • Collective generation of natural image descriptions
  • Multimodal neural language models
  • YouTube2Text: Recognizing and describing arbitrary activities using semantic hierarchies and zero-shoot recognition
  • Human focused video description
  • Video in sentences out
  • Thousand frames in just a few words: Lingual description of videos through latent topics and sparse object stitching
  • Towards textually describing complex video contents with audio-visual concept classifiers
  • Integrating language and vision to generate natural language descriptions of videos in the wild
  • Sequence discriminative distributed training of long short-term memory recurrent neural networks
  • Beyond short snippets: Deep networks for video classification
  • Every moment counts: Dense detailed labeling of actions in complex videos (opens arXiv in a new tab)
  • Deep compositional captioning: Describing novel object categories without paired training data
  • Translating videos to natural language using deep recurrent neural networks
  • Sequence to sequence–video to text
  • Describing videos by exploiting temporal structure
  • Grounding of textual phrases in images by reconstruction (opens arXiv in a new tab)