Learning Efficient Video Representation with Video Shuffle Networks

Pingchuan Ma, Yao Zhou, Yu Lu, Wei ZhangarXiv 2019

Abstract

3D CNN shows its strong ability in learning spatiotemporal representation in recent video recognition tasks. However, inflating 2D convolution to 3D inevitably introduces additional computational costs, making it cumbersome in practical deployment. We consider whether there is a way to equip the conventional 2D convolution with temporal vision no requiring expanding its kernel. To this end, we propose the video shuffle, a parameter-free plug-in component that efficiently reallocates the inputs of 2D convolution so that its receptive field can be extended to the temporal dimension. In practical, video shuffle firstly divides each frame feature into multiple groups and then aggregate the grouped features via temporal shuffle operation. This allows the following 2D convolution aggregate the global spatiotemporal features. The proposed video shuffle can be flexibly inserted into popular 2D CNNs, forming the Video Shuffle Networks (VSN). With a simple yet efficient implementation, VSN performs surprisingly well on temporal modeling benchmarks. In experiments, VSN not only gains non-trivial improvements on Kinetics and Moments in Time, but also achieves state-of-the-art performance on Something-Something-V1, Something-Something-V2 datasets.

Introduction

Video recognition typically faces a harsh trade-off between accuracy and efficiency. Standard 2D CNNs, such as Temporal Segment Networks (TSN), are computationally efficient because they process frames independently. However, this independence prevents them from capturing crucial motion or temporal relationships. Conversely, 3D CNNs like I3D achieve high accuracy by using 3D kernels to convolve across space and time simultaneously, but they incur massive computational overhead, making real-time deployment difficult.

Video Shuffle Networks (VSN) address this by introducing a parameter-free, "zero-cost" plug-in that enables standard 2D CNNs to perform complex temporal modeling. The core question the authors answer is: Can we give 2D convolutions a "temporal vision" without actually expanding their kernels into 3D?

The Video Shuffle Operation

The fundamental innovation is the Video Shuffle operation. It reallocates feature channels across the temporal dimension so that a subsequent 2D convolution can aggregate information from the entire video sequence.

The Video Shuffle operation reallocates feature channels across the temporal dimension.

The operation follows a four-step process:

  1. Group: For a video with $T$ frames, the channels ($C$) of each frame's feature map are divided into $T$ equal groups.
  2. Shuffle: The features are reallocated such that each "new" frame feature map is composed of one group from every original frame.
  3. Convolve: A standard 2D convolution is then applied. Because the input now contains data from the entire video sequence, the 2D convolution effectively aggregates global spatiotemporal features.
  4. Inverse Shuffle: After the convolution, an inverse operation restores the original spatial representation for each frame.

Unlike methods like TSM (Temporal Shift Module) which only shift features between neighboring frames, Video Shuffle exchanges information across all sampled frames simultaneously, providing a broader temporal receptive field.

Integration into CNN Architectures

The Video Shuffle module is designed to be flexibly inserted into existing architectures like ResNet. The authors propose two primary integration strategies within a residual block:

  • Headtail block: Shuffling is performed at the very beginning and end of the residual branch.
  • Compact block: Shuffling occurs immediately before and after the $3 \times 3$ convolutional layer.

Empirical results suggest that the "compact" version is more effective at capturing temporal dependencies. Notably, this modification adds zero parameters and zero FLOPs, with the only overhead being a negligible amount of data movement in memory.

Performance and Efficiency

The effectiveness of VSN was evaluated on several major benchmarks, including Kinetics-400, Moments in Time, and the highly temporal-sensitive Something-Something (V1 & V2) datasets.

Performance comparison on Something-Something V1 and V2 datasets.

On Something-Something V1, the VSN-ResNet50 achieved 46.6% top-1 accuracy, a significant leap from the 2D TSN baseline of 19.5% and outperforming TSM's 43.4%. When scaled to a two-stream approach (RGB + Optical Flow) with a ResNet-101 backbone, VSN achieved state-of-the-art results on Something-Something V1 (52.7%) and V2 (65.8%).

In terms of efficiency, VSN-ResNet50 maintains a latency of 16.5ms per video on a P100 GPU—nearly identical to a standard 2D ResNet (15.8ms)—while being roughly 10x faster than the 3D-based I3D model (165.3ms).

Conclusion

Video Shuffle Networks provide a compelling solution for efficient video representation. By cleverly reallocating features, VSN enables 2D CNNs to achieve 3D-like temporal modeling capabilities at virtually no extra computational cost. While current implementations use heuristic placement of these modules, the significant performance gains on motion-heavy datasets like Something-Something demonstrate the power of global temporal feature reallocation. Future work may explore more optimized placement strategies and hardware-aware implementations to further minimize memory movement overhead.

Summary updated

BibTeX
@misc{ma2019learning,
  author = {Pingchuan Ma and Yao Zhou and Yu Lu and Wei Zhang},
  title = {{Learning Efficient Video Representation with Video Shuffle Networks}},
  year = {2019},
  eprint = {1911.11319},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.11319},
}
Figure