Abstract
Training robust deep video representations has proven to be much more challenging than learning deep image representations. This is in part due to the enormous size of raw video streams and the high temporal redundancy; the true and interesting signal is often drowned in too much irrelevant data. Motivated by that the superfluous information can be reduced by up to two orders of magnitude by video compression (using H.264, HEVC, etc.), we propose to train a deep network directly on the compressed video. This representation has a higher information density, and we found the training to be easier. In addition, the signals in a compressed video provide free, albeit noisy, motion information. We propose novel techniques to use them effectively. Our approach is about 4.6 times faster than Res3D and 2.7 times faster than ResNet-152. On the task of action recognition, our approach outperforms all the other methods on the UCF-101, HMDB-51, and Charades dataset.
Introduction
Video analysis is traditionally hampered by the sheer volume of data. While a raw 720p video stream can consume hundreds of gigabytes, standard compression algorithms like H.264 reduce this footprint by over 99% by exploiting temporal redundancies. Despite this, most state-of-the-art deep learning models ignore these efficiencies, decoding videos back into raw RGB frames before processing. This standard pipeline is computationally expensive and fails to leverage the motion information already computed during compression.
The proposed framework, CoViAR (Compressed Video Action Recognition), addresses these flaws by training deep networks directly on the compressed stream. By bypassing the decoding stage and utilizing "free" motion vectors and residuals, CoViAR achieves significant speedups and improved accuracy.
The CoViAR Framework
Instead of processing a sequence of fully decoded images, CoViAR operates on the three primary components of a compressed video stream:
- I-frames (Intra-coded frames): Standalone images that provide spatial context.
- Motion Vectors: Data describing the displacement of pixel blocks between frames, acting as a low-resolution, "noisy" version of optical flow.
- Residuals: The pixel-wise difference between predicted motion and the actual frame, capturing fine-grained details and lighting changes.
By utilizing these components, the model focuses on high-information-density signals. The architecture employs a ResNet-152 for the spatially rich I-frames and lighter ResNet-18 networks for the motion and residual streams, fusing their outputs for final classification.
Decoupling Frames via Back-Tracing
A significant challenge in processing compressed video is the sequential dependency of P-frames (predictive frames). Typically, a P-frame at time $t$ cannot be interpreted without decoding all preceding frames back to the last I-frame.
To enable efficient, parallel processing, the authors introduced a back-tracing technique. This method traces motion vectors back to the reference I-frame and accumulates residuals along the path. This process effectively "decouples" the P-frames, allowing the network to process any frame in the GOP (Group of Pictures) independently of its immediate neighbors.
This accumulation also serves as a denoising mechanism. While individual motion vectors can be erratic, the accumulated vectors reveal much clearer patterns of movement, enhancing the model's ability to generalize across different appearances and lighting conditions.
Experimental Results
CoViAR was evaluated on the UCF-101, HMDB-51, and Charades datasets. The results demonstrate a clear advantage in both efficiency and performance:
- Efficiency: CoViAR is 4.6x faster than Res3D and 2.7x faster than a standard ResNet-152 processing raw frames.
- Accuracy: On UCF-101, CoViAR achieved 90.4% accuracy using only compressed data, outperforming RGB-only methods like Res3D (85.8%). When combined with traditional temporal streams, it reached a state-of-the-art 94.9%.
Conclusion
By shifting the focus from raw pixels to compressed representations, CoViAR demonstrates that "less is more" in video recognition. The higher information density of compressed streams simplifies training and provides valuable motion cues for free. While the model's performance is currently tied to the quality of the video encoder's motion estimation, it paves the way for highly efficient, real-time video analysis in resource-constrained environments.
Summary updated