# Long-term Recurrent Convolutional Networks for Visual Recognition and Description

Recurrent convolutional networks learn temporal structure for video recognition and description

Jeff Donahue, Lisa Anne Hendricks, Marcus Rohrbach, Subhashini Venugopalan, Sergio Guadarrama, Kate Saenko and 1 more · arXiv · 2014-11-17

- **Problem** Video models either fix the visual features or average simple frame statistics, so they cannot learn how an action unfolds over time. Plain RNNs also struggle to learn long-range dependencies because gradients vanish.
- **Method** LRCN runs a CNN on each frame and feeds the features into stacked LSTMs. Unlike fixed pipelines, both parts are trained jointly, end to end, so the visual features learn what matters for the sequence task.
- **Results** On UCF101 with flow input, LRCN-fc6 scored 77.28, compared to 74.37 for the single frame model.

## Why frame-based video models stall

Most video models either fix the visual representation or average simple temporal statistics over a clip. That leaves no learned temporal structure, so the model can't follow how an action unfolds over time. Recurrent networks could close that gap, since they are deep in time and build compositional states across steps. Simple RNNs suffer from vanishing gradients, so an error signal rarely travels far back through a long interval.

LSTM units add gates that let state pass through unchanged or be reset, which is why the authors build on them.

The output side has the same mismatch, because describing an image or video needs variable-length text. A fixed-output classifier can't produce a full sentence, so the design has to handle both ends of the sequence.

## The LRCN recurrence, step by step

The core idea is to keep a CNN as the per-frame feature extractor and let an LSTM model the order of those features. Both parts are trained together, so the visual parameters can learn what matters for the sequence task.

At each step, a feature transform with parameters V, usually a CNN, maps the input x\_t to a fixed-length vector. A recurrent module with parameters W then takes that vector and the previous hidden state h\_(t-1) and produces an output z\_t and a new state h\_t. Inference runs in order, starting from h\_1 computed from x\_1 and a zero initial state.

A linear layer on z\_t followed by a softmax gives a distribution over the label set C at that step. Because W is reused at every step, the parameter count doesn't grow with the sequence length.

Training minimizes the average negative log likelihood of the ground-truth outputs, written as L(V,W,D) over the training set D. Gradients flow through both the CNN and the LSTM stack, which is what makes training end-to-end.

## Adapting the recurrence to three task classes

The generic formulation assumes equal input and output lengths, which doesn't fit most of the three task classes. For activity recognition, the per-step predictions are merged late into one label for the whole sequence.

For captioning, the static image is repeated at every time step, so the sequence model gets the same visual input throughout. For video description, an encoder reads the T inputs and a decoder unrolls the T' outputs, which can differ in length. Such a run takes T+T'-1 steps in total, with the decoder idle until the encoder finishes.

## Activity recognition on UCF101

Each frame of a 16-frame clip passes through the convnet, and the flow input is turned into a three-channel flow image. At test time the model extracts clips with a stride of 8 frames and averages across clips from each video. The CNN base is pretrained on ILSVRC-2012, which gives a strong start for the small video datasets.

With RGB input, LRCN-fc6 scored 68.20, compared to 67.37 for the single frame model. With flow input, the gap is larger: 77.28 for LRCN-fc6 compared to 74.37 for the single frame model. This suggests the temporal layer adds more on motion input than on appearance alone, within this comparison.

On the validation split, 1024 hidden units beat 256 by 1.7% with flow input. The authors therefore used 1024 units for flow and 256 for RGB. Using fc6 features instead of fc7 raised flow accuracy by 1% on the same validation split.

Averaging RGB and flow scores with weights 1/3 and 2/3 gave 82.34, compared to 78.94 for the single frame model. These are averages across the three UCF101 splits, so they summarize all three test partitions.

## Flickr30k and COCO retrieval

Retrieval is scored by recall at K and by Medr, the median rank of the first correct match. The authors tested on Flickr30k and COCO 2014, each with five captions per image.

On Flickr30k, LRCN2f reached an R@1 of 17.5 for caption to image, compared to 11.8 for the ConvNet baseline. For image to caption, LRCN2f reached 23.6, compared to 14.8 for the same ConvNet.

The VGGNet-based ConvNet in \[31\] outperforms LRCN on this retrieval task. The authors note that VGGNet is a stronger convolutional network than the one they used, so the sequence-model comparison is best made against the ConvNet.

On the COCO subset, LSTM units beat vanilla RNNs, and the two-layer factored model is the one that did best. A fine-tuned VGGNet with factored LSTMs reached an R@1 of 39.3 for caption to image. Without fine-tuning, CaffeNet with the same factored two-layer LSTM reached 25.0.

## Caption generation on COCO 2014

CIDEr-D was designed specifically to evaluate image captioning, while BLEU and METEOR come from machine translation. Greedy decoding is beam search with width 1, and a wider beam keeps the N most likely partial captions at each step. Among beam widths, 3 to 5 gave the best numbers, and performance saturated quickly.

The best sampling setting used N=100 samples with temperature T=1.5 on the softmax inputs. Sampling with that setting, LRCN2f scored 0.934 CIDEr-D on the test set, compared to 0.946 for NIC. That ranks fourth on CIDEr-D and third on METEOR, at 0.335 compared to 0.346 for NIC.

Fine-tuning improves CIDEr-D by about 0.04 for CaffeNet and about 0.07 for VGGNet. Switching from fine-tuned CaffeNet to VGGNet adds another 0.13 points.

## Video description on TACoS multilevel

A second variant feeds the full visual representation to the decoder at each step, and a third feeds CRF probabilities instead of max labels.

TACoS multilevel has 44,762 video and sentence pairs, and the authors used the two-layer unfactored LRCN. They compared against the max-prediction SMT of \[11\] and the probability-based variant in \[48\].

The CRF-probability decoder reached a BLEU-4 of 28.8, compared to 26.9 for the SMT variant with CRF probabilities. The max-prediction decoder with the full visual input scored 27.4, compared to 24.9 for the SMT baseline. The authors attribute the gain of the decoder variants over the encoder-decoder to the input not having to be memorized.

## Limitations

The video description pipeline isn't end-to-end trainable, because the CRF produces the semantic inputs before the LSTM runs. The CNN and LSTM weights are optimized jointly only in the recognition and captioning settings.

Video description was tested only on TACoS multilevel, and only with one two-layer unfactored variant. On Flickr30k retrieval, the VGGNet-based ConvNet outperforms LRCN.

Subsampling the frames fed to the LSTM hurt performance, and aggressive dropout of 0.9 was needed in end-to-end training. Hyperparameters were explored on a validation split carved from the first UCF101 training split.

## Paper info

- **Authors**: Jeff Donahue, Lisa Anne Hendricks, Marcus Rohrbach, Subhashini Venugopalan, Sergio Guadarrama, Kate Saenko, Trevor Darrell
- **Venue**: arXiv · Preprint
- **First published**: 2014-11-17
- **Added**: 2026-11-11
- **Updated**: 2016-5-31
- **Version**: v4
- **arXiv**: 1411.4389
- **Category**: cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1411.4389v4) · [PDF ↗](https://arxiv.org/pdf/1411.4389v4)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Jeff Donahue, Lisa Anne Hendricks, Marcus Rohrbach, Subhashini Venugopalan, Sergio Guadarrama, Kate Saenko, Trevor Darrell (2014). Long-term Recurrent Convolutional Networks for Visual Recognition and Description. arXiv:1411.4389v4. https://arxiv.org/abs/1411.4389v4

**BibTeX**

```
@misc{donahue2014long,
  title = {{Long-term Recurrent Convolutional Networks for Visual Recognition and Description}},
  author = {Jeff Donahue and Lisa Anne Hendricks and Marcus Rohrbach and Subhashini Venugopalan and Sergio Guadarrama and Kate Saenko and Trevor Darrell},
  year = {2014},
  eprint = {1411.4389},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1411.4389v4}
}
```

## Other paper commentary

- [R-FCN: Object Detection via Region-based Fully Convolutional Networks](https://refivu.com/en/papers/bb79aec7-981d-49d9-925a-5b0783987a46-r-fcn-object-detection-via-region-based-fully.md)
- [Deep High-Resolution Representation Learning for Visual Recognition](https://refivu.com/en/papers/ff214560-2608-4a9d-81cc-5feb5e6af487-deep-high-resolution-representation-learning-for-visual.md)
- [Markerless tracking of user-defined features with deep learning](https://refivu.com/en/papers/9875063c-f7bc-4b74-ac4c-90b07da3fab3-markerless-tracking-of-user-defined-features-with-deep.md)
- [Bottom-Up and Top-Down Attention for Image Captioning and Visual Question Answering](https://refivu.com/en/papers/6c6f90a1-fe13-482d-9dc4-046620898e40-bottom-up-and-top-down-attention-for-image.md)
- [SwinIR: Image Restoration Using Swin Transformer](https://refivu.com/en/papers/16285f4a-51a3-41dc-9740-c5a9259d2b18-swinir-image-restoration-using-swin-transformer.md)
- [GhostNet: More Features from Cheap Operations](https://refivu.com/en/papers/54dc4d80-177d-40dc-bde2-a797c18077da-ghostnet-more-features-from-cheap-operations.md)
- [ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks](https://refivu.com/en/papers/ebad818e-19ed-4df9-8fcf-6d62836fa124-esrgan-enhanced-super-resolution-generative-adversarial.md)
- [Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge](https://refivu.com/en/papers/fc6d55cd-53fa-41b7-a998-11a56cc77804-think-you-have-solved-question-answering-try-arc.md)
- [LightGCN: Simplifying and Powering Graph Convolution Network for Recommendation](https://refivu.com/en/papers/ce104c95-75b4-4033-900a-57eef9818488-lightgcn-simplifying-and-powering-graph-convolution-network.md)
- [Quantum Machine Learning](https://refivu.com/en/papers/4a48fd95-dc32-4a89-a21e-fd794e33df6d-quantum-machine-learning.md)
- [Categorical Reparameterization with Gumbel-Softmax](https://refivu.com/en/papers/c907a642-9316-44dc-97d4-0d4eebe881fa-categorical-reparameterization-with-gumbel-softmax.md)

## Terms in this paper

- [Accuracy](https://refivu.com/en/terms/1995c0cd6282-accuracy)
- [LSTM](https://refivu.com/en/terms/ba10547646d9-lstm)
- [beam search](https://refivu.com/en/terms/3e449f8f713b-beam-search)
- [CNN](https://refivu.com/en/terms/06880f5198e6-cnn)
- [Image Captioning](https://refivu.com/en/terms/9597f1623624-image-captioning)
- [Flickr30K](https://refivu.com/en/terms/3460b37ae772-flickr30k)
- [VGGNet](https://refivu.com/en/terms/a3de3db7a3a6-vggnet)
- [RNN](https://refivu.com/en/terms/cd8552d9273e-rnn)
- [UCF101](https://refivu.com/en/terms/d2741e29e775-ucf101)
- [CaffeNet](https://refivu.com/en/terms/64eea79f7355-caffenet)
- [CRF](https://refivu.com/en/terms/0bba1b0be4f5-crf)
- [LRCN](https://refivu.com/en/terms/911e4c2b1c42-lrcn)
- [encoder-decoder](https://refivu.com/en/terms/8c5c6b9c4ff9-encoder-decoder)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/746c9a37-e85c-4acd-aec2-5cfa2639a609-long-term-recurrent-convolutional-networks-for-visual)
