Video Captioning in Compressed Video

Mingjian Zhu, Chenrui Duan, Changbin YuarXiv 2021

Abstract

Existing approaches in video captioning concentrate on exploring global frame features in the uncompressed videos, while the free of charge and critical saliency information already encoded in the compressed videos is generally neglected. We propose a video captioning method which operates directly on the stored compressed videos. To learn a discriminative visual representation for video captioning, we design a residuals-assisted encoder (RAE), which spots regions of interest in I-frames under the assistance of the residuals frames. First, we obtain the spatial attention weights by extracting features of residuals as the saliency value of each location in I-frame and design a spatial attention module to refine the attention weights. We further propose a temporal gate module to determine how much the attended features contribute to the caption generation, which enables the model to resist the disturbance of some noisy signals in the compressed videos. Finally, Long Short-Term Memory is utilized to decode the visual representations into descriptions. We evaluate our method on two benchmark datasets and demonstrate the effectiveness of our approach.

Introduction

Traditional video captioning models typically process uncompressed RGB frames, leading to significant computational redundancy. Uncompressed video contains massive amounts of repeating patterns, and processing every pixel often "drowns out" important moving objects or actions. Furthermore, standard models ignore the "free" saliency information already calculated by video compression standards (like H.264 or HEVC) in the form of motion residuals.

This paper introduces a video captioning method that operates directly on compressed video formats. By leveraging "residuals" — the data representing motion and changes between frames — as a built-in saliency map, the proposed Residuals-Assisted Encoder (RAE) achieves state-of-the-art performance while avoiding the high computational overhead of processing raw, uncompressed video.

Methods

The framework, termed Video Captioning in Compressed Video (VCCV), consists of two main components: a Residuals-Assisted Encoder and an LSTM-based decoder.

Residuals-Assisted Encoder (RAE)

Instead of relying solely on I-frames (full images), the RAE utilizes residuals (P-frames) which highlight where the action is occurring.

An example I-frame from a video sequence showing a person mid-action.
  • Spatial Attention Module (SAM): This module extracts features from residuals to serve as saliency values for each location in the I-frame. It essentially directs the model's attention to the parts of the image that are actually moving.
  • Temporal Gate Module (TGM): Because residuals can be noisy due to compression artifacts, the TGM adaptively decides how much to trust the attended features versus the original global features. This ensures the model remains robust against irrelevant motion or noise.
The corresponding residual frame, which acts as a natural, "free" saliency map for motion.

Decoder

The visual representations are decoded into natural language descriptions using a Long Short-Term Memory (LSTM) network, generating sentences word by word.

Experimental Results

The VCCV model was evaluated on two major benchmarks: MSR-VTT (10,000 clips) and Charades (9,848 clips of complex indoor activities).

Key findings include:

  • Performance Gains: On MSR-VTT, the model achieved a BLEU@4 score of 42.8 and a CIDEr score of 48.7, outperforming previous state-of-the-art models like PickNet. On the more challenging Charades dataset, it achieved a CIDEr score of 21.0, a substantial lead over the S2VT baseline (14.0).
  • Ablation Studies: Removing either the residuals or the gating mechanism led to a measurable drop in performance, confirming that compressed signals provide valuable information missing from raw RGB frames.

Discussion and Conclusion

The core insight of this work is that video compression has already performed the "hard work" of identifying motion. Residuals naturally point to the objects and actions humans tend to describe. By focusing on these changes, the model naturally ignores static backgrounds and improves efficiency through sparsity.

While the Temporal Gate Module mitigates noise, the model remains somewhat sensitive to very low-bitrate video quality. Future work may involve integrating motion vectors for explicit directionality and exploring end-to-end optimization of the feature extraction backbones specifically for the compressed domain.

Summary updated

BibTeX
@misc{zhu2021video,
  author = {Mingjian Zhu and Chenrui Duan and Changbin Yu},
  title = {{Video Captioning in Compressed Video}},
  year = {2021},
  eprint = {2101.00359},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.00359},
}
Figure